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