DiscordLua
discorddiscord
v1.2.4
Install

PollAnswerVoterManager

Manager
On this page

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

manager Module 1.2.4 Source

Constructor

PollAnswerVoterManager.new(client, answer)

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

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

Properties

PollAnswerVoterManager.answer

# readonly
Name
answer
Type
any
Access
readonly
Description
Instance field PollAnswerVoterManager.answer. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this PollAnswerVoterManager.

Methods

PollAnswerVoterManager:fetch()

#

Request a fresh copy of this resource from REST and update the cache.

Signature

PollAnswerVoterManager: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

PollAnswerVoterManager — the same instance, for chaining.

Example

lua
local discord = require("discord")
-- object is a PollAnswerVoterManager
object:fetch({}, function(err, result)
    if err then error(err) end
end)

Examples

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

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

Version: discord 1.2.4 · runtime 1.0.0

Search Ctrl K Navigate Open Esc