DiscordLua
discorddiscord
v1.2.4
Install

ReactionManager

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

manager Module 1.2.4 Source

Constructor

ReactionManager.new(client, message)

The class table is callable, so ReactionManager(client, message) is the same as .new.

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

Properties

ReactionManager.message

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

lua
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

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

Returns

ReactionManager — the same instance, for chaining.

Example

lua
local discord = require("discord")
-- object is a ReactionManager
object:resolveId(reaction)

Examples

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

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

Version: discord 1.2.4 · runtime 1.0.0

Search Ctrl K Navigate Open Esc