0.3.0 • Published 5 years ago
theg-slash v0.3.0
Theg Slash
A Discord slash command handler. Docs
npm i theg-slash
Example
const { Handler } = require('theg-slash')
const Discord = require ('discord.js')
const client = new Discord.Client
const commandClient = new Handler(client)
client.on('ready', async () => {
commandClient.addCommand({
name: 'Hello',
run: function(interaction) {
interaction.reply('World!')
}
})
})
client.login('<Token>');
0.3.0
5 years ago