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

View File

@ -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