Skip to content

Bug: bot fails to handle interactions under 3 seconds #93

@vb2007

Description

@vb2007

Apparently, the Discord API returns an error if a bot fails to handle an interaction under 3 seconds.

So the command's executor just sees an error message, when the interaction actually got executed on the server where the bot runs, and for example; changes have been made to the database.

To handle this, things like deferred responses can be implemented: https://discordjs.guide/slash-commands/response-methods.html#deferred-responses

And maybe this function (using normal responses / deferred responses) can even be configurable later on by the bot's runner.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

Put aside

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions