feat(bot): 'g' shorthand for pk;m <n> group (#532)

This commit is contained in:
Ouroboros 2023-03-13 16:38:20 +00:00 committed by GitHub
parent 5a248e26a2
commit 4ca296de6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -308,7 +308,7 @@ public partial class CommandTree
await ctx.Execute<MemberAvatar>(MemberAvatar, m => m.WebhookAvatar(ctx, target)); await ctx.Execute<MemberAvatar>(MemberAvatar, m => m.WebhookAvatar(ctx, target));
else if (ctx.Match("banner", "splash", "cover")) else if (ctx.Match("banner", "splash", "cover"))
await ctx.Execute<MemberEdit>(MemberBannerImage, m => m.BannerImage(ctx, target)); await ctx.Execute<MemberEdit>(MemberBannerImage, m => m.BannerImage(ctx, target));
else if (ctx.Match("group", "groups")) else if (ctx.Match("group", "groups", "g"))
if (ctx.Match("add", "a")) if (ctx.Match("add", "a"))
await ctx.Execute<GroupMember>(MemberGroupAdd, await ctx.Execute<GroupMember>(MemberGroupAdd,
m => m.AddRemoveGroups(ctx, target, Groups.AddRemoveOperation.Add)); m => m.AddRemoveGroups(ctx, target, Groups.AddRemoveOperation.Add));