Fix typos of word length (#2443)

This commit is contained in:
Kuba_Z2
2022-08-29 11:24:32 +02:00
committed by GitHub
parent adf012d1dd
commit 0aa381d468
4 changed files with 15 additions and 15 deletions

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;
} }

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> /// <param name="length">Maximum string length allowed.</param>
public MaxLengthAttribute(int lenght) public MaxLengthAttribute(int length)
{ {
Length = lenght; Length = length;
} }
} }
} }

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> /// <param name="length">Minimum string length allowed.</param>
public MinLengthAttribute(int lenght) public MinLengthAttribute(int length)
{ {
Length = lenght; Length = length;
} }
} }
} }

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;
} }