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
-
IEquatable<ApplicationCommandServiceConfiguration<TContext>>
- 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
DefaultDMPermission
public bool DefaultDMPermission { get; init; }
Property Value
DefaultIntegrationTypes
public IEnumerable<ApplicationIntegrationType>? DefaultIntegrationTypes { get; init; }
Property Value
DefaultParameterDescriptionFormat
{0} - parameter name
public string DefaultParameterDescriptionFormat { get; init; }
Property Value
EnumTypeReader
public SlashCommandTypeReader<TContext> EnumTypeReader { get; init; }
Property Value
- SlashCommandTypeReader<TContext>
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
LocalizationsProvider
public ILocalizationsProvider? LocalizationsProvider { get; init; }
Property Value
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
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
ToString()
public override string ToString()
Returns
<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
operator !=(ApplicationCommandServiceConfiguration<TContext>?, ApplicationCommandServiceConfiguration<TContext>?)
public static bool operator !=(ApplicationCommandServiceConfiguration<TContext>? left, ApplicationCommandServiceConfiguration<TContext>? right)
Parameters
left
ApplicationCommandServiceConfiguration<TContext>right
ApplicationCommandServiceConfiguration<TContext>