Sign In

guildAuditLogEntryCreate

This event is fired when a guild audit log entry is created

v1.0.3+

Register the event

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

Handle the event

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

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

Required Intents

Listening to this event requires:
Guilds GuildModeration

Was this page helpful?