API reference
Method HandleAsync
- Namespace
- DisCatSharp.Hosting.AspNetCore.Ingress.Interactions
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
HandleAsync(DiscordInteractionIngressContext, CancellationToken)
Attempts to handle an incoming Discord interaction.
ValueTask<DiscordInteractionIngressResponse?> HandleAsync(DiscordInteractionIngressContext context, CancellationToken cancellationToken = default)
Parameters
contextDiscordInteractionIngressContextThe interaction ingress context.
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- ValueTask<DiscordInteractionIngressResponse>
A transport-neutral interaction response when the interaction was handled, or null to allow other registered handlers to try.