fix: correct error text on pk;unlink
This commit is contained in:
parent
0ee0e75e02
commit
614059c79f
@ -32,7 +32,7 @@ public class SystemLink
|
|||||||
|
|
||||||
ulong id;
|
ulong id;
|
||||||
if (!ctx.MatchUserRaw(out 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();
|
var accountIds = (await ctx.Repository.GetSystemAccounts(ctx.System.Id)).ToList();
|
||||||
if (!accountIds.Contains(id)) throw Errors.AccountNotLinked;
|
if (!accountIds.Contains(id)) throw Errors.AccountNotLinked;
|
||||||
|
Loading…
Reference in New Issue
Block a user