DiscordJS-Template/events/reactionAdd.js

12 lines
364 B
JavaScript
Raw Normal View History

2024-01-26 19:23:45 +00:00
import { Events } from 'discord.js';
2024-02-04 22:41:04 +00:00
import { config } from 'dotenv';
config();
2024-01-26 19:23:45 +00:00
export const name = Events.MessageReactionAdd;
2024-01-28 17:33:03 +00:00
export async function execute(reaction, user) {
2024-02-04 22:41:04 +00:00
if (user.id === process.env.CLIENT) return;
2024-01-28 17:33:03 +00:00
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
}