Class: MessageReaction

MessageReaction

Represents a reaction to a message.

Constructor

new MessageReaction(client, data, message)

Parameters:
Name Type Description
client Client The instantiating client
data Object The data for the message reaction
message Message The message the reaction refers to
Source:

Members

(readonly) client :Client

The client that instantiated this message reaction
Type:
Source:

(nullable) count :number

The number of people that have given the same reaction
Type:
  • number
Source:

(readonly) emoji :GuildEmoji|ReactionEmoji

The emoji of this reaction, either an 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()`
Type:
Source:

me :boolean

Whether the client has given this reaction
Type:
  • boolean
Source:

message :Message

The message that this reaction refers to
Type:
Source:

(readonly) partial :boolean

Whether or not this reaction is a partial
Type:
  • boolean
Source:

users :ReactionUserManager

A manager of the users that have given this reaction
Type:
Source:

Methods

fetch() → {Promise.<MessageReaction>}

Fetch this reaction.
Source:
Returns:
Type
Promise.<MessageReaction>

remove() → {Promise.<MessageReaction>}

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