Skip to content

Message edits crash the bot #2

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions