nullcheck author in reaction event
This commit is contained in:
parent
ff4615e1aa
commit
4f8340cba7
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ bot.on("messageUpdate", async (msg, oldMsg) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
bot.on("messageReactionAdd", async (msg, reaction, reactor) => {
|
bot.on("messageReactionAdd", async (msg, reaction, reactor) => {
|
||||||
if (msg.author.id !== bot.user.id) return;
|
if (msg?.author?.id !== bot.user.id) return;
|
||||||
if (reaction.name !== "\u274c") return;
|
if (reaction.name !== "\u274c") return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue