ephemeral is not working on button interaction.
I don't know the reason, can someone help me?
15 Replies
- 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!Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
The custom id is not being used anywhere in the code because this is literally the only part where I use interactionCreate
yes
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
yes
This might be relevant for you then https://github.com/discordjs/discord.js/pull/10564
I see you have tagged it as dev release,
ephemeral
was removed, see https://github.com/discordjs/discord.js/pull/10564
Use flags
option
(Slow...)Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
omg thanksss
With flags it worked
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
I mean without typscript, the ide will maybe do as much as crossing out deprecated stuff, but the option straight up doesn't exist, hence nothing
I'd recommend the
MessageFlags.Ephemeral
enum over a magic numberHonestly, I'd not recommend using dev version if you are not using ts, because unless you're keeping track of things that are changed, there can be breaking changes, and without ts there to yell at you, you are bound to stumble into errors
Well, I'll use the release version. Thanks for the tip
:yuudachi_bg: