GuildOnboardingPromptOption
ClassOn this page
GuildOnboardingPromptOption is a DiscordLua class representing a Discord resource. Obtain it from a manager, an event payload, or the constructor when one is documented below.
Properties
- Name
channels- Type
any- Access
- readonly
- Description
- Instance field
GuildOnboardingPromptOption.channels. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this GuildOnboardingPromptOption.
- Name
client- Type
any- Access
- readonly
- Description
- Owning Client instance used for REST, cache, and event dispatch.
- Availability
- Populated from the Gateway/REST payload or constructor for this GuildOnboardingPromptOption.
- Name
description- Type
any- Access
- readonly
- Description
- Instance field
GuildOnboardingPromptOption.description. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this GuildOnboardingPromptOption.
- Name
emoji- Type
any- Access
- readonly
- Description
- Instance field
GuildOnboardingPromptOption.emoji. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this GuildOnboardingPromptOption.
- Name
guildId- Type
any- Access
- readonly
- Description
- Instance field
GuildOnboardingPromptOption.guildId. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this GuildOnboardingPromptOption.
- Name
id- Type
any- Access
- readonly
- Description
- Snowflake id of this GuildOnboardingPromptOption.
- Availability
- Populated from the Gateway/REST payload or constructor for this GuildOnboardingPromptOption.
- Name
raw- Type
any- Access
- readonly
- Description
- Instance field
GuildOnboardingPromptOption.raw. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this GuildOnboardingPromptOption.
- Name
roles- Type
any- Access
- readonly
- Description
- Instance field
GuildOnboardingPromptOption.roles. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this GuildOnboardingPromptOption.
- Name
title- Type
any- Access
- readonly
- Description
- Instance field
GuildOnboardingPromptOption.title. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this GuildOnboardingPromptOption.
Methods
GuildOnboardingPromptOption:guild()
#Performs guild on this GuildOnboardingPromptOption. Call it from bot code when you need that operation on the current object.
Signature
GuildOnboardingPromptOption:guild() Parameters
No parameters.
Returns
GuildOnboardingPromptOption — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a GuildOnboardingPromptOption
object:guild()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