Class GuildOnboardingPromptProperties
public class GuildOnboardingPromptProperties
- Inheritance
-
GuildOnboardingPromptProperties
- Inherited Members
Constructors
GuildOnboardingPromptProperties(GuildOnboardingPromptType, IEnumerable<GuildOnboardingPromptOptionProperties>, string)
public GuildOnboardingPromptProperties(GuildOnboardingPromptType type, IEnumerable<GuildOnboardingPromptOptionProperties> options, string title)
Parameters
type
GuildOnboardingPromptTypeType of the prompt.
options
IEnumerable<GuildOnboardingPromptOptionProperties>Options available within the prompt.
title
stringTitle of the prompt.
Properties
Id
ID of the prompt.
[JsonPropertyName("id")]
public ulong? Id { get; set; }
Property Value
InOnboarding
Indicates whether the prompt is present in the onboarding flow. If false, the prompt will only appear in the Channels & Roles tab.
[JsonPropertyName("in_onboarding")]
public bool InOnboarding { get; set; }
Property Value
Options
Options available within the prompt.
[JsonPropertyName("options")]
public IEnumerable<GuildOnboardingPromptOptionProperties> Options { get; set; }
Property Value
Required
Indicates whether the prompt is required before a user completes the onboarding flow.
[JsonPropertyName("required")]
public bool Required { get; set; }
Property Value
SingleSelect
Indicates whether users are limited to selecting one option for the prompt.
[JsonPropertyName("single_select")]
public bool SingleSelect { get; set; }
Property Value
Title
Title of the prompt.
[JsonPropertyName("title")]
public string Title { get; set; }
Property Value
Type
Type of the prompt.
[JsonPropertyName("type")]
public GuildOnboardingPromptType Type { get; set; }
Property Value
Methods
AddOptions(params GuildOnboardingPromptOptionProperties[])
Options available within the prompt.
public GuildOnboardingPromptProperties AddOptions(params GuildOnboardingPromptOptionProperties[] options)
Parameters
options
GuildOnboardingPromptOptionProperties[]
Returns
AddOptions(IEnumerable<GuildOnboardingPromptOptionProperties>)
Options available within the prompt.
public GuildOnboardingPromptProperties AddOptions(IEnumerable<GuildOnboardingPromptOptionProperties> options)
Parameters
Returns
WithId(ulong?)
ID of the prompt.
public GuildOnboardingPromptProperties WithId(ulong? id)
Parameters
id
ulong?
Returns
WithInOnboarding(bool)
Indicates whether the prompt is present in the onboarding flow. If false, the prompt will only appear in the Channels & Roles tab.
public GuildOnboardingPromptProperties WithInOnboarding(bool inOnboarding = true)
Parameters
inOnboarding
bool
Returns
WithOptions(IEnumerable<GuildOnboardingPromptOptionProperties>)
Options available within the prompt.
public GuildOnboardingPromptProperties WithOptions(IEnumerable<GuildOnboardingPromptOptionProperties> options)
Parameters
Returns
WithRequired(bool)
Indicates whether the prompt is required before a user completes the onboarding flow.
public GuildOnboardingPromptProperties WithRequired(bool required = true)
Parameters
required
bool
Returns
WithSingleSelect(bool)
Indicates whether users are limited to selecting one option for the prompt.
public GuildOnboardingPromptProperties WithSingleSelect(bool singleSelect = true)
Parameters
singleSelect
bool
Returns
WithTitle(string)
Title of the prompt.
public GuildOnboardingPromptProperties WithTitle(string title)
Parameters
title
string
Returns
WithType(GuildOnboardingPromptType)
Type of the prompt.
public GuildOnboardingPromptProperties WithType(GuildOnboardingPromptType type)