Send a ContainerBuilder() in Ephemeral

Hello, I'm doing a command to manage a user (like ban, mute, ... but in the same command) and I want to use the new Components. But I would like to hide the reply to everybody but the user that did the command Here is my answer
await interaction.channel.send({
components: [container],
flags: [MessageFlags.IsComponentsV2, MessageFlags.Ephemeral],
});
await interaction.channel.send({
components: [container],
flags: [MessageFlags.IsComponentsV2, MessageFlags.Ephemeral],
});
But it is not working, the Ephemeral flags does not count
5 Replies
d.js toolkit
d.js toolkit6mo 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! - Marked as resolved by OP
treble/luna
treble/luna6mo ago
Messages cannot be ephemeral Only interaction replies can be
! naaphÿ
! naaphÿOP6mo ago
I just notice that, thank you So is there a way to reply to an interaction twice ?
d.js docs
d.js docs6mo ago
:method: ButtonInteraction#followUp() discord.js@14.19.3 Send a follow-up message to this interaction.
! naaphÿ
! naaphÿOP6mo ago
thank you

Did you find this page helpful?