MessageFlagsBitField
bitfieldOn this page
MessageFlagsBitField is a DiscordLua bitfield representing a Discord resource. Obtain it from a manager, an event payload, or the constructor when one is documented below.
Constructor
MessageFlagsBitField.new(bits) The class table is callable, so MessageFlagsBitField(bits) is the same as .new.
| Name | Type | Required | Behavior |
|---|---|---|---|
bits |
any |
required | Passed through to the implementation as written. |
local discord = require("discord")
local object = discord.MessageFlagsBitField({})Properties
- Name
bitfield- Type
any- Access
- readonly
- Description
- Instance field
MessageFlagsBitField.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 MessageFlagsBitField.
- Name
flags- Type
any- Access
- readonly
- Description
- Instance field
MessageFlagsBitField.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 MessageFlagsBitField.
Methods
Resolve a snowflake, object, or mention to a cached instance.
Signature
MessageFlagsBitField.resolve(bits) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
bits |
any |
required | Passed through to the implementation as written. |
Returns
MessageFlagsBitField — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a MessageFlagsBitField
MessageFlagsBitField.resolve(bits)Static members
-
MessageFlagsBitField.Flags
Examples
local discord = require("discord")
local object = discord.MessageFlagsBitField({})Related APIs
ActivityFlagsBitField · ApplicationFlagsBitField · AttachmentFlagsBitField · BitField · ChannelFlagsBitField · GuildMemberFlagsBitField · IntentsBitField · InviteFlagsBitField
Version: discord 1.2.4 · runtime 1.0.0