This commit is contained in:
Travis CI 2016-12-31 02:08:21 +00:00
parent 609c516c65
commit ff7edd40c2
2 changed files with 3 additions and 3 deletions

View file

@ -2469,7 +2469,7 @@ class Message {
}
_addReaction(emoji, user) {
const emojiID = emoji.id ? `${emoji.name}:${emoji.id}` : emoji.name;
const emojiID = emoji.identifier;
let reaction;
if (this.reactions.has(emojiID)) {
reaction = this.reactions.get(emojiID);
@ -2487,7 +2487,7 @@ class Message {
}
_removeReaction(emoji, user) {
const emojiID = emoji.id || emoji;
const emojiID = emoji.identifier;
if (this.reactions.has(emojiID)) {
const reaction = this.reactions.get(emojiID);
if (reaction.users.has(user.id)) {

File diff suppressed because one or more lines are too long