fix: correct error text on pk;unlink

This commit is contained in:
spiral 2022-06-03 01:15:15 -04:00
parent 0ee0e75e02
commit 614059c79f
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -32,7 +32,7 @@ public class SystemLink
ulong id;
if (!ctx.MatchUserRaw(out id))
throw new PKSyntaxError("You must pass an account to link with (either ID or @mention).");
throw new PKSyntaxError("You must pass an account to unlink from (either ID or @mention).");
var accountIds = (await ctx.Repository.GetSystemAccounts(ctx.System.Id)).ToList();
if (!accountIds.Contains(id)) throw Errors.AccountNotLinked;