Sign In

guildScheduledEventCreate

This event is called when a scheduled event is created

v1.4.0+

Register the event

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

Handle the event

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

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

Required Intents

Listening to this event requires:
GuildScheduledEvents

Was this page helpful?