Sign In

entitlementUpdate

This event is fired when an entitlement is updated

v1.5.0+

Register the event

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

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

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

Handle the event

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

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

Was this page helpful?