$createSlashCommand

Creates a slash command.

Usage

$createSlashCommand[guildID | global;applicationCommandDataName;returnCommandID]

This function has three params.

ParamDescriptionTypeRequired

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

See the Slash Commands article for more information.

Last updated