From ddc3242e71f04b731d82b4f586f29fd29e079424 Mon Sep 17 00:00:00 2001 From: Still Hsu <341464@gmail.com> Date: Tue, 5 Jun 2018 16:10:35 +0800 Subject: [PATCH] Improve group module example --- docs/guides/commands/samples/groups.cs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/guides/commands/samples/groups.cs b/docs/guides/commands/samples/groups.cs index 5f96c34e8..e117a52da 100644 --- a/docs/guides/commands/samples/groups.cs +++ b/docs/guides/commands/samples/groups.cs @@ -4,15 +4,22 @@ public class AdminModule : ModuleBase [Group("clean")] public class CleanModule : ModuleBase { - // ~admin clean 15 + // ~admin clean [Command] - public async Task Default(int count = 10) => Messages(count); + public async Task DefaultCleanAsync() + { + // ... + } // ~admin clean messages 15 [Command("messages")] - public async Task Messages(int count = 10) { } + public async Task CleanAsync(int count) + { + // ... + } } // ~admin ban foxbot#0282 [Command("ban")] - public async Task Ban(IGuildUser user) { } + public Task BanAsync(IGuildUser user) => + Context.Guild.AddBanAsync(user); } \ No newline at end of file