DiscordLua
discorddiscord
v1.2.4
Install

AttachmentFlagsBitField

bitfield
On this page

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

bitfield Module 1.2.4 Source

Constructor

AttachmentFlagsBitField.new(bits)

The class table is callable, so AttachmentFlagsBitField(bits) is the same as .new.

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

Properties

AttachmentFlagsBitField.bitfield

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

AttachmentFlagsBitField.flags

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

Methods

AttachmentFlagsBitField.resolve()

# static

Resolve a snowflake, object, or mention to a cached instance.

Signature

AttachmentFlagsBitField.resolve(bits)

Parameters

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

Returns

AttachmentFlagsBitField — the same instance, for chaining.

Example

lua
local discord = require("discord")
-- object is a AttachmentFlagsBitField
AttachmentFlagsBitField.resolve(bits)

Static members

  • AttachmentFlagsBitField.Flags

Examples

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

ActivityFlagsBitField · ApplicationFlagsBitField · BitField · ChannelFlagsBitField · GuildMemberFlagsBitField · IntentsBitField · InviteFlagsBitField · MessageFlagsBitField

Version: discord 1.2.4 · runtime 1.0.0

Search Ctrl K Navigate Open Esc