mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
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:
@@ -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] });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user