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
typeGuildOnboardingPromptTypeType of the prompt.
optionsIEnumerable<GuildOnboardingPromptOptionProperties>Options available within the prompt.
titlestringTitle 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 IEnumerable<GuildOnboardingPromptOptionProperties>)
Options available within the prompt.
public GuildOnboardingPromptProperties AddOptions(params IEnumerable<GuildOnboardingPromptOptionProperties> options)
Parameters
Returns
WithId(ulong?)
ID of the prompt.
public GuildOnboardingPromptProperties WithId(ulong? id)
Parameters
idulong?
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
inOnboardingbool
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
requiredbool
Returns
WithSingleSelect(bool)
Indicates whether users are limited to selecting one option for the prompt.
public GuildOnboardingPromptProperties WithSingleSelect(bool singleSelect = true)
Parameters
singleSelectbool
Returns
WithTitle(string)
Title of the prompt.
public GuildOnboardingPromptProperties WithTitle(string title)
Parameters
titlestring
Returns
WithType(GuildOnboardingPromptType)
Type of the prompt.
public GuildOnboardingPromptProperties WithType(GuildOnboardingPromptType type)