From 76968b4bc14b8a66825f9140d130b1e04c11855a Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Mon, 18 Nov 2024 11:14:29 +0000 Subject: [PATCH] fix(MessageReaction): Address `undefined` burst properties (#10597) * fix(MessageReaction): `undefined` burst properties * refactor: simpler burst colour check Co-authored-by: Almeida --------- Co-authored-by: Almeida Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/discord.js/src/structures/MessageReaction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/discord.js/src/structures/MessageReaction.js b/packages/discord.js/src/structures/MessageReaction.js index 283156465..15c53b78f 100644 --- a/packages/discord.js/src/structures/MessageReaction.js +++ b/packages/discord.js/src/structures/MessageReaction.js @@ -36,7 +36,7 @@ class MessageReaction { * Whether the client has super-reacted using this emoji * @type {boolean} */ - this.meBurst = data.me_burst; + this.meBurst = Boolean(data.me_burst); /** * A manager of the users that have given this reaction @@ -52,7 +52,7 @@ class MessageReaction { } _patch(data) { - if ('burst_colors' in data) { + if (data.burst_colors) { /** * Hexadecimal colors used for this super reaction * @type {?string[]}