Skip to content

Message edits crash the bot #2

@itskdog

Description

@itskdog

messageHandlers.handle expects event.text to exist. This doesn't show up on an edit. (event.subtype === "message_changed")

Solution: check if event.text exists and log subtypes in a debug file in the source folder if debug mode is on. Use this to know how to handle other subtypes.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions