Skip to content

OnboardingPrompt

Implementation of the Discord Prompt class in Luau

https://discord.com/developers/docs/resources/guild#guild-prompt-object-prompt-prompt-structure

OnboardingPrompt.id  :: string

The unique identifier for this prompt

OnboardingPrompt.type  :: OnboardingPromptType

The type of prompt this is, determines how it is displayed to users

OnboardingPrompt.options  :: Option }

Array of options that users can select from this prompt

OnboardingPrompt.title  :: string?

The title shown to users when displaying this prompt

OnboardingPrompt.singleSelect  :: boolean?

Whether users can only select one option from this prompt

OnboardingPrompt.required  :: boolean?

Whether this prompt is required to be answered by users

OnboardingPrompt.inOnboarding  :: boolean?

Whether this prompt is shown during the onboarding flow

OnboardingPrompt : sync ( promptData )  -> ()

Responsible for syncing data to this prompt object. This is typically called by the API when this object is created or updated.

Parameters

promptData: OnboardingPromptObject
OnboardingPrompt . new ( promptData )  -> Prompt

Responsible for constructing this class.

Parameters

promptData: OnboardingPromptObject

Returns

Prompt