Skip to content

OnboardingPromptOptionBuilder

OnboardingPromptOptionBuilder allows you to build onboarding for discord guilds.

Usage:

local DiscordLuau = require("../Submodules/DiscordLuau")
local OnboardingPromptOptionBuilder = DiscordLuau.OnboardingPromptOptionBuilder.new()
:setTitle("option-name")
:setDescription("Option Description!")

Properties

The OnboardingPromptOptionBuilder instance has no set properties!

Methods

setTitle

OnboardingPromptOptionBuilder : setTitle (

     title: string
)  -> Builders.OnboardingPromptOptionBuilder

Sets the title of the Prompt Option builder

setDescription

OnboardingPromptOptionBuilder : setDescription (

     description: string
)  -> Builders.OnboardingPromptOptionBuilder

Sets the description of the Prompt Option builder

addChannelId

OnboardingPromptOptionBuilder : addChannelId (

     channelId: string
)  -> Builders.OnboardingPromptOptionBuilder

Add a channel id to the prompt option builder

addRoleId

OnboardingPromptOptionBuilder : addRoleId (

     roleId: string
)  -> Builders.OnboardingPromptOptionBuilder

Add a role id to the prompt option builder

setEmoji

OnboardingPromptOptionBuilder : setEmoji (

     emojiId: string
     emojiName: string
     emojiAnimated: boolean?
)  -> Builders.OnboardingPromptOptionBuilder

Sets the emoji of the Onboarding Prompt Option Builder

Functions

new

OnboardingPromptOptionBuilder . new (

     intentList: { string }
)  -> ()

Creates a new instance of OnboardingPromptOptionBuilder with the specified intents.