OnboardingBuilder
OnboardingBuilder allows you to build onboarding for discord guilds.
Usage:
Properties
Mode
OnboardingBuilder.Mode :: table
An enumeration of onboarding modes
- Default: 0
- Advanced: 1
Methods
toPayloadObject
OnboardingBuilder : toPayloadObject () -> Network.Resolvable
Converts the message to a JSON object that can be sent to the Discord API.
setMode
OnboardingBuilder : setMode () -> Builders.OnboardingBuilder
mode: number
Sets the mode of the Guild onbaording object
setEnabled
OnboardingBuilder : setEnabled () -> Builders.OnboardingBuilder
isEnabled: boolean
Sets if the guild onboarding is enabled or not
addChannelId
OnboardingBuilder : addChannelId () -> Builders.OnboardingBuilder
channelId: string
Channel IDs that members get opted into automatically
addOnboardingPrompt
OnboardingBuilder : addOnboardingPrompt () -> Builders.OnboardingBuilder
prompt: Objects.OnboardingPromptBuilder
Channel IDs that members get opted into automatically
toPayloadObject
OnboardingBuilder : toPayloadObject () -> Network.Resolvable
Converts the message to a JSON object that can be sent to the Discord API.
Functions
new
OnboardingBuilder . new () -> ()
Creates a new instance of OnboardingBuilder.