Table of Contents

Class CommandServiceConfiguration<TContext>

Namespace
NetCord.Services.Commands
Assembly
NetCord.Services.dll
public record CommandServiceConfiguration<TContext> : IEquatable<CommandServiceConfiguration<TContext>> where TContext : ICommandContext

Type Parameters

TContext
Inheritance
CommandServiceConfiguration<TContext>
Implements
Inherited Members

Constructors

CommandServiceConfiguration(CommandServiceConfiguration<TContext>)

protected CommandServiceConfiguration(CommandServiceConfiguration<TContext> original)

Parameters

original CommandServiceConfiguration<TContext>

Properties

CultureInfo

public CultureInfo CultureInfo { get; init; }

Property Value

CultureInfo

Default

public static CommandServiceConfiguration<TContext> Default { get; }

Property Value

CommandServiceConfiguration<TContext>

EnumTypeReader

public CommandTypeReader<TContext> EnumTypeReader { get; init; }

Property Value

CommandTypeReader<TContext>

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

IgnoreCase

Default = true

public bool IgnoreCase { get; init; }

Property Value

bool

ParameterSeparators

Default = ' ', '\n'

public IEnumerable<char> ParameterSeparators { get; init; }

Property Value

IEnumerable<char>

ResultResolverProvider

public IResultResolverProvider<TContext> ResultResolverProvider { get; init; }

Property Value

IResultResolverProvider<TContext>

TypeReaders

public ImmutableDictionary<Type, CommandTypeReader<TContext>> TypeReaders { get; init; }

Property Value

ImmutableDictionary<Type, CommandTypeReader<TContext>>

Methods

Equals(CommandServiceConfiguration<TContext>?)

public virtual bool Equals(CommandServiceConfiguration<TContext>? other)

Parameters

other CommandServiceConfiguration<TContext>

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

<Clone>$()

public virtual CommandServiceConfiguration<TContext> <Clone>$()

Returns

CommandServiceConfiguration<TContext>

Operators

operator ==(CommandServiceConfiguration<TContext>?, CommandServiceConfiguration<TContext>?)

public static bool operator ==(CommandServiceConfiguration<TContext>? left, CommandServiceConfiguration<TContext>? right)

Parameters

left CommandServiceConfiguration<TContext>
right CommandServiceConfiguration<TContext>

Returns

bool

operator !=(CommandServiceConfiguration<TContext>?, CommandServiceConfiguration<TContext>?)

public static bool operator !=(CommandServiceConfiguration<TContext>? left, CommandServiceConfiguration<TContext>? right)

Parameters

left CommandServiceConfiguration<TContext>
right CommandServiceConfiguration<TContext>

Returns

bool