Intents
ClassOn 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.
Methods
Resolve a snowflake, object, or mention to a cached instance.
Signature
Intents.resolve(list) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
list |
any |
required | Passed through to the implementation as written. |
Returns
any.
Example
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.
Related APIs
ActionRow · Activity · ActivityInstance · ActivityLocation · AnonymousGuild · ApplicationCommand · ApplicationRoleConnectionMetadata · Attachment
Version: discord 1.2.4 · runtime 1.0.0