ReactionUserManager
ManagerOn this page
ReactionUserManager is the cache and REST facade for ReactionUser objects owned by the parent. Typical calls are fetch, create, edit, delete, resolve, and resolveId.
Constructor
ReactionUserManager.new(client, reaction) The class table is callable, so ReactionUserManager(client, reaction) is the same as .new.
| Name | Type | Required | Behavior |
|---|---|---|---|
client |
any |
required | Passed through to the implementation as written. |
reaction |
any |
required | Passed through to the implementation as written. |
local discord = require("discord")
local object = discord.ReactionUserManager({}, {})Properties
- Name
reaction- Type
any- Access
- readonly
- Description
- Instance field
ReactionUserManager.reaction. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this ReactionUserManager.
Methods
ReactionUserManager:fetch()
#Request a fresh copy of this resource from REST and update the cache.
Signature
ReactionUserManager:fetch(options, callback) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
options |
table |
optional | Lua option table. Field names match the corresponding DiscordLua option type when one exists. |
callback |
function |
optional | Optional completion callback function(err, result). If omitted, failures raise a DiscordLua error. |
Returns
ReactionUserManager — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a ReactionUserManager
object:fetch({}, function(err, result)
if err then error(err) end
end)ReactionUserManager:remove()
#Remove an item from this ReactionUserManager.
Signature
ReactionUserManager:remove(user) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
user |
any |
required | Passed through to the implementation as written. |
Returns
ReactionUserManager — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a ReactionUserManager
object:remove(user)Examples
local discord = require("discord")
local object = discord.ReactionUserManager({})Related APIs
ApplicationCommandManager · ApplicationCommandPermissionsManager · ApplicationEmojiManager · AutoModerationRuleManager · BaseGuildEmojiManager · BaseManager · CachedManager · CategoryChannelChildManager
Version: discord 1.2.4 · runtime 1.0.0