Slash Commands
On top of the base options, slash commands require a description
. These can be localized with descriptionLocalizations
just like with the name
.
Options
Slash Commands are special as they can take input directly from the user, in the form of options
. As an example let’s make a command that returns a channel’s id:
We can then run it:
Autocomplete
Some options support the autocomplete
property, which when enabled allows you to automatically suggest items to the user as they type. For example, let’s write a command that returns a colour and provides autocomplete on the colour names: