mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
fix(MessageReaction): Address undefined burst properties (#10597)
* fix(MessageReaction): `undefined` burst properties * refactor: simpler burst colour check Co-authored-by: Almeida <github@almeidx.dev> --------- Co-authored-by: Almeida <github@almeidx.dev> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -36,7 +36,7 @@ class MessageReaction {
|
|||||||
* Whether the client has super-reacted using this emoji
|
* Whether the client has super-reacted using this emoji
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
*/
|
*/
|
||||||
this.meBurst = data.me_burst;
|
this.meBurst = Boolean(data.me_burst);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A manager of the users that have given this reaction
|
* A manager of the users that have given this reaction
|
||||||
@@ -52,7 +52,7 @@ class MessageReaction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_patch(data) {
|
_patch(data) {
|
||||||
if ('burst_colors' in data) {
|
if (data.burst_colors) {
|
||||||
/**
|
/**
|
||||||
* Hexadecimal colors used for this super reaction
|
* Hexadecimal colors used for this super reaction
|
||||||
* @type {?string[]}
|
* @type {?string[]}
|
||||||
|
|||||||
Reference in New Issue
Block a user