Interface IApplicationCommandServiceStorage<TContext>
- Namespace
- NetCord.Services.ApplicationCommands
- Assembly
- NetCord.Services.dll
public interface IApplicationCommandServiceStorage<TContext> where TContext : IApplicationCommandContext
Type Parameters
TContext
Methods
AddCommand(ApplicationCommandInfo<TContext>)
void AddCommand(ApplicationCommandInfo<TContext> command)
Parameters
command
ApplicationCommandInfo<TContext>
AddRegisteredCommands(IReadOnlyList<RegisteredApplicationCommandInfo<TContext>>)
void AddRegisteredCommands(IReadOnlyList<RegisteredApplicationCommandInfo<TContext>> registeredCommands)
Parameters
registeredCommands
IReadOnlyList<RegisteredApplicationCommandInfo<TContext>>
TryGetCommand(ApplicationCommandInteractionData, out ApplicationCommandInfo<TContext>)
bool TryGetCommand(ApplicationCommandInteractionData interactionData, out ApplicationCommandInfo<TContext> command)
Parameters
interactionData
ApplicationCommandInteractionData
command
ApplicationCommandInfo<TContext>
Returns
- bool