@@ -60,17 +60,17 @@ namespace Discord | |||||
/// <summary> | /// <summary> | ||||
/// Gets or sets whether or not this options is the first required option for the user to complete. only one option can be default. | /// Gets or sets whether or not this options is the first required option for the user to complete. only one option can be default. | ||||
/// </summary> | /// </summary> | ||||
public bool? Default { get; set; } | |||||
public bool? IsDefault { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// Gets or sets if the option is required. | /// Gets or sets if the option is required. | ||||
/// </summary> | /// </summary> | ||||
public bool? Required { get; set; } | |||||
public bool? IsRequired { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// Gets or sets whether or not this option supports autocomplete. | /// Gets or sets whether or not this option supports autocomplete. | ||||
/// </summary> | /// </summary> | ||||
public bool Autocomplete { get; set; } | |||||
public bool IsAutocomplete { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// Gets or sets the choices for string and int types for the user to pick from. | /// Gets or sets the choices for string and int types for the user to pick from. | ||||
/// </summary> | /// </summary> | ||||
@@ -377,12 +377,12 @@ namespace Discord | |||||
{ | { | ||||
Name = Name, | Name = Name, | ||||
Description = Description, | Description = Description, | ||||
Default = Default, | |||||
Required = Required, | |||||
IsDefault = Default, | |||||
IsRequired = Required, | |||||
Type = Type, | Type = Type, | ||||
Options = Options?.Count > 0 ? new List<ApplicationCommandOptionProperties>(Options.Select(x => x.Build())) : null, | Options = Options?.Count > 0 ? new List<ApplicationCommandOptionProperties>(Options.Select(x => x.Build())) : null, | ||||
Choices = Choices, | Choices = Choices, | ||||
Autocomplete = Autocomplete | |||||
IsAutocomplete = Autocomplete | |||||
}; | }; | ||||
} | } | ||||
@@ -70,18 +70,18 @@ namespace Discord.API | |||||
? option.Options.Select(x => new ApplicationCommandOption(x)).ToArray() | ? option.Options.Select(x => new ApplicationCommandOption(x)).ToArray() | ||||
: Optional<ApplicationCommandOption[]>.Unspecified; | : Optional<ApplicationCommandOption[]>.Unspecified; | ||||
Required = option.Required.HasValue | |||||
? option.Required.Value | |||||
Required = option.IsRequired.HasValue | |||||
? option.IsRequired.Value | |||||
: Optional<bool>.Unspecified; | : Optional<bool>.Unspecified; | ||||
Default = option.Default.HasValue | |||||
? option.Default.Value | |||||
Default = option.IsDefault.HasValue | |||||
? option.IsDefault.Value | |||||
: Optional<bool>.Unspecified; | : Optional<bool>.Unspecified; | ||||
Name = option.Name; | Name = option.Name; | ||||
Type = option.Type; | Type = option.Type; | ||||
Description = option.Description; | Description = option.Description; | ||||
Autocomplete = option.Autocomplete; | |||||
Autocomplete = option.IsAutocomplete; | |||||
} | } | ||||
} | } | ||||
} | } |