Sign In

debug

This event is fired when discord.js sends out debug info

v1.0.1+

Register the event

Enable debug in events in your ForgeClient options in index.js:

const { ForgeClient } = require("@tryforge/forgescript")

const client = new ForgeClient({
  events: [
    "debug"
  ],
  intents: [
    "Guilds"
  ]
})

Handle the event

Listen and react when debug is triggered using an inline command or an external handler file:

client.commands.add({
  type: "debug",
  code: `$log[debug event was triggered!]`
})

Was this page helpful?