fix(bot): correct length check in ctx.CreateNotFoundError

This commit is contained in:
Iris System 2024-04-28 20:00:52 +12:00
parent 9f56697241
commit dc3e21a195

View file

@ -172,12 +172,12 @@ public static class ContextEntityArgumentsExt
if (isIDOnlyQuery)
{
if (input.Length == 5)
if (input.Length >= 5 && input.Length <= 6)
return $"{entity} with ID \"{input}\" not found.";
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 name \"{input}\" not found. Note that a {entity.ToLower()} ID is 5 or 6 characters long.";
}