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>
/// Sets the current builders max length field.
/// </summary>
/// <param name="lenght">The value to set.</param>
/// <param name="length">The value to set.</param>
/// <returns>The current builder.</returns>
public SlashCommandOptionBuilder WithMaxLength(int lenght)
public SlashCommandOptionBuilder WithMaxLength(int length)
{
MaxLength = lenght;
MaxLength = length;
return this;
}

View File

@@ -16,10 +16,10 @@ namespace Discord.Interactions
/// <summary>
/// Sets the maximum length allowed for a string type parameter.
/// </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;
}
}
}

View File

@@ -16,10 +16,10 @@ namespace Discord.Interactions
/// <summary>
/// Sets the minimum length allowed for a string type parameter.
/// </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;
}
}
}

View File

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