| @@ -18,7 +18,7 @@ namespace Discord | |||||
| public const int MaxNameLength = 32; | public const int MaxNameLength = 32; | ||||
| /// <summary> | /// <summary> | ||||
| /// The name of this User command. | |||||
| /// Gets or sets the name of this User command. | |||||
| /// </summary> | /// </summary> | ||||
| public string Name | public string Name | ||||
| { | { | ||||
| @@ -37,9 +37,9 @@ namespace Discord | |||||
| } | } | ||||
| /// <summary> | /// <summary> | ||||
| /// 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 | |||||
| /// </summary> | /// </summary> | ||||
| public bool DefaultPermission { get; set; } = true; | |||||
| public bool IsDefaultPermission { get; set; } = true; | |||||
| private string _name { get; set; } | private string _name { get; set; } | ||||
| @@ -52,7 +52,7 @@ namespace Discord | |||||
| UserCommandProperties props = new UserCommandProperties() | UserCommandProperties props = new UserCommandProperties() | ||||
| { | { | ||||
| Name = Name, | Name = Name, | ||||
| IsDefaultPermission = DefaultPermission | |||||
| IsDefaultPermission = IsDefaultPermission | |||||
| }; | }; | ||||
| return props; | return props; | ||||
| @@ -75,11 +75,11 @@ namespace Discord | |||||
| /// <summary> | /// <summary> | ||||
| /// Sets the default permission of the current command. | /// Sets the default permission of the current command. | ||||
| /// </summary> | /// </summary> | ||||
| /// <param name="value">The default permission value to set.</param> | |||||
| /// <param name="isDefaultPermission">The default permission value to set.</param> | |||||
| /// <returns>The current builder.</returns> | /// <returns>The current builder.</returns> | ||||
| public UserCommandBuilder WithDefaultPermission (bool value) | |||||
| public UserCommandBuilder WithDefaultPermission (bool isDefaultPermission) | |||||
| { | { | ||||
| DefaultPermission = value; | |||||
| IsDefaultPermission = isDefaultPermission; | |||||
| return this; | return this; | ||||
| } | } | ||||
| } | } | ||||