Kardbord / Kard-bot

A Discord bot destined for greatness
GNU Affero General Public License v3.0
1 stars 0 forks source link

Use 'ephemeral' flag on deferred responses and error responses. #35

Closed Kardbord closed 2 years ago

Kardbord commented 2 years ago

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.

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