Table of Contents
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

context DiscordIncomingWebhookContext

The incoming webhook context.

cancellationToken CancellationToken

A 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.