createReaction -> addReaction
This commit is contained in:
parent
abfeba89b3
commit
635a9c9514
2 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue