Skip to content

Commit 2fa7d62

Browse files
Jiralitealmeidxkodiakhq[bot]
authored
fix(MessageReaction): Address undefined burst properties (#10597)
* fix(MessageReaction): `undefined` burst properties * refactor: simpler burst colour check Co-authored-by: Almeida <[email protected]> --------- Co-authored-by: Almeida <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 40fbd82 commit 2fa7d62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/discord.js/src/structures/MessageReaction.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class MessageReaction {
3636
* Whether the client has super-reacted using this emoji
3737
* @type {boolean}
3838
*/
39-
this.meBurst = data.me_burst;
39+
this.meBurst = Boolean(data.me_burst);
4040

4141
/**
4242
* A manager of the users that have given this reaction
@@ -52,7 +52,7 @@ class MessageReaction {
5252
}
5353

5454
_patch(data) {
55-
if ('burst_colors' in data) {
55+
if (data.burst_colors) {
5656
/**
5757
* Hexadecimal colors used for this super reaction
5858
* @type {?string[]}

0 commit comments

Comments
 (0)