DiscordLua
discorddiscord
v1.2.4
Install

FetchPollAnswerVotersOptions

Class
On this page

FetchPollAnswerVotersOptions is a DiscordLua class representing a Discord resource. Obtain it from a manager, an event payload, or the constructor when one is documented below.

class Module 1.2.4 Source

Methods

FetchPollAnswerVotersOptions.encode()

# static

Performs encode on this FetchPollAnswerVotersOptions. Call it from bot code when you need that operation on the current object.

Signature

FetchPollAnswerVotersOptions.encode(options)

Parameters

NameTypeRequiredBehavior
options table optional Lua option table. Field names match the corresponding DiscordLua option type when one exists.

Returns

FetchPollAnswerVotersOptions — the same instance, for chaining.

Example

lua
local discord = require("discord")
-- object is a FetchPollAnswerVotersOptions
FetchPollAnswerVotersOptions.encode({})

Static members

  • FetchPollAnswerVotersOptions.fields

Examples

Obtain this object from a manager, wrap helper, or event payload — it is not constructed directly in typical bot code.

ActionRow · Activity · ActivityInstance · ActivityLocation · AnonymousGuild · ApplicationCommand · ApplicationRoleConnectionMetadata · Attachment

Version: discord 1.2.4 · runtime 1.0.0

Search Ctrl K Navigate Open Esc