diff --git a/src/Discord.Net.Interactions/Builders/ModuleBuilder.cs b/src/Discord.Net.Interactions/Builders/ModuleBuilder.cs index e3ac0140a..26402762e 100644 --- a/src/Discord.Net.Interactions/Builders/ModuleBuilder.cs +++ b/src/Discord.Net.Interactions/Builders/ModuleBuilder.cs @@ -390,6 +390,23 @@ namespace Discord.Interactions.Builders _modalCommands.Add(command); return this; } + + /// + /// Adds a modal command builder to . + /// + /// Name of the command. + /// Command callback to be executed. + /// factory. + /// + /// The builder instance. + /// + public ModuleBuilder AddModalCommand(string name, ExecuteCallback callback, Action configure) + { + var command = new ModalCommandBuilder(this, name, callback); + configure(command); + _modalCommands.Add(command); + return this; + } /// /// Adds sub-module builder to .