Interface IDiscordSlashCommandHandler
Handles all incoming slash command requests.
Namespace: Color_Chan.Discord.Commands.Services.InteractionHandlers
Assembly: Color-Chan.Discord.Commands.dll
Syntax
public interface IDiscordSlashCommandHandler
Methods
| Improve this Doc View SourceHandleSlashCommandAsync(IDiscordInteraction)
Handles a interaction slash command request.
Declaration
Task<InternalInteractionResponse> HandleSlashCommandAsync(IDiscordInteraction interaction)
Parameters
Type | Name | Description |
---|---|---|
IDiscordInteraction | interaction | The interaction that was used. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<InternalInteractionResponse> | A InternalInteractionResponse containing the result of the slash command. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when Data is null. |