Table of Contents

Class CommandParameterAttribute

Namespace
NetCord.Services.Commands
Assembly
NetCord.Services.dll

Specifies metadata for a parameter of a command.

[AttributeUsage(AttributeTargets.Parameter)]
public class CommandParameterAttribute : Attribute
Inheritance
CommandParameterAttribute
Inherited Members

Constructors

CommandParameterAttribute()

public CommandParameterAttribute()

Properties

Name

Name of the parameter.

public string? Name { get; init; }

Property Value

string

Remainder

Indicates whether the parameter is parsed as a remainder, meaning that it captures the rest of the input after the command and preceding parameters.

public bool Remainder { get; init; }

Property Value

bool

TypeReaderType

Type reader for the parameter, used to convert the input value to the specified type.

public Type? TypeReaderType { get; init; }

Property Value

Type