feat(bot): Switch subcommand aliases (#531)

This commit is contained in:
Ouroboros 2023-03-12 02:24:54 +00:00 committed by GitHub
parent 199d5927f5
commit 97be223173
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -408,9 +408,9 @@ public partial class CommandTree
{ {
if (ctx.Match("out")) if (ctx.Match("out"))
await ctx.Execute<Switch>(SwitchOut, m => m.SwitchOut(ctx)); await ctx.Execute<Switch>(SwitchOut, m => m.SwitchOut(ctx));
else if (ctx.Match("move", "shift", "offset")) else if (ctx.Match("move", "m", "shift", "offset"))
await ctx.Execute<Switch>(SwitchMove, m => m.SwitchMove(ctx)); await ctx.Execute<Switch>(SwitchMove, m => m.SwitchMove(ctx));
else if (ctx.Match("edit", "replace")) else if (ctx.Match("edit", "e", "replace"))
if (ctx.Match("out")) if (ctx.Match("out"))
await ctx.Execute<Switch>(SwitchEditOut, m => m.SwitchEditOut(ctx)); await ctx.Execute<Switch>(SwitchEditOut, m => m.SwitchEditOut(ctx));
else else