feat: Super Reaction

test: 
This commit is contained in:
Elysia
2023-05-02 22:37:37 +07:00
parent f4dbc57f42
commit 11167aed25
6 changed files with 51 additions and 6 deletions

View File

@@ -30,6 +30,12 @@ class MessageReaction {
*/
this.me = data.me;
/**
* Whether the client has given this super reaction
* @type {boolean}
*/
this.meBurst = Boolean(data.me_burst);
/**
* A manager of the users that have given this reaction
* @type {ReactionUserManager}
@@ -49,6 +55,22 @@ class MessageReaction {
*/
this.count ??= data.count;
}
if ('burst_count' in data) {
/**
* The number of people that have given the same super reaction
* @type {?number}
*/
this.burstCount ??= data.burst_count;
}
if ('burst_colors' in data) {
/**
* Burst colors of the reaction
* @type {?string[]}
*/
this.burstColors ??= data.burst_colors;
}
}
/**