From 867e8e500ed426153a8ce2acb633b93fbe2d4dd5 Mon Sep 17 00:00:00 2001 From: Misha133 Date: Mon, 27 Jun 2022 13:58:37 +0300 Subject: [PATCH] add a note about `ignoreGroupNames` attribute` --- docs/guides/int_framework/intro.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/guides/int_framework/intro.md b/docs/guides/int_framework/intro.md index 54e9086a1..a1d373466 100644 --- a/docs/guides/int_framework/intro.md +++ b/docs/guides/int_framework/intro.md @@ -291,6 +291,9 @@ By nesting commands inside a module that is tagged with [GroupAttribute] you can > Although creating nested module stuctures are allowed, > you are not permitted to use more than 2 [GroupAttribute]'s in module hierarchy. +> [!NOTE] +> [ComponentInteraction] and [ModalInteraction] handlers require `ignoreGroupNames` parameter set to `true` to work in classes with [GroupAttribute] + [!code-csharp[Command Group Example](samples/intro/groupmodule.cs)] ## Executing Commands @@ -383,6 +386,8 @@ delegate can be used to create HTTP responses from a deserialized json object st [ChannelTypesAttribute]: xref:Discord.Interactions.ChannelTypesAttribute [MaxValueAttribute]: xref:Discord.Interactions.MaxValueAttribute [MinValueAttribute]: xref:Discord.Interactions.MinValueAttribute +[ComponentInteraction]: xref:Discord.Interactions.ComponentInteractionAttribute +[ModalInteraction]: xref:Discord.Interactions.ModalInteractionAttribute [IChannel]: xref:Discord.IChannel [IRole]: xref:Discord.IRole