DiscordLua
discorddiscord
v1.2.4
Install

WelcomeScreen

Class
On this page

WelcomeScreen 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

Properties

WelcomeScreen.client

# readonly
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 WelcomeScreen.

WelcomeScreen.description

# readonly
Name
description
Type
any
Access
readonly
Description
Instance field WelcomeScreen.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 WelcomeScreen.

WelcomeScreen.enabled

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

WelcomeScreen.guildId

# readonly
Name
guildId
Type
any
Access
readonly
Description
Instance field WelcomeScreen.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 WelcomeScreen.

WelcomeScreen.raw

# readonly
Name
raw
Type
any
Access
readonly
Description
Instance field WelcomeScreen.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 WelcomeScreen.

WelcomeScreen.welcomeChannels

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

Methods

WelcomeScreen:guild()

#

Performs guild on this WelcomeScreen. Call it from bot code when you need that operation on the current object.

Signature

WelcomeScreen:guild()

Parameters

No parameters.

Returns

WelcomeScreen — the same instance, for chaining.

Example

lua
local discord = require("discord")
-- object is a WelcomeScreen
object:guild()

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