ReactionManager
ReactionManager ⇐ Base
A class representing a reaction manager for a specific message in a channel.
Kind: global class
Extends: Base
- ReactionManager ⇐
Base
- new ReactionManager(reactions, messageId, channelId, guildId, client)
- .guild ⇒
- .cache ⇒
- .resolve(reaction) ⇒
MessageReaction
- .removeAll() ⇒
void
new ReactionManager(reactions, messageId, channelId, guildId, client)
Constructs a new instance of the ReactionCollector class.
Param | Type | Description |
---|---|---|
reactions | Array | An array of reaction objects. |
messageId | string | The ID of the message. |
channelId | string | The ID of the channel. |
guildId | string | The ID of the guild. |
client | Client | The 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.
Param | Type | Description |
---|---|---|
reaction | string | MessageReaction | The 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