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.
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.