DiscordJS-Example/events/reactionAdd.js

9 lines
276 B
JavaScript
Raw Normal View History

2024-01-26 19:23:45 +00:00
import { Events } from 'discord.js';
export const name = Events.MessageReactionAdd;
2024-01-28 17:33:03 +00:00
export async function execute(reaction, user) {
const uname = user.username;
const rname = reaction._emoji.name;
console.debug(`[DEBUG] User '${uname}' reacted with emoji '${rname}'.`);
2024-01-26 19:23:45 +00:00
}