Register the event
Enable messagePollVoteRemove 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: [
"messagePollVoteRemove"
],
intents: [
"GuildMessagePolls",
"DirectMessagePolls"
]
})Handle the event
Listen and react when messagePollVoteRemove is triggered using an inline command or an external handler file:
client.commands.add({
type: "messagePollVoteRemove",
code: `$log[messagePollVoteRemove event was triggered!]`
})Required Intents
Listening to this event requires:
GuildMessagePolls DirectMessagePolls