Commands
Navigate into your commands folder and make a file and name it anything.
The basic syntax for a command file is :
You can use 5 parameters with execute function which are :
message :- Message Component of Legacy Command.
args :- Various arguments supplied to the command.
client : Client object.
interaction : Interaction Component of a slash command.
options : The options of the slash command.
Lets see how this works with an example.
Here is the output !
Last updated