Slash Command Help
how to name slash command without accents - instead of spaces. For example /embed create instead of /embed-create for slash command?
11 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by staffThose are subcommands
Is the above website discord.js latest version or v13?
I see many people do slash command with name:, description: and run: async (client, interaction) but what about .name:, .description:, run: execute(client, interaction)?
Its whatever you want it to be. But you dont really need to pass in a client since all djs structures have a client property
v14
v13 is unsupported
I prefer name:, description:, run: async (client, interaction) because it's concise
okay
thats your preference
but client is still obsolete
uhh
oh okay
you should do run: async function execute(client, interaction)*
Because just
execute
returns something (not a function)i use run: async (client, message, args) => {}
That's valid i think
It is