generated from Baipyrus/DiscordJS-Template
ignore own reactions
This commit is contained in:
parent
cd44a4717a
commit
3d89bd8e65
@ -1,7 +1,10 @@
|
||||
import { Events } from 'discord.js';
|
||||
import { config } from 'dotenv';
|
||||
config();
|
||||
|
||||
export const name = Events.MessageReactionAdd;
|
||||
export async function execute(reaction, user) {
|
||||
if (user.id === process.env.CLIENT) return;
|
||||
const uname = user.username;
|
||||
const rname = reaction._emoji.name;
|
||||
console.debug(`[DEBUG] User '${uname}' reacted with emoji '${rname}'.`);
|
||||
|
Loading…
Reference in New Issue
Block a user