fix: show correct error when mentioned account doesn't have a system
This commit is contained in:
parent
ec6d4865cb
commit
dce29ec933
@ -190,7 +190,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 && !ulong.TryParse(ctx.Parameters.Peek(), out _))
|
if (ctx.Parameters.Peek().Length != 5 && !ctx.Parameters.Peek().TryParseMention(out _))
|
||||||
{
|
{
|
||||||
await PrintCommandNotFoundError(ctx, SystemCommands);
|
await PrintCommandNotFoundError(ctx, SystemCommands);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user