Listen

Listen

Register a user to waiting for the next enqueued member.

Constructor

new Listen(fileName)

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

Extends

Methods

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