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