From a4c47318475a00223035ed17a12e03b4fbe2772f Mon Sep 17 00:00:00 2001 From: quin lynch Date: Thu, 7 Oct 2021 01:45:49 -0300 Subject: [PATCH] Update MessageCommandBuilder summaries and boolean properties --- .../Context Menus/MessageCommandBuilder.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Discord.Net.Core/Entities/Interactions/Context Menus/MessageCommandBuilder.cs b/src/Discord.Net.Core/Entities/Interactions/Context Menus/MessageCommandBuilder.cs index 30f9a500a..e600beba7 100644 --- a/src/Discord.Net.Core/Entities/Interactions/Context Menus/MessageCommandBuilder.cs +++ b/src/Discord.Net.Core/Entities/Interactions/Context Menus/MessageCommandBuilder.cs @@ -18,7 +18,7 @@ namespace Discord public const int MaxNameLength = 32; /// - /// The name of this Message command. + /// Gets or sets the name of this Message 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; } @@ -54,7 +54,7 @@ namespace Discord MessageCommandProperties props = new MessageCommandProperties() { Name = Name, - IsDefaultPermission = DefaultPermission + IsDefaultPermission = IsDefaultPermission }; return props; @@ -77,11 +77,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 MessageCommandBuilder WithDefaultPermission (bool value) + public MessageCommandBuilder WithDefaultPermission (bool isDefaultPermission) { - DefaultPermission = value; + IsDefaultPermission = isDefaultPermission; return this; } }