Add "groups" to system privacy parse error

This commit is contained in:
Ske 2020-08-26 22:01:52 +02:00
parent 929b34e555
commit 84a91b3f75

View File

@ -21,7 +21,7 @@ namespace PluralKit.Bot
public static SystemPrivacySubject PopSystemPrivacySubject(this Context ctx) public static SystemPrivacySubject PopSystemPrivacySubject(this Context ctx)
{ {
if (!SystemPrivacyUtils.TryParseSystemPrivacy(ctx.PeekArgument(), out var subject)) if (!SystemPrivacyUtils.TryParseSystemPrivacy(ctx.PeekArgument(), out var subject))
throw new PKSyntaxError($"Invalid privacy subject {ctx.PopArgument().AsCode()} (must be `description`, `members`, `front`, `fronthistory`, or `all`)."); throw new PKSyntaxError($"Invalid privacy subject {ctx.PopArgument().AsCode()} (must be `description`, `members`, `front`, `fronthistory`, `groups`, or `all`).");
ctx.PopArgument(); ctx.PopArgument();
return subject; return subject;