Sign In

inviteDelete

This event is fired when an invite is deleted

v1.0.3+

Register the event

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

Handle the event

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

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

Required Intents

Listening to this event requires:
Guilds GuildInvites

Was this page helpful?