Skip to content

MessageReaction

classe · Source

Represents a reaction to a message.

Properties

client

readonly

client: Client

The client that instantiated this message reaction Source

message

message: Message

The message that this reaction refers to Source

me

me: boolean

Whether the client has given this reaction Source

meBurst

meBurst: boolean

Whether the client has super-reacted using this emoji Source

users

users: ReactionUserManager

A manager of the users that have given this reaction Source

burstColors

nullable

burstColors: Array<string>

Hexadecimal colors used for this super reaction Source

count

nullable

count: number

The number of people that have given the same reaction Source

countDetails

countDetails: ReactionCountDetailsData

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

emoji

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()Source

partial

readonly

partial: boolean

Whether or not this reaction is a partial Source

Methods

remove

async

async remove(): Promise<MessageReaction>

Removes all users from this reaction. Returns: Promise<MessageReaction>Source

fetch

async

async fetch(): Promise<MessageReaction>

Fetch this reaction. Returns: Promise<MessageReaction>Source

Unofficial software. Not affiliated with or supported by Discord.