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