Optional
default_Optional
descriptionOptional
description_Optional
nameOptional
name_Adds an option to the command.
Adds an option to the command.
Sets the default locale for localisation.
Sets the default locale for localisation.
Sets the permission needed to use the command.
The permissions required to be able to use this command.
Sets the description of the command.
The description of the command, or an object of descriptions for localisation.
Sets the name of the command.
The name of the command or an object of names for localisation.
Sets whether this command is NSFW.
Whether this command is NSFW.
Returns the correct Discord format for a command.
Optional
format: JsonTypes
Structure for a command.
See
https://discord.com/developers/docs/interactions/application-commands#create-global-application-command