Class ModalCommandParameterBuilder
- Namespace
- Discord.Interactions.Builders
- Assembly
- Discord.Net.Interactions.dll
Represents a builder for creating ModalCommandBuilder.
public class ModalCommandParameterBuilder : ParameterBuilder<ModalCommandParameterInfo, ModalCommandParameterBuilder>, IParameterBuilder
- Inheritance
-
ModalCommandParameterBuilder
- Implements
- Inherited Members
Constructors
ModalCommandParameterBuilder(ICommandBuilder, string, Type)
Initializes a new ModalCommandParameterBuilder.
public ModalCommandParameterBuilder(ICommandBuilder command, string name, Type type)
Parameters
command
ICommandBuilderParent command of this parameter.
name
stringName of this command.
type
TypeType of this parameter.
Properties
Instance
protected override ModalCommandParameterBuilder Instance { get; }
Property Value
IsModalParameter
Gets whether or not this parameter is an IModal.
public bool IsModalParameter { get; }
Property Value
Modal
Gets the built ModalInfo class for this parameter, if IsModalParameter is true.
public ModalInfo Modal { get; }
Property Value
TypeReader
Gets the TypeReader assigned to this parameter, if IsModalParameter is true.
public TypeReader TypeReader { get; }
Property Value
Methods
SetParameterType(Type)
Sets ParameterType.
public override ModalCommandParameterBuilder SetParameterType(Type type)
Parameters
type
TypeNew value of the ParameterType.
Returns
- ModalCommandParameterBuilder
The builder instance.