#How to NOT respond a slash command?

32 messages · Page 1 of 1 (latest)

manic wren
#

my goal is not to send a respond after me using a slash command. I just want the message.

vale fjordBOT
#

• 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.

manic wren
pulsar solar
#

✨ You can't ✨

#

Just use ephemeral messages

manic wren
#

I want to send a "welcome information" embed for every new user

#

So not ephemeral

pulsar solar
#

Use the guildMemberAdd event

#

Not a command

manic wren
#

Can I let the Slashcommand send a message to another channel?

pulsar solar
#

You can use an interaction to send a message to another channel, but you still need to reply to it

manic wren
#

i will use a ephermal reply then

past ibex
#

Yes, but you should to respond to the interaction to let the user know that everything is ok. Or how user will know that?

manic wren
#

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

pulsar solar
#

If you don't mind the Application does not responded you can, but just reply smt like Ok

past ibex
manic wren
#

And how to send the main message to a channel?

vale fjordBOT
#
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

pulsar solar
#

No, wrong tag

vale fjordBOT
#

guide Popular Topics: Miscellaneous - How do I send a message to a specific channel?
read more

pulsar solar
#

This ^^

manic wren
#

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])

past ibex
#

Where you want to send a message

manic wren
#

i mean in the code

past ibex
#

BTW that's wrong

vale fjordBOT
#

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] });

• V12-v13 migration guide: learn more
• V13-v14 migration guide: learn more

pulsar solar
manic wren
#

Thank you, again-