🛠️
discord-debug
npmGitHub
  • discord-debug
    • npm
    • GitHub
  • classes
    • Debugger
  • Interfaces
    • Options
    • DefaultListeners
  • Commands
    • Default (Info)
    • Help
    • Curl
    • Docs
    • Eval
    • Type
    • Owners
    • Shard
    • Shell
    • Source
    • Sql
    • Stats
Powered by GitBook
On this page
  • Constructor
  • Properties
  • .owners
  • .client
  • .options
  • Methods
  • .messageRun(message, args?)
  • .addOwner(id)
  • .removeOwner(id)
  1. classes

Debugger

Represents the debugger client

Previousdiscord-debugNextOptions

Last updated 1 year ago

Constructor

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

client

discord.js Client instance

❌

options

Debugger options

✅

Properties

.owners

Array of owner IDs Type: []

.client

discord.js Client instance Type:

.options

Debugger Options Type:

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

✅

Examples:

if (message.content.startsWith('!debug')) {
    args = message.content.split(' ').slice(1);
    await Debugger.messageRun(message, args);
}

.addOwner(id)

Recommended: !debug owners add <id>

Add a userId to the owners array

PARAMETER
TYPE
DETAILS
OPTIONAL

id

User ID

❌

Examples:

const owners = Debugger.addOwner('923925375657082931');
console.log(`Owners: ${owners}`);

.removeOwner(id)

Recommended: !debug owners remove <id>

Remove a userId from the owners array

PARAMETER
TYPE
DETAILS
OPTIONAL

id

User ID

❌

Examples:

const owners = Debugger.removeOwner('923925375657082931');
console.log(`Owners: ${owners}`);

[]

Returns: <>

Returns: []

Returns: []

Snowflake
Client
?Options
string
string
Client
Options
Message
string
Snowflake
Snowflake
Message
Page cover image
Promise