feat(Interactions): improve error handling for ephemeral responses (#5892)

Co-authored-by: muchnameless <12682826+muchnameless@users.noreply.github.com>
This commit is contained in:
monbrey
2021-06-24 09:03:52 +10:00
committed by GitHub
parent 2d7c12b0e9
commit bd9f56af9a
5 changed files with 21 additions and 0 deletions

View File

@@ -115,6 +115,8 @@ const Messages = {
"or from a guild's application command manager.",
INTERACTION_ALREADY_REPLIED: 'This interaction has already been deferred or replied to.',
INTERACTION_NOT_REPLIED: 'This interaction has not been deferred or replied to.',
INTERACTION_EPHEMERAL_REPLIED: 'Ephemeral responses cannot be fetched or deleted.',
};
for (const [name, message] of Object.entries(Messages)) register(name, message);