docs: Add IgnoreGroupNames clarification to IF docs (#2374)

This commit is contained in:
Misha133
2022-08-01 14:39:11 +03:00
committed by GitHub
parent 06ed995122
commit cf25acdbc1
2 changed files with 11 additions and 1 deletions

View File

@@ -16,6 +16,11 @@ public class CommandGroupModule : InteractionModuleBase<SocketInteractionContext
// group-name subcommand-group-name echo
[SlashCommand("echo", "Echo an input")]
public async Task EchoSubcommand(string input)
=> await RespondAsync(input);
=> await RespondAsync(input, components: new ComponentBuilder().WithButton("Echo", $"echoButton_{input}").Build());
// Component interaction with ignoreGroupNames set to true
[ComponentInteraction("echoButton_*", true)]
public async Task EchoButton(string input)
=> await RespondAsync(input);
}
}