$createSlashCommand
Creates a slash command.
Last updated
Creates a slash command.
Last updated
This function has three params.
Param | Description | Type | Required |
---|---|---|---|
See the Slash Commands article for more information.
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