Is possible to trigger an ephemeral message without setting "ephemeral: true"?
I'm having some strange behaviours from my bot recently and i'm not having idea what is happening. Right now an user sent me this screenshot: https://cdn.discordapp.com/attachments/821436197745197086/1202546935957946409/Screenshot_2024-02-01-10-31-34-07_572064f74bd5f9fa804b05334aa4f912.jpg In this screenshot that second message "To open a support ticket....." is a ephemeral message to him, right? BUT WHY?
Below is the snippet that generates this message, there is nothing about ephemeral. Also, if i try myself, i cannot reproduce this behavior (i've tried in many ways). The correct behavior is: when user choose something in this select menu, this message is deleted and after the deletion it shows the next message "Paste here the tbx ID.....".
6 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!No idea, might be other code causing this issue
could be a bug, who knows
But what kind of code should i look for?
This is making me crazy
Maybe i'll force "ephemeral: false" and pray for the best
the only reason i could think of, if not setting
ephemeral
is that you are setting flags
for the initial reply or follow-up and include the ephemeral message bit 1<<6
(https://discord.com/developers/docs/resources/channel#message-object-message-flags)Sorry, after reading the docs i didnt figure out the usage
Maybe i overlooked something, idk
I want to find how to use to see if there is anything similar in my code
But i dont believe it'll have because i cannot reproduce that issue. Maybe it only happens in mobile and maybe in some specific mobile version, because i tried with mobile too without sucess
search for
flags:
see what the value is and which bit flags are present in the number