Debugger
Represents the debugger client
Constructor
new Debugger(client, options);
Properties
.owners
.owners
Array of owner IDs Type: Snowflake[]
.client
.client
discord.js Client instance Type: Client
.options
.options
Debugger Options Type: ?Options
Methods
.messageRun(message
, args?
)
message
, args?
)Runs the debugger instance for message commands
Returns: Promise<Message>
Examples:
if (message.content.startsWith('!debug')) {
args = message.content.split(' ').slice(1);
await Debugger.messageRun(message, args);
}
.addOwner(id
)
id
)Add a userId
to the owners array
PARAMETER
TYPE
DETAILS
OPTIONAL
Returns: string[]
Examples:
const owners = Debugger.addOwner('923925375657082931');
console.log(`Owners: ${owners}`);
.removeOwner(id
)
id
)Remove a userId
from the owners array
PARAMETER
TYPE
DETAILS
OPTIONAL
Returns: string[]
Examples:
const owners = Debugger.removeOwner('923925375657082931');
console.log(`Owners: ${owners}`);
Last updated