From ff4615e1aa0d0fb5602a0f83c49a4ff9023869ac Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 17 May 2024 14:38:30 -0600 Subject: [PATCH 1/2] forgot to register the command as per usual --- src/modules/fedimbed.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 2aa79ab..ae22dc3 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -1151,3 +1151,4 @@ fedimbedCommand.callback = async function (interaction) { }; } }; +hf.registerCommand(fedimbedCommand); From 4f8340cba701387330a0d0bdfcb7c707aa33b2cf Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 17 May 2024 14:39:14 -0600 Subject: [PATCH 2/2] nullcheck author in reaction event --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {