Skip to content

Commit

Permalink
Fix String converter translations
Browse files Browse the repository at this point in the history
Fixes #290

Co-authored-by: Ilias <[email protected]>
  • Loading branch information
gdude2002 and Iliasgx committed Apr 9, 2024
1 parent 377d0f1 commit 4135897
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class StringConverter(
if (minLength != null && this.parsed.length < minLength) {
throw DiscordRelayedException(
context.translate(
"converters.string.error.invalid.tooLong",
"converters.string.error.invalid.tooShort",
replacements = arrayOf(arg, minLength)
)
)
Expand All @@ -64,7 +64,7 @@ public class StringConverter(
if (maxLength != null && this.parsed.length > maxLength) {
throw DiscordRelayedException(
context.translate(
"converters.string.error.invalid.tooShort",
"converters.string.error.invalid.tooLong",
replacements = arrayOf(arg, maxLength)
)
)
Expand Down

0 comments on commit 4135897

Please sign in to comment.