fix(Reactions): make MessageRection#id again null for default emojis (#1940)

Which was causing issues when resolving their identifier and MessageRection#id was also stated as nullable Snowflake, which a unicode not is
This commit is contained in:
SpaceEEC
2017-09-14 12:36:08 +02:00
committed by Crawl
parent b62c472d0a
commit 25ece1882b

View File

@@ -13,8 +13,7 @@ class ReactionStore extends DataStore {
}
create(data, cache) {
data.emoji.id = data.emoji.id || decodeURIComponent(data.emoji.name);
return super.create(data, cache, { id: data.emoji.id, extras: [this.message] });
return super.create(data, cache, { id: data.emoji.id || data.emoji.name, extras: [this.message] });
}
/**