OnboardingPromptBuilder
OnboardingPromptBuilder allows you to build onboarding for discord guilds.
Usage:
Properties
Type
OnboardingPromptBuilder.Type :: table
An enumeration of prompt types
- MultipleChoice: 0
- Dropdown: 1
Methods
setType
OnboardingPromptBuilder : setType () -> Builders.OnboardingPromptBuilder
type: number
Set the type of the Onboarding Prompt builder
addOption
OnboardingPromptBuilder : addOption () -> Builders.OnboardingPromptBuilder
option: Builders.OnboardingPromptOptionBuilder
Adds an option to the Onboarding prompt builder.
setTitle
OnboardingPromptBuilder : setTitle () -> Builders.OnboardingPromptBuilder
title: string
Sets the title of the onboarding prompt builder
setSingleSelection
OnboardingPromptBuilder : setSingleSelection () -> Builders.OnboardingPromptBuilder
isSingleSelection: boolean
Indicates whether users are limited to selecting one option for the prompt
setRequired
OnboardingPromptBuilder : setRequired () -> Builders.OnboardingPromptBuilder
isRequired: boolean
Indicates whether the prompt is required before a user completes the onboarding flow
setIsOnboarding
OnboardingPromptBuilder : setIsOnboarding () -> Builders.OnboardingPromptBuilder
isInOnboarding: boolean
Indicates whether the prompt is present in the onboarding flow. If false, the prompt will only appear in the Channels & Roles tab
toPayloadObject
OnboardingPromptBuilder : toPayloadObject () -> Network.Resolvable
Converts the message to a JSON object that can be sent to the Discord API.
Functions
new
OnboardingPromptBuilder . new () -> ()
Creates a new instance of OnboardingPromptBuilder.