From dce29ec933ddb999e133edaed3c235c37af7f0a8 Mon Sep 17 00:00:00 2001 From: spiral Date: Wed, 30 Mar 2022 05:27:15 -0400 Subject: [PATCH] fix: show correct error when mentioned account doesn't have a system --- PluralKit.Bot/CommandMeta/CommandTree.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/CommandMeta/CommandTree.cs b/PluralKit.Bot/CommandMeta/CommandTree.cs index 02bcd374..34df66a1 100644 --- a/PluralKit.Bot/CommandMeta/CommandTree.cs +++ b/PluralKit.Bot/CommandMeta/CommandTree.cs @@ -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 (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); return;