diff --git a/src/Discord.Net.Core/Entities/Interactions/Context Menus/UserCommandBuilder.cs b/src/Discord.Net.Core/Entities/Interactions/Context Menus/UserCommandBuilder.cs index 5c647e868..34a9706ad 100644 --- a/src/Discord.Net.Core/Entities/Interactions/Context Menus/UserCommandBuilder.cs +++ b/src/Discord.Net.Core/Entities/Interactions/Context Menus/UserCommandBuilder.cs @@ -18,7 +18,7 @@ namespace Discord public const int MaxNameLength = 32; /// - /// The name of this User command. + /// Gets or sets the name of this User command. /// public string Name { @@ -37,9 +37,9 @@ namespace Discord } /// - /// Whether the command is enabled by default when the app is added to a guild + /// Gets or sets whether the command is enabled by default when the app is added to a guild /// - public bool DefaultPermission { get; set; } = true; + public bool IsDefaultPermission { get; set; } = true; private string _name { get; set; } @@ -52,7 +52,7 @@ namespace Discord UserCommandProperties props = new UserCommandProperties() { Name = Name, - IsDefaultPermission = DefaultPermission + IsDefaultPermission = IsDefaultPermission }; return props; @@ -75,11 +75,11 @@ namespace Discord /// /// Sets the default permission of the current command. /// - /// The default permission value to set. + /// The default permission value to set. /// The current builder. - public UserCommandBuilder WithDefaultPermission (bool value) + public UserCommandBuilder WithDefaultPermission (bool isDefaultPermission) { - DefaultPermission = value; + IsDefaultPermission = isDefaultPermission; return this; } }