on slash commands, execute command
on
client.on('interactionCreate', async interaction =>
how can i execute the command ?21 Replies
• What's your exact discord.js
Interactions: Replying to slash commands - Responding to a command
read more
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 
IsChatInputCommand doesn't execute it nah ?
the command that correspond to the interaction
now that i sent my interaction, how can i transform it to get my argument message from the execute function ?
you mean you want to get what you wrote in the options upon sending the interaction?
like this

Nope not args
But i do my slash command to execute a command which
message.delete()
. however message isn't define because i pass execute(interaction)
and not messageand what do you want to delete? 

The message of the command
commands dont have messages tho
unless you reply
So i can't delete my interaction slash command message ?
you could, but why
its bad ux
Meh
Interaction.delete()
?
All i see is that slash commands is good ux but it has a different comportment
I have a command with everything fine. And when i want that command to be a slash one, it's absolutely not the same 😔messages and slash commands are simply not the same 

So bad
dont use them then
I think i will not use them yeah
even tho it takes just a few minutes to rewrite it to fit slash 

And how ?
Depending of the command ?
by looking at the guide and documentation?
you just have to remember that messages arent slash commands
not everything you do with the message suits the slash command
Yes
Feel sad