This commit is contained in:
2
index.js
2
index.js
@ -51,7 +51,7 @@ client.on(Events.MessageCreate, async (message) => {
|
|||||||
userstoreact.forEach(async (usr) => {
|
userstoreact.forEach(async (usr) => {
|
||||||
if (message.mentions.users.find((u) => u.id == usr.userId)) {
|
if (message.mentions.users.find((u) => u.id == usr.userId)) {
|
||||||
try {
|
try {
|
||||||
await message.react(emoji);
|
await message.react(usr.emoji);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("Failed to react to message:", err);
|
console.error("Failed to react to message:", err);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user