Table of Contents

Class CommandServiceOptions<TContext>

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

Type Parameters

TContext
Inheritance
CommandServiceOptions<TContext>
Inherited Members

Constructors

CommandServiceOptions()

public CommandServiceOptions()

Properties

CreateContext

public Func<Message, GatewayClient, IServiceProvider, TContext>? CreateContext { get; set; }

Property Value

Func<Message, GatewayClient, IServiceProvider, TContext>

CultureInfo

public CultureInfo? CultureInfo { get; set; }

Property Value

CultureInfo

EnumTypeReader

public CommandTypeReader<TContext>? EnumTypeReader { get; set; }

Property Value

CommandTypeReader<TContext>

GetPrefixLengthAsync

public Func<Message, GatewayClient, IServiceProvider, ValueTask<int>>? GetPrefixLengthAsync { get; set; }

Property Value

Func<Message, GatewayClient, IServiceProvider, ValueTask<int>>

IgnoreCase

Default = true

public bool? IgnoreCase { get; set; }

Property Value

bool?

ParameterSeparators

Default = ' ', '\n'

public IEnumerable<char>? ParameterSeparators { get; set; }

Property Value

IEnumerable<char>

Prefix

public string? Prefix { get; set; }

Property Value

string

Prefixes

public IEnumerable<string>? Prefixes { get; set; }

Property Value

IEnumerable<string>

ResultHandler

public ICommandResultHandler<TContext>? ResultHandler { get; set; }

Property Value

ICommandResultHandler<TContext>

ResultResolverProvider

public IResultResolverProvider<TContext>? ResultResolverProvider { get; set; }

Property Value

IResultResolverProvider<TContext>

TypeReaders

public Dictionary<Type, CommandTypeReader<TContext>> TypeReaders { get; set; }

Property Value

Dictionary<Type, CommandTypeReader<TContext>>

UseScopes

public bool? UseScopes { get; set; }

Property Value

bool?