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 docs2y 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.
조아오
조아오2y ago
✨ You can't ✨ Just use ephemeral messages
(on vacation) Knabbiii ♡ ˚₊‧⁺˖
I want to send a "welcome information" embed for every new user So not ephemeral
조아오
조아오2y ago
Use the guildMemberAdd event Not a command
(on vacation) Knabbiii ♡ ˚₊‧⁺˖
Can I let the Slashcommand send a message to another channel?
조아오
조아오2y ago
You can use an interaction to send a message to another channel, but you still need to reply to it
(on vacation) Knabbiii ♡ ˚₊‧⁺˖
i will use a ephermal reply then
Syjalo
Syjalo2y 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?
(on vacation) 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
조아오
조아오2y ago
If you don't mind the Application does not responded you can, but just reply smt like Ok
Syjalo
Syjalo2y ago
So send that info and respond to the interaction with an ephemeral respond that says the message with embed was sent.
(on vacation) Knabbiii ♡ ˚₊‧⁺˖
And how to send the main message to a channel?
d.js docs
d.js docs2y 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
조아오
조아오2y ago
No, wrong tag
d.js docs
d.js docs2y ago
guide Popular Topics: Miscellaneous - How do I send a message to a specific channel? read more
조아오
조아오2y ago
This ^^
(on vacation) 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
Syjalo2y ago
Where you want to send a message
(on vacation) Knabbiii ♡ ˚₊‧⁺˖
i mean in the code
Syjalo
Syjalo2y ago
BTW that's wrong
d.js docs
d.js docs2y 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
조아오
조아오2y ago
Before the reply
(on vacation) Knabbiii ♡ ˚₊‧⁺˖
Thank you, again- I am very grateful this Server is existing