0.3.0 • Published 5 years ago

theg-slash v0.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

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>');