Skip to content

ReactionManager

classe · Source

Manages API methods for reactions and holds their cache.

Extends: CachedManager

Properties

message

message: Message

The message that this manager belongs to Source

cache

cache: Collection<(string|Snowflake), MessageReaction>

The reaction cache of this manager Source

_cache

readonly · private

_cache: Collection

The private cache of items for this manager. Source

holds

readonly · private

holds: function

The data structure belonging to this manager. Source

client

readonly

client: Client

The client that instantiated this Manager Source

Methods

resolve

resolve(reaction: MessageReactionResolvable): MessageReaction

Resolves a MessageReactionResolvable to a MessageReaction object. Parameters

NameTypeDescription
reactionMessageReactionResolvableThe MessageReaction to resolve

Returns: MessageReactionSource

resolveId

resolveId(reaction: MessageReactionResolvable): Snowflake

Resolves a MessageReactionResolvable to a MessageReaction id. Parameters

NameTypeDescription
reactionMessageReactionResolvableThe MessageReaction to resolve

Returns: SnowflakeSource

removeAll

async

async removeAll(): Promise<Message>

Removes all reactions from a message. Returns: Promise<Message>Source

Unofficial software. Not affiliated with or supported by Discord.