Class ParameterBuilder
- Namespace
- Discord.Commands.Builders
- Assembly
- Discord.Net.Commands.dll
public class ParameterBuilder
- Inheritance
-
ParameterBuilder
- Inherited Members
-
Properties
Attributes
public IReadOnlyList<Attribute> Attributes { get; }
Property Value
- IReadOnlyList<Attribute>
Command
public CommandBuilder Command { get; }
Property Value
- CommandBuilder
DefaultValue
public object DefaultValue { get; set; }
Property Value
- object
IsMultiple
public bool IsMultiple { get; set; }
Property Value
- bool
IsOptional
public bool IsOptional { get; set; }
Property Value
- bool
IsRemainder
public bool IsRemainder { get; set; }
Property Value
- bool
Name
public string Name { get; }
Property Value
- string
ParameterType
public Type ParameterType { get; }
Property Value
- Type
Preconditions
public IReadOnlyList<ParameterPreconditionAttribute> Preconditions { get; }
Property Value
- IReadOnlyList<ParameterPreconditionAttribute>
Summary
public string Summary { get; set; }
Property Value
- string
TypeReader
public TypeReader TypeReader { get; set; }
Property Value
- TypeReader
Methods
AddAttributes(params Attribute[])
public ParameterBuilder AddAttributes(params Attribute[] attributes)
Parameters
attributes
Attribute[]
Returns
- ParameterBuilder
AddPrecondition(ParameterPreconditionAttribute)
public ParameterBuilder AddPrecondition(ParameterPreconditionAttribute precondition)
Parameters
precondition
ParameterPreconditionAttribute
Returns
- ParameterBuilder
WithDefault(object)
public ParameterBuilder WithDefault(object defaultValue)
Parameters
defaultValue
object
Returns
- ParameterBuilder
WithIsMultiple(bool)
public ParameterBuilder WithIsMultiple(bool isMultiple)
Parameters
isMultiple
bool
Returns
- ParameterBuilder
WithIsOptional(bool)
public ParameterBuilder WithIsOptional(bool isOptional)
Parameters
isOptional
bool
Returns
- ParameterBuilder
WithIsRemainder(bool)
public ParameterBuilder WithIsRemainder(bool isRemainder)
Parameters
isRemainder
bool
Returns
- ParameterBuilder
WithSummary(string)
public ParameterBuilder WithSummary(string summary)
Parameters
summary
string
Returns
- ParameterBuilder