Browse Source

added spaces in comments

pull/2246/head
Misha133 3 years ago
parent
commit
acc9cf733f
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      docs/guides/int_framework/samples/intro/groupmodule.cs

+ 6
- 6
docs/guides/int_framework/samples/intro/groupmodule.cs View File

@@ -1,19 +1,19 @@
//You can put commands in groups
// You can put commands in groups
[Group("group-name", "Group description")]
public class CommandGroupModule : InteractionModuleBase<SocketInteractionContext>
{
//This command will look like
// group-name ping
// 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
// And even in sub-command groups
[Group("subcommand-group-name", "Subcommand group description")]
public class SubСommandGroupModule : InteractionModuleBase<SocketInteractionContext>
{
//This command will look like
// group-name subcommand-group-name echo
// This command will look like
// group-name subcommand-group-name echo
[SlashCommand("echo", "Echo an input")]
public async Task EchoSubcommand(string input)
=> await RespondAsync(input);


Loading…
Cancel
Save