Page cover

Debugger

Represents the debugger client

Constructor

new Debugger(client, options);
PARAMETER
TYPE
DESCRIPTION
OPTIONAL

client

discord.js Client instance

options

Debugger options

Properties

.owners

Array of owner IDs Type: Snowflakearrow-up-right[]

.client

discord.js Client instance Type: Clientarrow-up-right

.options

Debugger Options Type: ?Options

Methods

.messageRun(message, args?)

Runs the debugger instance for message commands

PARAMETER
TYPE
DETAILS
OPTIONAL

message

discord.js Message instance

args

Message args, including sub command

Returns: Promisearrow-up-right<Messagearrow-up-right>

Examples:

.addOwner(id)

circle-info

Recommended: !debug owners add <id>

Add a userId to the owners array

PARAMETER
TYPE
DETAILS
OPTIONAL

Returns: stringarrow-up-right[]

Examples:

.removeOwner(id)

circle-info

Recommended: !debug owners remove <id>

Remove a userId from the owners array

PARAMETER
TYPE
DETAILS
OPTIONAL

Returns: stringarrow-up-right[]

Examples:

Last updated