How to NOT respond a slash command?

my goal is not to send a respond after me using a slash command. I just want the message.
24 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
조아오
조아오3y ago
✨ You can't ✨ Just use ephemeral messages
Knabbiii ♡ ˚₊‧⁺˖
I want to send a "welcome information" embed for every new user So not ephemeral
조아오
조아오3y ago
Use the guildMemberAdd event Not a command
Knabbiii ♡ ˚₊‧⁺˖
Can I let the Slashcommand send a message to another channel?
조아오
조아오3y ago
You can use an interaction to send a message to another channel, but you still need to reply to it
Knabbiii ♡ ˚₊‧⁺˖
i will use a ephermal reply then
Syjalo
Syjalo3y ago
Yes, but you should to respond to the interaction to let the user know that everything is ok. Or how user will know that?
Knabbiii ♡ ˚₊‧⁺˖
The User dont "use" this command. Its just me who want to send a Information Embed for users That stays in the channel so a once in a liftime command I bet they're better ways to do that
조아오
조아오3y ago
If you don't mind the Application does not responded you can, but just reply smt like Ok
Syjalo
Syjalo3y ago
So send that info and respond to the interaction with an ephemeral respond that says the message with embed was sent.
Knabbiii ♡ ˚₊‧⁺˖
And how to send the main message to a channel?
d.js docs
d.js docs3y ago
const channel = client.channels.cache.get("222086648706498562");
const channel = client.channels.cache.find(channel => channel.name === "general");
const channel = client.channels.cache.get("222086648706498562");
const channel = client.channels.cache.find(channel => channel.name === "general");
• Caches caches in discord.js are Collections which extend the native Map structure. • learn more
조아오
조아오3y ago
No, wrong tag
d.js docs
d.js docs3y ago
guide Popular Topics: Miscellaneous - How do I send a message to a specific channel? read more
조아오
조아오3y ago
This ^^
Knabbiii ♡ ˚₊‧⁺˖
thank you.. so i delete the interation.reply embeds: [embed] and use for example a content of a message with ok May I ask where to put the channel.send([embed])
Syjalo
Syjalo3y ago
Where you want to send a message
Knabbiii ♡ ˚₊‧⁺˖
i mean in the code
Syjalo
Syjalo3y ago
BTW that's wrong
d.js docs
d.js docs3y ago
Sending and editing now takes only a single object parameter!
- channel.send(embed);
+ channel.send({ embeds: [embed, embed2] });
- channel.send('Hello!', { embed });
+ channel.send({ content: 'Hello!', embeds: [embed, embed2] });
- channel.send(embed);
+ channel.send({ embeds: [embed, embed2] });
- channel.send('Hello!', { embed });
+ channel.send({ content: 'Hello!', embeds: [embed, embed2] });
• V12-v13 migration guide: learn more • V13-v14 migration guide: learn more
조아오
조아오3y ago
Before the reply
Knabbiii ♡ ˚₊‧⁺˖
Thank you, again- I am very grateful this Server is existing
Want results from more Discord servers?
Add your server