Table of Contents

Class ApplicationCommandServiceConfiguration<TContext>

Namespace
NetCord.Services.ApplicationCommands
Assembly
NetCord.Services.dll
public record ApplicationCommandServiceConfiguration<TContext> : IEquatable<ApplicationCommandServiceConfiguration<TContext>> where TContext : IApplicationCommandContext

Type Parameters

TContext
Inheritance
ApplicationCommandServiceConfiguration<TContext>
Implements
Inherited Members

Constructors

ApplicationCommandServiceConfiguration(ApplicationCommandServiceConfiguration<TContext>)

protected ApplicationCommandServiceConfiguration(ApplicationCommandServiceConfiguration<TContext> original)

Parameters

original ApplicationCommandServiceConfiguration<TContext>

Properties

Default

public static ApplicationCommandServiceConfiguration<TContext> Default { get; }

Property Value

ApplicationCommandServiceConfiguration<TContext>

DefaultContexts

public IEnumerable<InteractionContextType>? DefaultContexts { get; init; }

Property Value

IEnumerable<InteractionContextType>

DefaultDMPermission

public bool DefaultDMPermission { get; init; }

Property Value

bool

DefaultIntegrationTypes

public IEnumerable<ApplicationIntegrationType>? DefaultIntegrationTypes { get; init; }

Property Value

IEnumerable<ApplicationIntegrationType>

DefaultParameterDescriptionFormat

{0} - parameter name

public string DefaultParameterDescriptionFormat { get; init; }

Property Value

string

EnumTypeReader

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

Property Value

SlashCommandTypeReader<TContext>

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

LocalizationsProvider

public ILocalizationsProvider? LocalizationsProvider { get; init; }

Property Value

ILocalizationsProvider

ParameterNameProcessor

public ISlashCommandParameterNameProcessor<TContext> ParameterNameProcessor { get; init; }

Property Value

ISlashCommandParameterNameProcessor<TContext>

ResultResolverProvider

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

Property Value

IResultResolverProvider<TContext>

TypeReaders

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

Property Value

ImmutableDictionary<Type, SlashCommandTypeReader<TContext>>

Methods

Equals(ApplicationCommandServiceConfiguration<TContext>?)

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

Parameters

other ApplicationCommandServiceConfiguration<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 ApplicationCommandServiceConfiguration<TContext> <Clone>$()

Returns

ApplicationCommandServiceConfiguration<TContext>

Operators

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

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

Parameters

left ApplicationCommandServiceConfiguration<TContext>
right ApplicationCommandServiceConfiguration<TContext>

Returns

bool

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

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

Parameters

left ApplicationCommandServiceConfiguration<TContext>
right ApplicationCommandServiceConfiguration<TContext>

Returns

bool