feat(bot): Switch subcommand aliases (#531)
This commit is contained in:
parent
199d5927f5
commit
97be223173
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user