From 635a9c95149e99d9cf98373a56514f08ae8d4a17 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sat, 21 Jan 2023 22:02:53 -0700 Subject: [PATCH] createReaction -> addReaction --- src/lib/commandDispatcher.js | 4 ++-- src/modules/fedimbed.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/commandDispatcher.js b/src/lib/commandDispatcher.js index a62ba87..5b69232 100644 --- a/src/lib/commandDispatcher.js +++ b/src/lib/commandDispatcher.js @@ -160,7 +160,7 @@ async function CommandDispatcher(msg) { } } if (response.reaction) { - msg.createReaction(response.reaction); + msg.addReaction(response.reaction); } else { try { const outMessage = await msg.channel.createMessage( @@ -179,7 +179,7 @@ async function CommandDispatcher(msg) { if (response.addReactions) { for (const index in response.addReactions) { const reaction = response.addReactions[index]; - await outMessage.createReaction(reaction); + await outMessage.addReaction(reaction); } } } catch (err) { diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index decdfab..b12983b 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -521,7 +521,7 @@ async function processUrl(msg, url, spoiler = false) { let sendWait = false; if (files.length > 0) { sendWait = true; - await msg.createReaction("\uD83D\uDCE4"); + await msg.addReaction("\uD83D\uDCE4"); } await msg.channel