Sign In

messageReactionRemoveAll

This event is fired when all emojis are removed from a message's reactions

v1.4.0+

Register the event

Enable messageReactionRemoveAll 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: [
    "messageReactionRemoveAll"
  ],
  intents: [
    "GuildMessageReactions",
    "DirectMessageReactions"
  ]
})

Handle the event

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

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

Required Intents

Listening to this event requires:
GuildMessageReactions DirectMessageReactions

Was this page helpful?