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 { 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);