DiscordLua
discorddiscord
v1.2.4
Install

Intents

Class
On this page

Intents 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

Intents.resolve()

# static

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

Signature

Intents.resolve(list)

Parameters

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

Returns

any.

Example

lua
local discord = require("discord")
-- object is a Intents
Intents.resolve(list)

Static members

  • Intents.Flags
  • Intents.GatewayIntentBits

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