Class ApplicationCommandInfo<TContext>
- Namespace
- NetCord.Services.ApplicationCommands
- Assembly
- NetCord.Services.dll
public abstract class ApplicationCommandInfo<TContext> : IApplicationCommandInfo where TContext : IApplicationCommandContext
Type Parameters
TContext
- Inheritance
-
ApplicationCommandInfo<TContext>
- Implements
-
- Derived
-
- Inherited Members
-
Properties
Contexts
public IEnumerable<InteractionContextType>? Contexts { get; }
Property Value
- IEnumerable<InteractionContextType>
DMPermission
public bool DMPermission { get; }
Property Value
- bool
DefaultGuildUserPermissions
public Permissions? DefaultGuildUserPermissions { get; }
Property Value
- Permissions?
DefaultPermission
public bool DefaultPermission { get; }
Property Value
- bool
GuildId
public ulong? GuildId { get; }
Property Value
- ulong?
IntegrationTypes
public IEnumerable<ApplicationIntegrationType>? IntegrationTypes { get; }
Property Value
- IEnumerable<ApplicationIntegrationType>
LocalizationPath
public ImmutableList<LocalizationPathSegment> LocalizationPath { get; }
Property Value
- ImmutableList<LocalizationPathSegment>
LocalizationPathSegment
public abstract LocalizationPathSegment LocalizationPathSegment { get; }
Property Value
- LocalizationPathSegment
LocalizationsProvider
public ILocalizationsProvider? LocalizationsProvider { get; }
Property Value
- ILocalizationsProvider
Name
public string Name { get; }
Property Value
- string
Nsfw
public bool Nsfw { get; }
Property Value
- bool
Methods
GetRawValueAsync(CancellationToken)
public abstract ValueTask<ApplicationCommandProperties> GetRawValueAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken
Returns
- ValueTask<ApplicationCommandProperties>
InvokeAsync(TContext, ApplicationCommandServiceConfiguration<TContext>, IServiceProvider?)
public abstract ValueTask<IExecutionResult> InvokeAsync(TContext context, ApplicationCommandServiceConfiguration<TContext> configuration, IServiceProvider? serviceProvider)
Parameters
context
TContext
configuration
ApplicationCommandServiceConfiguration<TContext>
serviceProvider
IServiceProvider
Returns
- ValueTask<IExecutionResult>