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

context DiscordInteractionIngressContext

The interaction ingress context.

cancellationToken CancellationToken

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