Class ModalCommandBuilder
Represents a builder for creating a ModalCommandInfo.
Inheritance
ModalCommandBuilder
Implements
Inherited Members
CommandBuilder<ModalCommandInfo, ModalCommandBuilder, ModalCommandParameterBuilder>.IgnoreGroupNames
CommandBuilder<ModalCommandInfo, ModalCommandBuilder, ModalCommandParameterBuilder>.TreatNameAsRegex
Namespace: Discord.Interactions.Builders
Assembly: Discord.Net.Interactions.dll
Syntax
public class ModalCommandBuilder : CommandBuilder<ModalCommandInfo, ModalCommandBuilder, ModalCommandParameterBuilder>, ICommandBuilder
Constructors
| Improve this Doc View SourceModalCommandBuilder(ModuleBuilder)
Initializes a new ModalCommandBuilder.
Declaration
public ModalCommandBuilder(ModuleBuilder module)
Parameters
Type | Name | Description |
---|---|---|
ModuleBuilder | module | Parent module of this modal. |
ModalCommandBuilder(ModuleBuilder, String, ExecuteCallback)
Initializes a new ModalCommandBuilder.
Declaration
public ModalCommandBuilder(ModuleBuilder module, string name, ExecuteCallback callback)
Parameters
Type | Name | Description |
---|---|---|
ModuleBuilder | module | Parent module of this modal. |
String | name | Name of this modal. |
ExecuteCallback | callback | Execution callback of this modal. |
Properties
| Improve this Doc View SourceInstance
Declaration
protected override ModalCommandBuilder Instance { get; }
Property Value
Type | Description |
---|---|
ModalCommandBuilder |
Overrides
Discord.Interactions.Builders.CommandBuilder<Discord.Interactions.ModalCommandInfo, Discord.Interactions.Builders.ModalCommandBuilder, Discord.Interactions.Builders.ModalCommandParameterBuilder>.Instance
Methods
| Improve this Doc View SourceAddParameter(Action<ModalCommandParameterBuilder>)
Adds a modal parameter to the parameters collection.
Declaration
public override ModalCommandBuilder AddParameter(Action<ModalCommandParameterBuilder> configure)
Parameters
Type | Name | Description |
---|---|---|
Action<ModalCommandParameterBuilder> | configure | ModalCommandParameterBuilder factory. |
Returns
Type | Description |
---|---|
ModalCommandBuilder | The builder instance. |
Overrides
Discord.Interactions.Builders.CommandBuilder<Discord.Interactions.ModalCommandInfo, Discord.Interactions.Builders.ModalCommandBuilder, Discord.Interactions.Builders.ModalCommandParameterBuilder>.AddParameter(Action<Discord.Interactions.Builders.ModalCommandParameterBuilder>)