Slash
How to create discord slash commands
First of all, import the createCommand
function from base and ApplicationCommandType
from discord.js
To create a slash command, you need to set name, description and type.
Slash command names cannot be empty, cannot contain special characters, capital letters or spaces
You can set options, subcommands and groups too