Skip to content

WelcomeScreen

WelcomeScreen ⇐ Base

Represents a welcome screen for a guild.

Kind: global class
Extends: Base

new WelcomeScreen([data], guildId, client)

Constructs a new instance of the WelcomeScreen class.

ParamTypeDescription
[data]ObjectThe data for the welcome screen.
guildIdstringThe ID of the guild.
clientClientThe client instance.

welcomeScreen.guild ⇒

Retrieves the guild associated with this guildId.

Kind: instance property of WelcomeScreen
Returns: The guild object if found, otherwise null.

welcomeScreen.edit(options) ⇒ Promise

Edits the welcome screen of the guild with the provided options.

Kind: instance method of WelcomeScreen
Returns: Promise - A promise that resolves when the welcome screen is successfully edited.

ParamTypeDescription
optionsObjectThe options to update the welcome screen with.

welcomeScreen.setEnabled(enabled, reason) ⇒ Promise

Sets the enabled status of an item and provides a reason for the change.

Kind: instance method of WelcomeScreen
Returns: Promise - - A promise that resolves when the edit is complete.

ParamTypeDescription
enabledbooleanThe new enabled status of the item.
reasonstringThe reason for the change in enabled status.

welcomeScreen.setWelcomeChannels(channels, reason) ⇒ Promise

Sets the welcome channels for a specific entity.

Kind: instance method of WelcomeScreen
Returns: Promise - - A promise that resolves when the welcome channels are set.

ParamTypeDescription
channelsArrayThe channels to set as welcome channels.
reasonstringThe reason for setting the welcome channels.

welcomeScreen.setDescription(description, reason) ⇒ Promise

Sets the description of an object and updates it with the provided reason.

Kind: instance method of WelcomeScreen
Returns: Promise - - A promise that resolves when the description is successfully updated.

ParamTypeDescription
descriptionstringThe new description to set.
reasonstringThe reason for updating the description.