Table of Contents

Class ComponentInteractionParameter<TContext>

Namespace
NetCord.Services.ComponentInteractions
Assembly
NetCord.Services.dll
public class ComponentInteractionParameter<TContext> where TContext : IComponentInteractionContext

Type Parameters

TContext
Inheritance
ComponentInteractionParameter<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>>

Type

public Type Type { get; }

Property Value

Type

TypeReader

public ComponentInteractionTypeReader<TContext> TypeReader { get; }

Property Value

ComponentInteractionTypeReader<TContext>

Methods

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

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

Parameters

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

Returns

ValueTask<TypeReaderResult>