Sign In

roleUpdate

This event is fired when a role is updated

v1.0.1+

Register the event

Enable roleUpdate 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: [
    "roleUpdate"
  ],
  intents: [
    "Guilds"
  ]
})

Handle the event

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

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

Required Intents

Listening to this event requires:
Guilds

Was this page helpful?