-
I have this nested slash command module that has a modal response with a [Group(ServerCmd.Server, ServerCmd.ServerDesc)]
internal class GameServerDiscordModule : InteractionModuleBase<SocketInteractionContext> {
...
[SlashCommand(ServerCmd.Add, ServerCmd.AddDesc)]
internal async Task ServerAddCmd_Exec(...) {
await Context.Interaction.RespondWithModalAsync<AddServerModal>(ServerCmd.AddModal + servername);
}
[ModalInteraction(ServerCmd.AddModal)]
internal async Task ServerAddModal_Exec(AddServerModal modal) {
...
}
...
} Is this a correct usage of |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Add |
Beta Was this translation helpful? Give feedback.
-
Interaction Service uses the delimiters in |
Beta Was this translation helpful? Give feedback.
Interaction Service uses the delimiters in
InteractionServiceConfig.InteractionCustomIdDelimiters
to traverse the nested group structures. So you can assing that prop a value if you want to enable that behaviour. But what @cjbonn said should also work.