Question regarding ephemeral replies after defer
Hey,
I'm trying to make a simple command that let's me stretch an attachment image and reply with the stretched image, which works perfectly. But the issues are the ephemeral replies. I want the error replies to be ephemeral and the actual result reply to be a normal reply, non ephemeral. The error replies are not ephemeral even when setting
ephemeral: true
.
How would I be able to achieve ephemeral replies for the errors only and keep the result non ephemeral? 🙏
[email protected]
5 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!
- ✅
Marked as resolved by OPYou can't if you defer, as the ephemeral must be set at that time. It can't be edited.
You'll need to send a separate reply for anything that needs to be different
A separate reply? Do you mean by using
interaction.followUp
?After updating the defer somehow, yes
Otherwise followup will try to edit it
Oh yes, it worked. Thank you very much 🙏