diff --git a/src/index.js b/src/index.js index 5bb8e1f..026bee4 100644 --- a/src/index.js +++ b/src/index.js @@ -109,7 +109,7 @@ bot.on("messageUpdate", async (msg, oldMsg) => { } }); 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; try {