From 5648c2f711ca6a127b330baeb38edc07aa13a57c Mon Sep 17 00:00:00 2001 From: Misha133 Date: Fri, 15 Apr 2022 00:45:39 +0300 Subject: [PATCH] added some comments t othe example code --- docs/guides/int_framework/samples/intro/groupmodule.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/guides/int_framework/samples/intro/groupmodule.cs b/docs/guides/int_framework/samples/intro/groupmodule.cs index 1ec188d62..63a67e312 100644 --- a/docs/guides/int_framework/samples/intro/groupmodule.cs +++ b/docs/guides/int_framework/samples/intro/groupmodule.cs @@ -1,13 +1,19 @@ +//You can put commands in groups [Group("group-name", "Group description")] public class CommandGroupModule : InteractionModuleBase { + //This command will look like + // group-name ping [SlashCommand("ping", "Get a pong")] public async Task PongSubcommand() => await RespondAsync("Pong!"); - + + //And even in sub-command groups [Group("subcommand-group-name", "Subcommand group description")] - public class SubcommandGroupModule : InteractionModuleBase + public class SubСommandGroupModule : InteractionModuleBase { + //This command will look like + // group-name subcommand-group-name echo [SlashCommand("echo", "Echo an input")] public async Task PongSubcommand(string input) => await RespondAsync(input);