DEV Community

Discussion on: How to make a slash commands bot with Discord.js V13

Collapse
 
soulsoccer73 profile image
Soulsoccer

i tried these few changes and it worked out for me, ive commented the corrections along

Client.command=new Collection(); //command instead of commands

Client.command.set(command.data.name, command);
commands.push(command.data.toJSON());