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