Skip to content

ReactionManager

ReactionManager ⇐ Base

A class representing a reaction manager for a specific message in a channel.

Kind: global class
Extends: Base

new ReactionManager(reactions, messageId, channelId, guildId, client)

Constructs a new instance of the ReactionCollector class.

ParamTypeDescription
reactionsArrayAn array of reaction objects.
messageIdstringThe ID of the message.
channelIdstringThe ID of the channel.
guildIdstringThe ID of the guild.
clientClientThe client instance.

reactionManager.guild ⇒

Retrieves the guild associated with this guildId.

Kind: instance property of ReactionManager
Returns: The guild object if found, otherwise null.

reactionManager.cache ⇒

Get the cache of reactions.

Kind: instance property of ReactionManager
Returns: The cache of reactions.

reactionManager.resolve(reaction) ⇒ MessageReaction

Resolves a reaction object and returns a new MessageReaction instance.

Kind: instance method of ReactionManager
Returns: MessageReaction - A new MessageReaction instance with the resolved reaction object.

ParamTypeDescription
reactionstring | MessageReactionThe reaction object to resolve. Can be either a string or a MessageReaction instance.

reactionManager.removeAll() ⇒ void

Removes all reactions from a specific message in a channel.

Kind: instance method of ReactionManager