DiscordLua
discorddiscord
v1.2.4
Install

ReactionUserManager

Manager
On 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.

manager Module 1.2.4 Source

Constructor

ReactionUserManager.new(client, reaction)

The class table is callable, so ReactionUserManager(client, reaction) is the same as .new.

NameTypeRequiredBehavior
client any required Passed through to the implementation as written.
reaction any required Passed through to the implementation as written.
lua
local discord = require("discord")
local object = discord.ReactionUserManager({}, {})

Properties

ReactionUserManager.reaction

# readonly
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

NameTypeRequiredBehavior
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

lua
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

NameTypeRequiredBehavior
user any required Passed through to the implementation as written.

Returns

ReactionUserManager — the same instance, for chaining.

Example

lua
local discord = require("discord")
-- object is a ReactionUserManager
object:remove(user)

Examples

lua
local discord = require("discord")
local object = discord.ReactionUserManager({})

ApplicationCommandManager · ApplicationCommandPermissionsManager · ApplicationEmojiManager · AutoModerationRuleManager · BaseGuildEmojiManager · BaseManager · CachedManager · CategoryChannelChildManager

Version: discord 1.2.4 · runtime 1.0.0

Search Ctrl K Navigate Open Esc