ReactionManager
ManagerOn this page
ReactionManager is the cache and REST facade for Reaction objects owned by the parent. Typical calls are fetch, create, edit, delete, resolve, and resolveId.
Constructor
ReactionManager.new(client, message) The class table is callable, so ReactionManager(client, message) is the same as .new.
| Name | Type | Required | Behavior |
|---|---|---|---|
client |
any |
required | Passed through to the implementation as written. |
message |
any |
required | Passed through to the implementation as written. |
local discord = require("discord")
local object = discord.ReactionManager({}, {})Properties
- Name
message- Type
any- Access
- readonly
- Description
- Instance field
ReactionManager.message. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this ReactionManager.
Methods
ReactionManager:removeAll()
#Remove All from this ReactionManager.
Signature
ReactionManager:removeAll() Parameters
No parameters.
Returns
ReactionManager — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a ReactionManager
object:removeAll()ReactionManager:resolveId()
#Resolve a snowflake, object, or mention to an id string.
Signature
ReactionManager:resolveId(reaction) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
reaction |
any |
required | Passed through to the implementation as written. |
Returns
ReactionManager — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a ReactionManager
object:resolveId(reaction)Examples
local discord = require("discord")
local object = discord.ReactionManager({})Related APIs
ApplicationCommandManager · ApplicationCommandPermissionsManager · ApplicationEmojiManager · AutoModerationRuleManager · BaseGuildEmojiManager · BaseManager · CachedManager · CategoryChannelChildManager
Version: discord 1.2.4 · runtime 1.0.0