Skip to content
Advertisement

Sending ephemeral responses to a specific user discord js (only you can see this message)

I want my bot to send an ephemeral response (only you can see this message) to a user specified by a command, using discord.js

Advertisement

Answer

In order to send an ephemeral message to a specific user, that user needs to be the one triggering the interaction.

You cannot send an ephemeral message to a random user.

If you just want to reply to an interaction , you can do it by using:

// assuming "i" is your interaction
i.reply({ content: "This message is only for your sweet eyes", ephemeral: true });
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement