Can ephemeral ever fail and show up as a regular message?

Reason I ask is because I have confirm/cancel buttons on slash commands that can only be invoked with certain permissions, and I want to know if it's completely unnecessary to have the logic for permission checking on the button interaction as well, because under no circumstance will the message be exposed to someone who lacks the permissions due to the checks on the command itself.
4 Replies
d.js toolkit
d.js toolkit3mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Mark
Mark3mo ago
No, if you specify the reply to be ephemeral, it will always be ephemeral
Lindd
LinddOP3mo ago
So it's redundant to permission/user check a button if the command is ephemeral
Mark
Mark3mo ago
if you do the checks upstream, probably but if you want to include them for extra security (say someone gets de-modded in the middle of a command), that's up to you
Want results from more Discord servers?
Add your server