Remove "a" keyword for pk;find

This commit is contained in:
Ske 2020-03-05 19:08:32 +01:00
parent 884d6e1925
commit c6e813853a

View File

@ -113,8 +113,8 @@ namespace PluralKit.Bot
if (system == null) throw Errors.NoSystemError; if (system == null) throw Errors.NoSystemError;
ctx.CheckSystemPrivacy(system, system.MemberListPrivacy); ctx.CheckSystemPrivacy(system, system.MemberListPrivacy);
var shouldShowLongList = ctx.Match("f", "full", "big", "details", "long"); var shouldShowLongList = ctx.Match("full", "big", "details", "long") || ctx.MatchFlag("f", "full");
var canShowPrivate = ctx.Match("a", "all", "everyone", "private"); var canShowPrivate = ctx.Match("all", "everyone", "private") || ctx.MatchFlag("a", "all");
var searchTerm = ctx.RemainderOrNull() ?? throw new PKSyntaxError("You must specify a search term."); var searchTerm = ctx.RemainderOrNull() ?? throw new PKSyntaxError("You must specify a search term.");