| @@ -29,12 +29,12 @@ namespace Discord | |||||
| /// <summary> | /// <summary> | ||||
| /// The first required option for the user to complete--only one option can be default. | /// The first required option for the user to complete--only one option can be default. | ||||
| /// </summary> | /// </summary> | ||||
| bool? Default { get; } | |||||
| bool? IsDefault { get; } | |||||
| /// <summary> | /// <summary> | ||||
| /// If the parameter is required or optional, default is <see langword="false"/>. | /// If the parameter is required or optional, default is <see langword="false"/>. | ||||
| /// </summary> | /// </summary> | ||||
| bool? Required { get; } | |||||
| bool? IsRequired { get; } | |||||
| /// <summary> | /// <summary> | ||||
| /// Choices for string and int types for the user to pick from. | /// Choices for string and int types for the user to pick from. | ||||
| @@ -45,11 +45,11 @@ namespace Discord.API | |||||
| Options = cmd.Options.Select(x => new ApplicationCommandOption(x)).ToArray(); | Options = cmd.Options.Select(x => new ApplicationCommandOption(x)).ToArray(); | ||||
| Required = cmd.Required.HasValue | |||||
| ? cmd.Required.Value | |||||
| Required = cmd.IsRequired.HasValue | |||||
| ? cmd.IsRequired.Value | |||||
| : Optional<bool>.Unspecified; | : Optional<bool>.Unspecified; | ||||
| Default = cmd.Default.HasValue | |||||
| ? cmd.Default.Value | |||||
| Default = cmd.IsDefault.HasValue | |||||
| ? cmd.IsDefault.Value | |||||
| : Optional<bool>.Unspecified; | : Optional<bool>.Unspecified; | ||||
| Name = cmd.Name; | Name = cmd.Name; | ||||
| @@ -24,10 +24,10 @@ namespace Discord.Rest | |||||
| public string Description { get; private set; } | public string Description { get; private set; } | ||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public bool? Default { get; private set; } | |||||
| public bool? IsDefault { get; private set; } | |||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public bool? Required { get; private set; } | |||||
| public bool? IsRequired { get; private set; } | |||||
| /// <summary> | /// <summary> | ||||
| /// A collection of <see cref="RestApplicationCommandChoice"/>'s for this command. | /// A collection of <see cref="RestApplicationCommandChoice"/>'s for this command. | ||||
| @@ -55,10 +55,10 @@ namespace Discord.Rest | |||||
| Description = model.Description; | Description = model.Description; | ||||
| if (model.Default.IsSpecified) | if (model.Default.IsSpecified) | ||||
| Default = model.Default.Value; | |||||
| IsDefault = model.Default.Value; | |||||
| if (model.Required.IsSpecified) | if (model.Required.IsSpecified) | ||||
| Required = model.Required.Value; | |||||
| IsRequired = model.Required.Value; | |||||
| Options = model.Options.IsSpecified | Options = model.Options.IsSpecified | ||||
| ? model.Options.Value.Select(x => Create(x)).ToImmutableArray() | ? model.Options.Value.Select(x => Create(x)).ToImmutableArray() | ||||
| @@ -23,10 +23,10 @@ namespace Discord.WebSocket | |||||
| public string Description { get; private set; } | public string Description { get; private set; } | ||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public bool? Default { get; private set; } | |||||
| public bool? IsDefault { get; private set; } | |||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public bool? Required { get; private set; } | |||||
| public bool? IsRequired { get; private set; } | |||||
| /// <summary> | /// <summary> | ||||
| /// Choices for string and int types for the user to pick from. | /// Choices for string and int types for the user to pick from. | ||||
| @@ -52,11 +52,11 @@ namespace Discord.WebSocket | |||||
| Type = model.Type; | Type = model.Type; | ||||
| Description = model.Description; | Description = model.Description; | ||||
| Default = model.Default.IsSpecified | |||||
| IsDefault = model.Default.IsSpecified | |||||
| ? model.Default.Value | ? model.Default.Value | ||||
| : null; | : null; | ||||
| Required = model.Required.IsSpecified | |||||
| IsRequired = model.Required.IsSpecified | |||||
| ? model.Required.Value | ? model.Required.Value | ||||
| : null; | : null; | ||||