$createSlashCommand
Creates a slash command.
Last updated
Was this helpful?
Creates a slash command.
Last updated
Was this helpful?
This function has three params.
guildID | global
Specify global if the slash command should be global, or pass a guild ID to add the command to that guild.
Snowflake | String
Yes
applicationCommandDataName
The name of the slash command data to create.
String
Yes
returnApplicationID
Whether to return the slash command ID once created.
Boolean
No