diff --git a/src/Discord.Net.Core/Entities/Interactions/Message Components/ComponentBuilder.cs b/src/Discord.Net.Core/Entities/Interactions/Message Components/ComponentBuilder.cs index b0050ee36..c12b9ffa3 100644 --- a/src/Discord.Net.Core/Entities/Interactions/Message Components/ComponentBuilder.cs +++ b/src/Discord.Net.Core/Entities/Interactions/Message Components/ComponentBuilder.cs @@ -76,7 +76,7 @@ namespace Discord AddComponent(cmp, row); break; case SelectMenuComponent menu: - WithSelectMenu(menu.Placeholder, menu.CustomId, menu.Options.Select(x => new SelectMenuOptionBuilder(x.Label, x.Value, x.Description, x.Emote, x.Default)).ToList(), menu.Placeholder, menu.MinValues, menu.MaxValues, menu.Disabled, row); + WithSelectMenu(menu.Placeholder, menu.CustomId, menu.Options.Select(x => new SelectMenuOptionBuilder(x.Label, x.Value, x.Description, x.Emote, x.IsDefault)).ToList(), menu.Placeholder, menu.MinValues, menu.MaxValues, menu.Disabled, row); break; } } @@ -742,7 +742,7 @@ namespace Discord MinValues = selectMenu.MinValues; Disabled = selectMenu.Disabled; Options = selectMenu.Options? - .Select(x => new SelectMenuOptionBuilder(x.Label, x.Value, x.Description, x.Emote, x.Default)) + .Select(x => new SelectMenuOptionBuilder(x.Label, x.Value, x.Description, x.Emote, x.IsDefault)) .ToList(); } @@ -1028,7 +1028,7 @@ namespace Discord Value = option.Value; Description = option.Description; Emote = option.Emote; - Default = option.Default; + Default = option.IsDefault; } /// diff --git a/src/Discord.Net.Core/Entities/Interactions/Message Components/SelectMenuComponent.cs b/src/Discord.Net.Core/Entities/Interactions/Message Components/SelectMenuComponent.cs index 4fa3e4393..a7f1eec39 100644 --- a/src/Discord.Net.Core/Entities/Interactions/Message Components/SelectMenuComponent.cs +++ b/src/Discord.Net.Core/Entities/Interactions/Message Components/SelectMenuComponent.cs @@ -53,7 +53,7 @@ namespace Discord public SelectMenuBuilder ToBuilder() => new SelectMenuBuilder( CustomId, - Options.Select(x => new SelectMenuOptionBuilder(x.Label, x.Value, x.Description, x.Emote, x.Default)).ToList(), + Options.Select(x => new SelectMenuOptionBuilder(x.Label, x.Value, x.Description, x.Emote, x.IsDefault)).ToList(), Placeholder, MaxValues, MinValues, diff --git a/src/Discord.Net.Core/Entities/Interactions/Message Components/SelectMenuOption.cs b/src/Discord.Net.Core/Entities/Interactions/Message Components/SelectMenuOption.cs index 624b652be..3c7fce181 100644 --- a/src/Discord.Net.Core/Entities/Interactions/Message Components/SelectMenuOption.cs +++ b/src/Discord.Net.Core/Entities/Interactions/Message Components/SelectMenuOption.cs @@ -12,29 +12,29 @@ namespace Discord public class SelectMenuOption { /// - /// The user-facing name of the option, max 25 characters. + /// Gets the user-facing name of the option. /// public string Label { get; } /// - /// The dev-define value of the option, max 100 characters. + /// Gets the dev-define value of the option. /// public string Value { get; } /// - /// An additional description of the option, max 50 characters. + /// Gets a description of the option. /// public string Description { get; } /// - /// A that will be displayed with this menu option. + /// Gets the displayed with this menu option. /// public IEmote Emote { get; } /// - /// Will render this option as selected by default. + /// Gets whether or not this option will render as selected by default. /// - public bool? Default { get; } + public bool? IsDefault { get; } internal SelectMenuOption(string label, string value, string description, IEmote emote, bool? defaultValue) { @@ -42,7 +42,7 @@ namespace Discord Value = value; Description = description; Emote = emote; - Default = defaultValue; + IsDefault = defaultValue; } } } diff --git a/src/Discord.Net.Rest/API/Common/SelectMenuOption.cs b/src/Discord.Net.Rest/API/Common/SelectMenuOption.cs index cb0e63035..06c8f7dc3 100644 --- a/src/Discord.Net.Rest/API/Common/SelectMenuOption.cs +++ b/src/Discord.Net.Rest/API/Common/SelectMenuOption.cs @@ -52,7 +52,7 @@ namespace Discord.API } } - Default = option.Default.HasValue ? option.Default.Value : Optional.Unspecified; + Default = option.IsDefault.HasValue ? option.IsDefault.Value : Optional.Unspecified; } } }