WelcomeScreen
Implementation of discords WelcomeScreen object as a Luau builder.
https://discord.com/developers/docs/resources/guild#modify-guild-welcome-screen-json-params
Summary
Properties
WelcomeScreen.enabled :: boolean?WelcomeScreen.description :: string?WelcomeScreen.welcomeChannels :: { Builders.Guild.WelcomeScreenChannel }Properties
Section titled “Properties”enabled
Section titled “enabled”Whether the welcome screen is enabled or not.
description
Section titled “description”The server description shown in the welcome screen.
welcomeChannels
Section titled “welcomeChannels”The channels shown in the welcome screen.
Methods
Section titled “Methods”setEnabled
Section titled “setEnabled”WelcomeScreen : setEnabled ( enabled ) -> WelcomeScreen
Set weather the welcome screen is enabled or not.
Parameters
| enabled: boolean |
Returns
| WelcomeScreen |
setDescription
Section titled “setDescription”WelcomeScreen : setDescription ( description ) -> WelcomeScreen
Set the description of the welcome screen.
Parameters
| description: string |
Returns
| WelcomeScreen |
addChannel
Section titled “addChannel”WelcomeScreen : addChannel ( channel ) -> WelcomeScreen
Add an welcome screen channel to the welcome screen
Parameters
| channel: JSON |
Returns
| WelcomeScreen |
WelcomeScreen : build ( ) -> JSON
Responsible for building the WelcomeScreenObject JSON that can be parsed by the Discord API.
Returns
| JSON |
Functions
Section titled “Functions”WelcomeScreen . new ( resource ) -> WelcomeScreen
Responsible for creating a new WelcomeScreen.
Parameters
| resource: { enabled: boolean?, description: string?, welcomeChannels: { WelcomeScreenChannel.JSON, } |
Returns
| WelcomeScreen |