mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 01:30:13 +00:00
fix(bot): throw correct error on invalid 6-character system id
This commit is contained in:
parent
082782b283
commit
80b685ae9b
1 changed files with 1 additions and 1 deletions
|
|
@ -205,7 +205,7 @@ public partial class CommandTree
|
||||||
// if we *still* haven't matched anything, the user entered an invalid command name or system reference
|
// if we *still* haven't matched anything, the user entered an invalid command name or system reference
|
||||||
if (ctx.Parameters._ptr == previousPtr)
|
if (ctx.Parameters._ptr == previousPtr)
|
||||||
{
|
{
|
||||||
if (ctx.Parameters.Peek().Length != 5 && !ctx.Parameters.Peek().TryParseMention(out _))
|
if (!ctx.Parameters.Peek().TryParseHid(out _) && !ctx.Parameters.Peek().TryParseMention(out _))
|
||||||
{
|
{
|
||||||
await PrintCommandNotFoundError(ctx, SystemCommands);
|
await PrintCommandNotFoundError(ctx, SystemCommands);
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue