feat: add aliases: pk;h
(help) and pk;m <member> kp
(keepproxy)
This commit is contained in:
parent
a66d459756
commit
f25b967a36
@ -35,7 +35,7 @@ public partial class CommandTree
|
|||||||
return ctx.Execute<ImportExport>(Import, m => m.Import(ctx));
|
return ctx.Execute<ImportExport>(Import, m => m.Import(ctx));
|
||||||
if (ctx.Match("export"))
|
if (ctx.Match("export"))
|
||||||
return ctx.Execute<ImportExport>(Export, m => m.Export(ctx));
|
return ctx.Execute<ImportExport>(Export, m => m.Export(ctx));
|
||||||
if (ctx.Match("help"))
|
if (ctx.Match("help", "h"))
|
||||||
if (ctx.Match("commands"))
|
if (ctx.Match("commands"))
|
||||||
return ctx.Reply("For the list of commands, see the website: <https://pluralkit.me/commands>");
|
return ctx.Reply("For the list of commands, see the website: <https://pluralkit.me/commands>");
|
||||||
else if (ctx.Match("proxy"))
|
else if (ctx.Match("proxy"))
|
||||||
@ -308,7 +308,7 @@ public partial class CommandTree
|
|||||||
await ctx.Execute<MemberEdit>(MemberServerName, m => m.ServerName(ctx, target));
|
await ctx.Execute<MemberEdit>(MemberServerName, m => m.ServerName(ctx, target));
|
||||||
else if (ctx.Match("autoproxy", "ap"))
|
else if (ctx.Match("autoproxy", "ap"))
|
||||||
await ctx.Execute<MemberEdit>(MemberAutoproxy, m => m.MemberAutoproxy(ctx, target));
|
await ctx.Execute<MemberEdit>(MemberAutoproxy, m => m.MemberAutoproxy(ctx, target));
|
||||||
else if (ctx.Match("keepproxy", "keeptags", "showtags"))
|
else if (ctx.Match("keepproxy", "keeptags", "showtags", "kp"))
|
||||||
await ctx.Execute<MemberEdit>(MemberKeepProxy, m => m.KeepProxy(ctx, target));
|
await ctx.Execute<MemberEdit>(MemberKeepProxy, m => m.KeepProxy(ctx, target));
|
||||||
else if (ctx.Match("privacy"))
|
else if (ctx.Match("privacy"))
|
||||||
await ctx.Execute<MemberEdit>(MemberPrivacy, m => m.Privacy(ctx, target, null));
|
await ctx.Execute<MemberEdit>(MemberPrivacy, m => m.Privacy(ctx, target, null));
|
||||||
|
Loading…
Reference in New Issue
Block a user