Sign In

userUpdate

This event is fired when a user updates their profile

v1.0.1+

Register the event

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

Handle the event

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

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

Required Intents

Listening to this event requires:
GuildMembers

Was this page helpful?