Sign In

shardReady

Event is executed when a shard of this bot becomes ready

v1.0.1+

Register the event

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

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

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

Handle the event

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

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

Was this page helpful?