Help

Help

A command to help a user get more information about the bot usage

Constructor

new Help(fileName)

Parameters:
Name Type Description
fileName string
Version:
  • 1.0
Author:
  • Maksim Sandybekov
Source:

Extends

Methods

getCommandHelp(args, userId) → {string}

Get the help response for a specific argument.
Parameters:
Name Type Description
args * The arguments passed with the message.
userId * The id of the calling user.
Source:

getHelpOverview(userId) → {string}

Get the general help.
Parameters:
Name Type Description
userId The id of the calling user.
Source:

execute(message, args)

Executes the main logic of the command
Parameters:
Name Type Description
message * A discord.js message object representing a request.
args * Arguments passed in addition to the command call
Overrides:
Source:

getCommand() → {Object}

Creates and returns a object representation of the command. Used to init discord.js commands.
Overrides:
Source:

getResponse(name) → {string}

Returns a command specific response for a user, additionally supplied arguments besides name are used to replace template sequeuence of the string.
Parameters:
Name Type Description
name string The key of the response. Used to access the responses for the calling command.
Overrides:
Source:
Examples
getResponse("enqueueFirst", userId);
getResponse("success", userId, memberId);