diff --git a/src/structures/MessageReaction.js b/src/structures/MessageReaction.js index 4f856647..8bfc14c7 100644 --- a/src/structures/MessageReaction.js +++ b/src/structures/MessageReaction.js @@ -50,14 +50,6 @@ class MessageReaction { } _patch(data) { - if ('count' in data) { - /** - * The number of people that have given the same reaction - * @type {?number} - */ - this.count ??= data.count; - } - if ('burst_colors' in data) { /** * Hexadecimal colors used for this super reaction @@ -66,6 +58,14 @@ class MessageReaction { this.burstColors = data.burst_colors; } + if ('count' in data) { + /** + * The number of people that have given the same reaction + * @type {?number} + */ + this.count ??= data.count; + } + if ('count_details' in data) { /** * The reaction count details object contains information about super and normal reaction counts. @@ -82,6 +82,8 @@ class MessageReaction { burst: data.count_details.burst, normal: data.count_details.normal, }; + } else { + this.countDetails ??= { burst: 0, normal: 0 }; } }