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
d.js toolkit
d.js toolkit5d ago
- 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 staff
d.js docs
d.js docs5d ago
:guide: Slash Commands: Advanced command creation - Subcommands read more
treble/luna
treble/luna5d ago
Those are subcommands
Ferr
FerrOP5d ago
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)?
treble/luna
treble/luna5d ago
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
Ferr
FerrOP5d ago
I prefer name:, description:, run: async (client, interaction) because it's concise okay
treble/luna
treble/luna5d ago
thats your preference but client is still obsolete
Ferr
FerrOP5d ago
uhh oh okay
Steve
Steve4d ago
you should do run: async function execute(client, interaction)* Because just execute returns something (not a function)
Ferr
FerrOP4d ago
i use run: async (client, message, args) => {}
Steve
Steve4d ago
That's valid i think It is

Did you find this page helpful?