Preview environment

class MessageReaction

export class MessageReaction

Represents a reaction to a message.

burstColors : string[] | null

Hexadecimal colors used for this super reaction

readonly
client : Client<true>

The client that instantiated this message reaction

count : number

The number of people that have given the same reaction

The reaction count details object contains information about super and normal reaction counts.

readonly
emoji : GuildEmoji | ReactionEmoji

The emoji of this reaction. Either a GuildEmoji object for known custom emojis, or a ReactionEmoji object which has fewer properties. Whatever the prototype of the emoji, it will still have name, id, identifier and toString()

me : boolean

Whether the client has given this reaction

meBurst : boolean

Whether the client has super-reacted using this emoji

The message that this reaction refers to

readonly
partial : false

Whether or not this reaction is a partial

A manager of the users that have given this reaction

Fetch this reaction.

Makes the client user react with this reaction

Removes all users from this reaction.

toJSON() : unknown

valueOf() : Snowflake | string