mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 11:40:41 +00:00
Webpack build: 3b9b06227e
This commit is contained in:
parent
609c516c65
commit
ff7edd40c2
2 changed files with 3 additions and 3 deletions
|
|
@ -2469,7 +2469,7 @@ class Message {
|
||||||
}
|
}
|
||||||
|
|
||||||
_addReaction(emoji, user) {
|
_addReaction(emoji, user) {
|
||||||
const emojiID = emoji.id ? `${emoji.name}:${emoji.id}` : emoji.name;
|
const emojiID = emoji.identifier;
|
||||||
let reaction;
|
let reaction;
|
||||||
if (this.reactions.has(emojiID)) {
|
if (this.reactions.has(emojiID)) {
|
||||||
reaction = this.reactions.get(emojiID);
|
reaction = this.reactions.get(emojiID);
|
||||||
|
|
@ -2487,7 +2487,7 @@ class Message {
|
||||||
}
|
}
|
||||||
|
|
||||||
_removeReaction(emoji, user) {
|
_removeReaction(emoji, user) {
|
||||||
const emojiID = emoji.id || emoji;
|
const emojiID = emoji.identifier;
|
||||||
if (this.reactions.has(emojiID)) {
|
if (this.reactions.has(emojiID)) {
|
||||||
const reaction = this.reactions.get(emojiID);
|
const reaction = this.reactions.get(emojiID);
|
||||||
if (reaction.users.has(user.id)) {
|
if (reaction.users.has(user.id)) {
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue