Skip to content

WelcomeScreenChannel

Implementation of discords WelcomeScreenChannel object as a Luau builder.

https://discord.com/developers/docs/resources/guild#welcome-screen-object-welcome-screen-channel-structure

WelcomeScreenChannel.channelId  :: string?

The id of the channel shown in the welcome screen.

WelcomeScreenChannel.description  :: string

The description shown for the channel in the welcome screen.

WelcomeScreenChannel.emojiId  :: string?

The id of the emoji shown in the welcome screen channel.

WelcomeScreenChannel.emojiName  :: string?

The name of the emoji shown in the welcome screen channel.

WelcomeScreenChannel : setChannelId ( channelId )  -> WelcomeScreenChannel

Set the channel id for this welcome screen channel

Parameters

channelId: Snowflake

Returns

WelcomeScreenChannel
WelcomeScreenChannel : setDescription ( description )  -> WelcomeScreenChannel

Set the description for this welcome screen channel

Parameters

description: string

Returns

WelcomeScreenChannel
WelcomeScreenChannel : setEmojiId ( emojiId )  -> WelcomeScreenChannel

Set the emoji id for this welcome screen channel

Parameters

emojiId: Snowflake

Returns

WelcomeScreenChannel
WelcomeScreenChannel : setEmojiName ( emojiName )  -> WelcomeScreenChannel

Set the emoji name for this welcome screen channel

Parameters

emojiName: string

Returns

WelcomeScreenChannel
WelcomeScreenChannel : build ( )  -> JSON

Responsible for building the WelcomeScreenChannelObject JSON that can be parsed by the Discord API.

Returns

JSON
WelcomeScreenChannel . new ( resource )  -> WelcomeScreenChannel

Responsible for creating a new WelcomeScreenChannel.

Parameters

resource: {
channelId: apiTypes.Snowflake?,
description: string?,
emojiId: apiTypes.Snowflake?,
emojiName: string?,
}

Returns

WelcomeScreenChannel