onReactionAdd
Command executes when a reaction gets added to a message.
Prerequisites
bot.addEvent([
"onMessage",
"onInteraction",
"onReactionAdd" //This is what you need to add
])const dbd = require("dbd.ts")
const bot = new dbd.Bot({
intents: ["GUILDS", "GUILD_MESSAGES", "GUILD_MESSAGE_REACTIONS"], //You add the intent to this array, as shown
prefix: "PREFIX"
})
//The rest of your index.js file hereFunctions
Example

Last updated
Was this helpful?