Global

Members

(constant) Logger

Source:

Type Definitions

args

Message is spit for spaces (' ')
Properties:
Name Type Description
prefix string Message prefix
content string Message content
from function Splice message content from argument number to end message. fn(arg:number)
until function Splice message content from begin until argument number. fn(arg:number)
after function Same content. fn()
client Client Client instance
command string Command name
subcommand string | undefined Subcommand name if exists
array Each word form message is in a slot
Source:

CommandHook(msg, args, client, command)

Command hook
Parameters:
Name Type Description
msg Eris.Message Eris message
args args Arguments
client Client Eris message
command Command Command
Source:

CommandRequirementFunction(config) → {CommandRequirementObject|Array.<CommandRequirementObject>}

Parameters:
Name Type Description
config object Config requirement
Properties
Name Type Description
command Command Command
command Client Client
Source:
Returns:
Type
CommandRequirementObject | Array.<CommandRequirementObject>

CommandRequirementObject

Properties:
Name Type Description
type string Type requirement
condition function If returns false, do first of response/resposneDM/run
response string | function | undefined Reply with this response
responseDM string | function | undefined Reply with this response by direct message
run function | undefined Run this custom function
init function | undefined Run when requirement is added to command
Source:

CommandRequirementsCreators(config) → {CommandRequirementObject}

Creators for Command Requirements
Parameters:
Name Type Description
config object Object with requirement config
Source:
See:
Returns:
Type
CommandRequirementObject

EmbedMessageObject

Source:
See:

Logger

Type:
  • object
Source:

Ownersend(content, file)

Function to send messages to owner
Parameters:
Name Type Description
content string | EmbedMessageObject Message content to send
file object File to send
Source:

parseCommand

Create args object and find command. Returns both.
Properties:
Name Type Description
args args args object
command Command | undefined command
Source: