Table of Contents

Class CommandParameter<TContext>

Namespace
NetCord.Services.Commands
Assembly
NetCord.Services.dll
public class CommandParameter<TContext> where TContext : ICommandContext

Type Parameters

TContext
Inheritance
CommandParameter<TContext>
Inherited Members

Properties

Attributes

public IReadOnlyDictionary<Type, IReadOnlyList<Attribute>> Attributes { get; }

Property Value

IReadOnlyDictionary<Type, IReadOnlyList<Attribute>>

DefaultValue

public object? DefaultValue { get; }

Property Value

object

ElementType

public Type ElementType { get; }

Property Value

Type

HasDefaultValue

public bool HasDefaultValue { get; }

Property Value

bool

Name

public string Name { get; }

Property Value

string

NonNullableElementType

public Type NonNullableElementType { get; }

Property Value

Type

Params

public bool Params { get; }

Property Value

bool

Preconditions

public IReadOnlyList<ParameterPreconditionAttribute<TContext>> Preconditions { get; }

Property Value

IReadOnlyList<ParameterPreconditionAttribute<TContext>>

Remainder

public bool Remainder { get; }

Property Value

bool

Type

public Type Type { get; }

Property Value

Type

TypeReader

public CommandTypeReader<TContext> TypeReader { get; }

Property Value

CommandTypeReader<TContext>

Methods

ReadAsync(ReadOnlyMemory<char>, TContext, CommandServiceConfiguration<TContext>, IServiceProvider?)

public ValueTask<TypeReaderResult> ReadAsync(ReadOnlyMemory<char> input, TContext context, CommandServiceConfiguration<TContext> configuration, IServiceProvider? serviceProvider)

Parameters

input ReadOnlyMemory<char>
context TContext
configuration CommandServiceConfiguration<TContext>
serviceProvider IServiceProvider

Returns

ValueTask<TypeReaderResult>