Enabling Slash Commands
Slash commands are commands registered from a bot to Discord with the "/" prefix for those who are not used to legacy (or text) commands.
Last updated
Slash commands are commands registered from a bot to Discord with the "/" prefix for those who are not used to legacy (or text) commands.
Last updated
slash
optiontype
is a command option to define what the command can be used for. The only options available are:
On the page of the Commands Guide, we learned how to create our very own ping command (which is a legacy command). So let's use that as an example of creating a Slash Command.
Once done, run the program, and let's try running the "ping" command. Here's what it will appear:
Legacy Command:
Slash Command: