DiscordLua
discorddiscord
v1.2.4
Install

BaseManager

Manager
On this page

BaseManager is the cache and REST facade for Base objects owned by the parent. Typical calls are fetch, create, edit, delete, resolve, and resolveId.

manager Module 1.2.4 Source

Constructor

BaseManager.new(client)

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

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

Properties

BaseManager.client

# readonly
Name
client
Type
any
Access
readonly
Description
Owning Client instance used for REST, cache, and event dispatch.
Availability
Populated from the Gateway/REST payload or constructor for this BaseManager.

Examples

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

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

Version: discord 1.2.4 · runtime 1.0.0

Search Ctrl K Navigate Open Esc