ModzClient

ModzClient

Discord.js command handler made by myself

Constructor

new ModzClient(optionsopt)

Source:
Parameters:
Name Type Attributes Description
options ModzClientOptions <optional>
Options for the client

Extends

  • Client

Members

commandPrefix :string

The command prefix
Source:
Type:
  • string

handler :CommandHandler

The command handler
Source:
Type:

loader :Collection

The command database of the client
Source:
Type:
  • Collection

owner :string

The client owner
Source:
Type:
  • string

Events

commandError

Emitted when an error occurs while running a command
Source:
Parameters:
Name Type Description
error Error The occurred error
command Command Command that is being run
message Message Command message that the command is running from
args Object | string | Array.<string> Arguments for the command

commandLoad

Emitted when a command is loaded
Source:
Parameters:
Name Type Description
command Command Command that was loaded

commandReload

Emitted when a command is reregistered
Source:
Parameters:
Name Type Description
newCommand Command New command
oldCommand Command Old command

commandRun

Emitted when running a command
Source:
Parameters:
Name Type Description
command Command Command that is being run
message Message Command message that the command is running from
args Object | string | Array.<string> Arguments for the command