Closed Kardbord closed 2 years ago
To improve error reporting, I'd like the bot to DM the bot owner a report any time an unexpected error occurs. However, I don't want to infringe on the privacy of users. This seems like a good opportunity to try out a button component (looking at you #36 😄). The interaction should respond with an ephemeral message containing two buttons - one to send an anonymous report, and one to send a non-anonymous report.
Deferred ("Bot is thinking...") responses or responses that return an error are viewable by all users instead of just the user who issued the command. Set the ephemeral flag in the interaction response in these cases so that only the issuing user can see the response. This flag is a value of 64, or
1 << 6
.