mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(bot): correct length check in ctx.CreateNotFoundError
This commit is contained in:
parent
9f56697241
commit
dc3e21a195
1 changed files with 2 additions and 2 deletions
|
|
@ -172,12 +172,12 @@ public static class ContextEntityArgumentsExt
|
||||||
|
|
||||||
if (isIDOnlyQuery)
|
if (isIDOnlyQuery)
|
||||||
{
|
{
|
||||||
if (input.Length == 5)
|
if (input.Length >= 5 && input.Length <= 6)
|
||||||
return $"{entity} with ID \"{input}\" not found.";
|
return $"{entity} with ID \"{input}\" not found.";
|
||||||
return $"{entity} not found. Note that a {entity.ToLower()} ID is 5 or 6 characters long.";
|
return $"{entity} not found. Note that a {entity.ToLower()} ID is 5 or 6 characters long.";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input.Length == 5)
|
if (input.Length >= 5 && input.Length <= 6)
|
||||||
return $"{entity} with ID or name \"{input}\" not found.";
|
return $"{entity} with ID or name \"{input}\" not found.";
|
||||||
return $"{entity} with name \"{input}\" not found. Note that a {entity.ToLower()} ID is 5 or 6 characters long.";
|
return $"{entity} with name \"{input}\" not found. Note that a {entity.ToLower()} ID is 5 or 6 characters long.";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue