From 0aa381d4683694ab85e300337aef4be42a171e33 Mon Sep 17 00:00:00 2001
From: Kuba_Z2 <77853483+KubaZ2@users.noreply.github.com>
Date: Mon, 29 Aug 2022 11:24:32 +0200
Subject: [PATCH] Fix typos of word `length` (#2443)
---
.../SlashCommands/SlashCommandBuilder.cs | 6 +++---
.../Attributes/MaxLengthAttribute.cs | 6 +++---
.../Attributes/MinLengthAttribute.cs | 6 +++---
.../Modals/Inputs/TextInputComponentBuilder.cs | 12 ++++++------
4 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandBuilder.cs b/src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandBuilder.cs
index 579289304..b443c4468 100644
--- a/src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandBuilder.cs
+++ b/src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandBuilder.cs
@@ -855,11 +855,11 @@ namespace Discord
///
/// Sets the current builders max length field.
///
- /// The value to set.
+ /// The value to set.
/// The current builder.
- public SlashCommandOptionBuilder WithMaxLength(int lenght)
+ public SlashCommandOptionBuilder WithMaxLength(int length)
{
- MaxLength = lenght;
+ MaxLength = length;
return this;
}
diff --git a/src/Discord.Net.Interactions/Attributes/MaxLengthAttribute.cs b/src/Discord.Net.Interactions/Attributes/MaxLengthAttribute.cs
index 1099e7d92..2172886d2 100644
--- a/src/Discord.Net.Interactions/Attributes/MaxLengthAttribute.cs
+++ b/src/Discord.Net.Interactions/Attributes/MaxLengthAttribute.cs
@@ -16,10 +16,10 @@ namespace Discord.Interactions
///
/// Sets the maximum length allowed for a string type parameter.
///
- /// Maximum string length allowed.
- public MaxLengthAttribute(int lenght)
+ /// Maximum string length allowed.
+ public MaxLengthAttribute(int length)
{
- Length = lenght;
+ Length = length;
}
}
}
diff --git a/src/Discord.Net.Interactions/Attributes/MinLengthAttribute.cs b/src/Discord.Net.Interactions/Attributes/MinLengthAttribute.cs
index 7d0b0fd63..8050f992a 100644
--- a/src/Discord.Net.Interactions/Attributes/MinLengthAttribute.cs
+++ b/src/Discord.Net.Interactions/Attributes/MinLengthAttribute.cs
@@ -16,10 +16,10 @@ namespace Discord.Interactions
///
/// Sets the minimum length allowed for a string type parameter.
///
- /// Minimum string length allowed.
- public MinLengthAttribute(int lenght)
+ /// Minimum string length allowed.
+ public MinLengthAttribute(int length)
{
- Length = lenght;
+ Length = length;
}
}
}
diff --git a/src/Discord.Net.Interactions/Builders/Modals/Inputs/TextInputComponentBuilder.cs b/src/Discord.Net.Interactions/Builders/Modals/Inputs/TextInputComponentBuilder.cs
index 8dd2c4004..728b97a7a 100644
--- a/src/Discord.Net.Interactions/Builders/Modals/Inputs/TextInputComponentBuilder.cs
+++ b/src/Discord.Net.Interactions/Builders/Modals/Inputs/TextInputComponentBuilder.cs
@@ -67,26 +67,26 @@ namespace Discord.Interactions.Builders
///
/// Sets .
///
- /// New value of the .
+ /// New value of the .
///
/// The builder instance.
///
- public TextInputComponentBuilder WithMinLenght(int minLenght)
+ public TextInputComponentBuilder WithMinLength(int minLength)
{
- MinLength = minLenght;
+ MinLength = minLength;
return this;
}
///
/// Sets .
///
- /// New value of the .
+ /// New value of the .
///
/// The builder instance.
///
- public TextInputComponentBuilder WithMaxLenght(int maxLenght)
+ public TextInputComponentBuilder WithMaxLength(int maxLength)
{
- MaxLength = maxLenght;
+ MaxLength = maxLength;
return this;
}