Add "groups" to system privacy parse error
This commit is contained in:
parent
929b34e555
commit
84a91b3f75
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user