Fix typos of word length (#2443)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user