Browse Source

Update MessageCommandBuilder summaries and boolean properties

pull/1923/head
quin lynch 3 years ago
parent
commit
a4c4731847
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      src/Discord.Net.Core/Entities/Interactions/Context Menus/MessageCommandBuilder.cs

+ 7
- 7
src/Discord.Net.Core/Entities/Interactions/Context Menus/MessageCommandBuilder.cs View File

@@ -18,7 +18,7 @@ namespace Discord
public const int MaxNameLength = 32; public const int MaxNameLength = 32;


/// <summary> /// <summary>
/// The name of this Message command.
/// Gets or sets the name of this Message 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; }


@@ -54,7 +54,7 @@ namespace Discord
MessageCommandProperties props = new MessageCommandProperties() MessageCommandProperties props = new MessageCommandProperties()
{ {
Name = Name, Name = Name,
IsDefaultPermission = DefaultPermission
IsDefaultPermission = IsDefaultPermission
}; };


return props; return props;
@@ -77,11 +77,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 MessageCommandBuilder WithDefaultPermission (bool value)
public MessageCommandBuilder WithDefaultPermission (bool isDefaultPermission)
{ {
DefaultPermission = value;
IsDefaultPermission = isDefaultPermission;
return this; return this;
} }
} }


Loading…
Cancel
Save