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: Snowflake[]

.client

discord.js Client instance Type: Client

.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: Promise<Message>

Examples:

.addOwner(id)

Recommended: !debug owners add <id>

Add a userId to the owners array

PARAMETER
TYPE
DETAILS
OPTIONAL

id

User ID

❌

Returns: string[]

Examples:

.removeOwner(id)

Recommended: !debug owners remove <id>

Remove a userId from the owners array

PARAMETER
TYPE
DETAILS
OPTIONAL

id

User ID

❌

Returns: string[]

Examples:

Last updated