@@ -4875,7 +4875,7 @@ | |||||
The description of the command. | The description of the command. | ||||
</summary> | </summary> | ||||
</member> | </member> | ||||
<member name="P:Discord.IApplicationCommand.DefaultPermission"> | |||||
<member name="P:Discord.IApplicationCommand.IsDefaultPermission"> | |||||
<summary> | <summary> | ||||
Whether the command is enabled by default when the app is added to a guild. | Whether the command is enabled by default when the app is added to a guild. | ||||
</summary> | </summary> | ||||
@@ -4974,12 +4974,12 @@ | |||||
The description of this command option, 1-100 character description. | The description of this command option, 1-100 character description. | ||||
</summary> | </summary> | ||||
</member> | </member> | ||||
<member name="P:Discord.IApplicationCommandOption.Default"> | |||||
<member name="P:Discord.IApplicationCommandOption.IsDefault"> | |||||
<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> | ||||
</member> | </member> | ||||
<member name="P:Discord.IApplicationCommandOption.Required"> | |||||
<member name="P:Discord.IApplicationCommandOption.IsRequired"> | |||||
<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> | ||||
@@ -34,7 +34,7 @@ namespace Discord | |||||
/// <summary> | /// <summary> | ||||
/// Whether the command is enabled by default when the app is added to a guild. | /// Whether the command is enabled by default when the app is added to a guild. | ||||
/// </summary> | /// </summary> | ||||
bool DefaultPermission { get; } | |||||
bool IsDefaultPermission { get; } | |||||
/// <summary> | /// <summary> | ||||
/// If the option is a subcommand or subcommand group type, this nested options will be the parameters. | /// If the option is a subcommand or subcommand group type, this nested options will be the parameters. | ||||
@@ -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. | ||||
@@ -50,11 +50,11 @@ namespace Discord.API | |||||
ChannelTypes = cmd.ChannelTypes.ToArray(); | ChannelTypes = cmd.ChannelTypes.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; | ||||
@@ -4058,7 +4058,7 @@ | |||||
<member name="P:Discord.Rest.RestApplicationCommand.Description"> | <member name="P:Discord.Rest.RestApplicationCommand.Description"> | ||||
<inheritdoc/> | <inheritdoc/> | ||||
</member> | </member> | ||||
<member name="P:Discord.Rest.RestApplicationCommand.DefaultPermission"> | |||||
<member name="P:Discord.Rest.RestApplicationCommand.IsDefaultPermission"> | |||||
<inheritdoc/> | <inheritdoc/> | ||||
</member> | </member> | ||||
<member name="P:Discord.Rest.RestApplicationCommand.Options"> | <member name="P:Discord.Rest.RestApplicationCommand.Options"> | ||||
@@ -4103,10 +4103,10 @@ | |||||
<member name="P:Discord.Rest.RestApplicationCommandOption.Description"> | <member name="P:Discord.Rest.RestApplicationCommandOption.Description"> | ||||
<inheritdoc/> | <inheritdoc/> | ||||
</member> | </member> | ||||
<member name="P:Discord.Rest.RestApplicationCommandOption.Default"> | |||||
<member name="P:Discord.Rest.RestApplicationCommandOption.IsDefault"> | |||||
<inheritdoc/> | <inheritdoc/> | ||||
</member> | </member> | ||||
<member name="P:Discord.Rest.RestApplicationCommandOption.Required"> | |||||
<member name="P:Discord.Rest.RestApplicationCommandOption.IsRequired"> | |||||
<inheritdoc/> | <inheritdoc/> | ||||
</member> | </member> | ||||
<member name="P:Discord.Rest.RestApplicationCommandOption.Choices"> | <member name="P:Discord.Rest.RestApplicationCommandOption.Choices"> | ||||
@@ -26,7 +26,7 @@ namespace Discord.Rest | |||||
public string Description { get; private set; } | public string Description { get; private set; } | ||||
/// <inheritdoc/> | /// <inheritdoc/> | ||||
public bool DefaultPermission { get; private set; } | |||||
public bool IsDefaultPermission { get; private set; } | |||||
/// <summary> | /// <summary> | ||||
/// The options of this command. | /// The options of this command. | ||||
@@ -61,7 +61,7 @@ namespace Discord.Rest | |||||
ApplicationId = model.ApplicationId; | ApplicationId = model.ApplicationId; | ||||
Name = model.Name; | Name = model.Name; | ||||
Description = model.Description; | Description = model.Description; | ||||
DefaultPermission = model.DefaultPermissions.GetValueOrDefault(true); | |||||
IsDefaultPermission = model.DefaultPermissions.GetValueOrDefault(true); | |||||
Options = model.Options.IsSpecified | Options = model.Options.IsSpecified | ||||
? model.Options.Value.Select(x => RestApplicationCommandOption.Create(x)).ToImmutableArray() | ? model.Options.Value.Select(x => RestApplicationCommandOption.Create(x)).ToImmutableArray() | ||||
@@ -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. | ||||
@@ -60,10 +60,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() | ||||
@@ -4120,7 +4120,7 @@ | |||||
<member name="P:Discord.WebSocket.SocketApplicationCommand.Description"> | <member name="P:Discord.WebSocket.SocketApplicationCommand.Description"> | ||||
<inheritdoc/> | <inheritdoc/> | ||||
</member> | </member> | ||||
<member name="P:Discord.WebSocket.SocketApplicationCommand.DefaultPermission"> | |||||
<member name="P:Discord.WebSocket.SocketApplicationCommand.IsDefaultPermission"> | |||||
<inheritdoc/> | <inheritdoc/> | ||||
</member> | </member> | ||||
<member name="P:Discord.WebSocket.SocketApplicationCommand.Options"> | <member name="P:Discord.WebSocket.SocketApplicationCommand.Options"> | ||||
@@ -4173,10 +4173,10 @@ | |||||
<member name="P:Discord.WebSocket.SocketApplicationCommandOption.Description"> | <member name="P:Discord.WebSocket.SocketApplicationCommandOption.Description"> | ||||
<inheritdoc/> | <inheritdoc/> | ||||
</member> | </member> | ||||
<member name="P:Discord.WebSocket.SocketApplicationCommandOption.Default"> | |||||
<member name="P:Discord.WebSocket.SocketApplicationCommandOption.IsDefault"> | |||||
<inheritdoc/> | <inheritdoc/> | ||||
</member> | </member> | ||||
<member name="P:Discord.WebSocket.SocketApplicationCommandOption.Required"> | |||||
<member name="P:Discord.WebSocket.SocketApplicationCommandOption.IsRequired"> | |||||
<inheritdoc/> | <inheritdoc/> | ||||
</member> | </member> | ||||
<member name="P:Discord.WebSocket.SocketApplicationCommandOption.Choices"> | <member name="P:Discord.WebSocket.SocketApplicationCommandOption.Choices"> | ||||
@@ -35,7 +35,7 @@ namespace Discord.WebSocket | |||||
public string Description { get; private set; } | public string Description { get; private set; } | ||||
/// <inheritdoc/> | /// <inheritdoc/> | ||||
public bool DefaultPermission { get; private set; } | |||||
public bool IsDefaultPermission { get; private set; } | |||||
/// <summary> | /// <summary> | ||||
/// A collection of <see cref="SocketApplicationCommandOption"/>'s for this command. | /// A collection of <see cref="SocketApplicationCommandOption"/>'s for this command. | ||||
@@ -81,7 +81,7 @@ namespace Discord.WebSocket | |||||
ApplicationId = model.ApplicationId; | ApplicationId = model.ApplicationId; | ||||
Description = model.Description; | Description = model.Description; | ||||
Name = model.Name; | Name = model.Name; | ||||
DefaultPermission = model.DefaultPermissions.GetValueOrDefault(true); | |||||
IsDefaultPermission = model.DefaultPermissions.GetValueOrDefault(true); | |||||
Type = model.Type; | Type = model.Type; | ||||
Options = model.Options.IsSpecified | Options = model.Options.IsSpecified | ||||
@@ -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. | ||||
@@ -57,11 +57,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; | ||||