Browse Source

Fix typos of word `length` (#2443)

tags/3.8.1
Kuba_Z2 GitHub 2 years ago
parent
commit
0aa381d468
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 15 deletions
  1. +3
    -3
      src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandBuilder.cs
  2. +3
    -3
      src/Discord.Net.Interactions/Attributes/MaxLengthAttribute.cs
  3. +3
    -3
      src/Discord.Net.Interactions/Attributes/MinLengthAttribute.cs
  4. +6
    -6
      src/Discord.Net.Interactions/Builders/Modals/Inputs/TextInputComponentBuilder.cs

+ 3
- 3
src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandBuilder.cs View File

@@ -855,11 +855,11 @@ namespace Discord
/// <summary> /// <summary>
/// Sets the current builders max length field. /// Sets the current builders max length field.
/// </summary> /// </summary>
/// <param name="lenght">The value to set.</param>
/// <param name="length">The value to set.</param>
/// <returns>The current builder.</returns> /// <returns>The current builder.</returns>
public SlashCommandOptionBuilder WithMaxLength(int lenght)
public SlashCommandOptionBuilder WithMaxLength(int length)
{ {
MaxLength = lenght;
MaxLength = length;
return this; return this;
} }




+ 3
- 3
src/Discord.Net.Interactions/Attributes/MaxLengthAttribute.cs View File

@@ -16,10 +16,10 @@ namespace Discord.Interactions
/// <summary> /// <summary>
/// Sets the maximum length allowed for a string type parameter. /// Sets the maximum length allowed for a string type parameter.
/// </summary> /// </summary>
/// <param name="lenght">Maximum string length allowed.</param>
public MaxLengthAttribute(int lenght)
/// <param name="length">Maximum string length allowed.</param>
public MaxLengthAttribute(int length)
{ {
Length = lenght;
Length = length;
} }
} }
} }

+ 3
- 3
src/Discord.Net.Interactions/Attributes/MinLengthAttribute.cs View File

@@ -16,10 +16,10 @@ namespace Discord.Interactions
/// <summary> /// <summary>
/// Sets the minimum length allowed for a string type parameter. /// Sets the minimum length allowed for a string type parameter.
/// </summary> /// </summary>
/// <param name="lenght">Minimum string length allowed.</param>
public MinLengthAttribute(int lenght)
/// <param name="length">Minimum string length allowed.</param>
public MinLengthAttribute(int length)
{ {
Length = lenght;
Length = length;
} }
} }
} }

+ 6
- 6
src/Discord.Net.Interactions/Builders/Modals/Inputs/TextInputComponentBuilder.cs View File

@@ -67,26 +67,26 @@ namespace Discord.Interactions.Builders
/// <summary> /// <summary>
/// Sets <see cref="MinLength"/>. /// Sets <see cref="MinLength"/>.
/// </summary> /// </summary>
/// <param name="minLenght">New value of the <see cref="MinLength"/>.</param>
/// <param name="minLength">New value of the <see cref="MinLength"/>.</param>
/// <returns> /// <returns>
/// The builder instance. /// The builder instance.
/// </returns> /// </returns>
public TextInputComponentBuilder WithMinLenght(int minLenght)
public TextInputComponentBuilder WithMinLength(int minLength)
{ {
MinLength = minLenght;
MinLength = minLength;
return this; return this;
} }


/// <summary> /// <summary>
/// Sets <see cref="MaxLength"/>. /// Sets <see cref="MaxLength"/>.
/// </summary> /// </summary>
/// <param name="maxLenght">New value of the <see cref="MaxLength"/>.</param>
/// <param name="maxLength">New value of the <see cref="MaxLength"/>.</param>
/// <returns> /// <returns>
/// The builder instance. /// The builder instance.
/// </returns> /// </returns>
public TextInputComponentBuilder WithMaxLenght(int maxLenght)
public TextInputComponentBuilder WithMaxLength(int maxLength)
{ {
MaxLength = maxLenght;
MaxLength = maxLength;
return this; return this;
} }




Loading…
Cancel
Save