@@ -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. | ||||
@@ -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() | ||||
@@ -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); | |||||
Options = model.Options.IsSpecified | Options = model.Options.IsSpecified | ||||
? model.Options.Value.Select(x => SocketApplicationCommandOption.Create(x)).ToImmutableArray() | ? model.Options.Value.Select(x => SocketApplicationCommandOption.Create(x)).ToImmutableArray() | ||||