feat: add more systemtag-related command aliases

- `pk;s t` for tag
- `pk;s st` for servertag (taken from a Notion suggestion)
This commit is contained in:
Iris System 2022-05-08 10:27:37 +12:00 committed by spiral
parent ee17fcb11f
commit b8fda734e2

View File

@ -209,9 +209,9 @@ public partial class CommandTree
{ {
if (ctx.Match("name", "rename", "changename")) if (ctx.Match("name", "rename", "changename"))
await ctx.CheckSystem(target).Execute<SystemEdit>(SystemRename, m => m.Name(ctx, target)); await ctx.CheckSystem(target).Execute<SystemEdit>(SystemRename, m => m.Name(ctx, target));
else if (ctx.Match("tag")) else if (ctx.Match("tag", "t"))
await ctx.CheckSystem(target).Execute<SystemEdit>(SystemTag, m => m.Tag(ctx, target)); await ctx.CheckSystem(target).Execute<SystemEdit>(SystemTag, m => m.Tag(ctx, target));
else if (ctx.Match("servertag")) else if (ctx.Match("servertag", "st"))
await ctx.CheckSystem(target).Execute<SystemEdit>(SystemServerTag, m => m.ServerTag(ctx, target)); await ctx.CheckSystem(target).Execute<SystemEdit>(SystemServerTag, m => m.ServerTag(ctx, target));
else if (ctx.Match("description", "desc", "bio")) else if (ctx.Match("description", "desc", "bio"))
await ctx.CheckSystem(target).Execute<SystemEdit>(SystemDesc, m => m.Description(ctx, target)); await ctx.CheckSystem(target).Execute<SystemEdit>(SystemDesc, m => m.Description(ctx, target));