Register the event
Enable shardError in events in your ForgeClient options in index.js:
const { ForgeClient } = require("@tryforge/forgescript")
const client = new ForgeClient({
events: [
"shardError"
],
intents: [
"Guilds"
]
})Handle the event
Listen and react when shardError is triggered using an inline command or an external handler file:
client.commands.add({
type: "shardError",
code: `$log[shardError event was triggered!]`
})