discord.js-commando-help

4.2.8 • Public • Published

This package creates a help menu for your discord.js-commando commands!

Example:

Usage

const Discord = require ('discord.js');
const Commando = require('discord.js-commando')
const commandohelp = require ('discord.js-commando-help');
const path = require('path');
const client = new Commando.CommandoClient({
    // your options here
});
client.on('ready', async () => {
    client.registry
        .registerGroups([
            ['<your group name>', '<your group description>']
        ])
        .registerDefaultTypes()
        .registerCommandsIn(path.join(__dirname, '<your command folder>'));
})

client.on('message', (message) => {
    const args = message.content.slice(prefix.length).split(/ +/);
    commandohelp.help(message, args, 'ff0000');

}) 
client.login (<your token>);

Documentation

void help(message, args, HEX embedcolor)

void get_groups(client);

void get_commands(client);

License

ISC

Package Sidebar

Install

npm i discord.js-commando-help

Weekly Downloads

7

Version

4.2.8

License

ISC

Unpacked Size

8.23 kB

Total Files

3

Last publish

Collaborators

  • arvidw0310