mirror of
https://github.com/danbulant/discord.js
synced 2026-06-10 02:02:40 +00: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:
parent
b62c472d0a
commit
25ece1882b
1 changed files with 1 additions and 2 deletions
|
|
@ -13,8 +13,7 @@ class ReactionStore extends DataStore {
|
||||||
}
|
}
|
||||||
|
|
||||||
create(data, cache) {
|
create(data, cache) {
|
||||||
data.emoji.id = data.emoji.id || decodeURIComponent(data.emoji.name);
|
return super.create(data, cache, { id: data.emoji.id || data.emoji.name, extras: [this.message] });
|
||||||
return super.create(data, cache, { id: data.emoji.id, extras: [this.message] });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue