README
Welcome to Slash Commands
Use Slash Commands in the most practical way!
Code
const Discord = require('discord.js');
const client = new Discord.Client();
const Slash = require('slashcmds-discord');
const slash = new Slash(client);
client.on("ready", () {
slash.createCommand("GuildId","Command Name", "Command Description", "Command Content", 4, {
// Options for Nerds
});
});
client.login("YourBotToken")
Result
Curiosity
The code used is not from Discord Slash Commands, but used from the Discord.js dependency.
Thanks :)
Thanks for use Discord Slash Commands.