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