createReaction -> addReaction

This commit is contained in:
Cynthia Foxwell 2023-01-21 22:02:53 -07:00
parent abfeba89b3
commit 635a9c9514
2 changed files with 3 additions and 3 deletions

View file

@ -160,7 +160,7 @@ async function CommandDispatcher(msg) {
} }
} }
if (response.reaction) { if (response.reaction) {
msg.createReaction(response.reaction); msg.addReaction(response.reaction);
} else { } else {
try { try {
const outMessage = await msg.channel.createMessage( const outMessage = await msg.channel.createMessage(
@ -179,7 +179,7 @@ async function CommandDispatcher(msg) {
if (response.addReactions) { if (response.addReactions) {
for (const index in response.addReactions) { for (const index in response.addReactions) {
const reaction = response.addReactions[index]; const reaction = response.addReactions[index];
await outMessage.createReaction(reaction); await outMessage.addReaction(reaction);
} }
} }
} catch (err) { } catch (err) {

View file

@ -521,7 +521,7 @@ async function processUrl(msg, url, spoiler = false) {
let sendWait = false; let sendWait = false;
if (files.length > 0) { if (files.length > 0) {
sendWait = true; sendWait = true;
await msg.createReaction("\uD83D\uDCE4"); await msg.addReaction("\uD83D\uDCE4");
} }
await msg.channel await msg.channel