fix: Super Reaction
This commit is contained in:
parent
11167aed25
commit
9ed4e6bda6
@ -36,7 +36,7 @@ class MessageReactionAdd extends Action {
|
||||
emoji: data.emoji,
|
||||
count: message.partial ? null : 0,
|
||||
me: user.id === this.client.user.id,
|
||||
me_burst: user.id === this.client.user.id && data.me_burst,
|
||||
...data,
|
||||
});
|
||||
if (!reaction) return false;
|
||||
reaction._add(user);
|
||||
|
@ -28,13 +28,13 @@ class MessageReaction {
|
||||
* Whether the client has given this reaction
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.me = data.me;
|
||||
this.me = data.me || data.me_burst;
|
||||
|
||||
/**
|
||||
* Whether the client has given this super reaction
|
||||
* Super reaction
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.meBurst = Boolean(data.me_burst);
|
||||
this.isBurst = Boolean(data.me_burst || data.burst);
|
||||
|
||||
/**
|
||||
* A manager of the users that have given this reaction
|
||||
|
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@ -2409,9 +2409,9 @@ export class MessageReaction {
|
||||
public count: number;
|
||||
public burstCount: number;
|
||||
public burstColors: string[];
|
||||
public isBurst: boolean;
|
||||
public readonly emoji: GuildEmoji | ReactionEmoji;
|
||||
public me: boolean;
|
||||
public meBurst: boolean;
|
||||
public message: Message | PartialMessage;
|
||||
public readonly partial: false;
|
||||
public users: ReactionUserManager;
|
||||
|
Loading…
Reference in New Issue
Block a user