DiscordLua
discorddiscord
v1.2.9
Install

DataManager

Manager
On this page

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

manager Module 1.2.9 Source

Constructor

DataManager.new(client, holds)

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

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

Properties

DataManager.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 DataManager.

Examples

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

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

Version: discord 1.2.9 · runtime 1.0.0

Search Ctrl K Navigate Open Esc