Class GuildOnboardingPromptOptionProperties
public class GuildOnboardingPromptOptionProperties
- Inheritance
-
GuildOnboardingPromptOptionProperties
- Inherited Members
Constructors
GuildOnboardingPromptOptionProperties(IEnumerable<ulong>?, IEnumerable<ulong>?, string)
public GuildOnboardingPromptOptionProperties(IEnumerable<ulong>? channelIds, IEnumerable<ulong>? roleIds, string title)
Parameters
channelIdsIEnumerable<ulong>IDs for channels a member is added to when the option is selected.
roleIdsIEnumerable<ulong>IDs for roles assigned to a member when the option is selected.
titlestringTitle of the option.
Properties
ChannelIds
IDs for channels a member is added to when the option is selected.
[JsonPropertyName("channel_ids")]
public IEnumerable<ulong>? ChannelIds { get; set; }
Property Value
Description
Description of the option.
[JsonPropertyName("description")]
public string? Description { get; set; }
Property Value
EmojiAnimated
Whether the emoji is animated.
[JsonPropertyName("emoji_animated")]
public bool? EmojiAnimated { get; set; }
Property Value
- bool?
EmojiId
Emoji ID of the option.
[JsonPropertyName("emoji_id")]
public ulong? EmojiId { get; set; }
Property Value
EmojiName
Emoji name of the option.
[JsonPropertyName("emoji_name")]
public string? EmojiName { get; set; }
Property Value
Id
ID of the option.
[JsonPropertyName("id")]
public ulong? Id { get; set; }
Property Value
RoleIds
IDs for roles assigned to a member when the option is selected.
[JsonPropertyName("role_ids")]
public IEnumerable<ulong>? RoleIds { get; set; }
Property Value
Title
Title of the option.
[JsonPropertyName("title")]
public string Title { get; set; }
Property Value
Methods
AddChannelIds(params IEnumerable<ulong>)
IDs for channels a member is added to when the option is selected.
public GuildOnboardingPromptOptionProperties AddChannelIds(params IEnumerable<ulong> channelIds)
Parameters
channelIdsIEnumerable<ulong>
Returns
AddRoleIds(params IEnumerable<ulong>)
IDs for roles assigned to a member when the option is selected.
public GuildOnboardingPromptOptionProperties AddRoleIds(params IEnumerable<ulong> roleIds)
Parameters
roleIdsIEnumerable<ulong>
Returns
WithChannelIds(IEnumerable<ulong>?)
IDs for channels a member is added to when the option is selected.
public GuildOnboardingPromptOptionProperties WithChannelIds(IEnumerable<ulong>? channelIds)
Parameters
channelIdsIEnumerable<ulong>
Returns
WithDescription(string?)
Description of the option.
public GuildOnboardingPromptOptionProperties WithDescription(string? description)
Parameters
descriptionstring
Returns
WithEmojiAnimated(bool?)
Whether the emoji is animated.
public GuildOnboardingPromptOptionProperties WithEmojiAnimated(bool? emojiAnimated = true)
Parameters
emojiAnimatedbool?
Returns
WithEmojiId(ulong?)
Emoji ID of the option.
public GuildOnboardingPromptOptionProperties WithEmojiId(ulong? emojiId)
Parameters
emojiIdulong?
Returns
WithEmojiName(string?)
Emoji name of the option.
public GuildOnboardingPromptOptionProperties WithEmojiName(string? emojiName)
Parameters
emojiNamestring
Returns
WithId(ulong?)
ID of the option.
public GuildOnboardingPromptOptionProperties WithId(ulong? id)
Parameters
idulong?
Returns
WithRoleIds(IEnumerable<ulong>?)
IDs for roles assigned to a member when the option is selected.
public GuildOnboardingPromptOptionProperties WithRoleIds(IEnumerable<ulong>? roleIds)
Parameters
roleIdsIEnumerable<ulong>
Returns
WithTitle(string)
Title of the option.
public GuildOnboardingPromptOptionProperties WithTitle(string title)
Parameters
titlestring