Skip to content

Respond to any deferred interactions on error #150

@00-kat

Description

@00-kat

It would be nice to have a catch-all which responds to deferred interactions with something like "An unexpected error occurred." before re-raising.

If a catch-all isn't possible, there are very few defers so far (only two at the time of writing) so it should be fairly straightforward to handle those.

My guess is that a catch-all is not possible, as it no longer has the discord.Interaction object to respond to at the top level.

While it would be nice if all interactions which error were handled, a red "The application did not respond." tells the tale much better than "●●● Ghostty Bot is thinking...", and handling every interaction will likely be a lot of redundant exception handling code if a global catch-all isn't possible, so this is unlikely to be considered feasible.
A screenshot comparing both failure messages.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @00-kat

      Issue actions

        Respond to any deferred interactions on error · Issue #150 · ghostty-org/discord-bot