Table of Contents

Class IdApplicationCommandServiceStorage<TContext>

Namespace
NetCord.Services.ApplicationCommands
Assembly
NetCord.Services.dll
public class IdApplicationCommandServiceStorage<TContext> : IApplicationCommandServiceStorage<TContext> where TContext : IApplicationCommandContext

Type Parameters

TContext
Inheritance
IdApplicationCommandServiceStorage<TContext>
Implements
Inherited Members

Constructors

IdApplicationCommandServiceStorage()

public IdApplicationCommandServiceStorage()

Methods

AddCommand(ApplicationCommandInfo<TContext>)

public void AddCommand(ApplicationCommandInfo<TContext> command)

Parameters

command ApplicationCommandInfo<TContext>

AddRegisteredCommands(IReadOnlyList<RegisteredApplicationCommandInfo<TContext>>)

public void AddRegisteredCommands(IReadOnlyList<RegisteredApplicationCommandInfo<TContext>> registeredCommands)

Parameters

registeredCommands IReadOnlyList<RegisteredApplicationCommandInfo<TContext>>

TryGetCommand(ApplicationCommandInteractionData, out ApplicationCommandInfo<TContext>)

public bool TryGetCommand(ApplicationCommandInteractionData interactionData, out ApplicationCommandInfo<TContext> command)

Parameters

interactionData ApplicationCommandInteractionData
command ApplicationCommandInfo<TContext>

Returns

bool