Table of Contents
API reference

Class DiscordInteractionIngressResponse

Namespace
DisCatSharp.Hosting.AspNetCore.Ingress.Interactions
Assembly
DisCatSharp.Hosting.AspNetCore.dll

Represents an inline HTTP response to a Discord interaction.

public sealed class DiscordInteractionIngressResponse
Inheritance
DiscordInteractionIngressResponse
Inherited Members

Remarks

Discord requires the initial response to be returned within roughly three seconds. Use one of the deferred response helpers when additional work is required, then finish the interaction through the outbound follow-up webhook APIs before the interaction token expires after fifteen minutes.

Properties

Type

Gets the Discord interaction callback type returned by this response.

Methods

ChannelMessageWithSource(DiscordInteractionResponseBuilder)

Creates an inline message response for an incoming Discord interaction.

DeferredChannelMessageWithSource(bool)

Creates a deferred message response for an incoming Discord interaction.

FromCallback(InteractionResponseType, DiscordInteractionResponseBuilder?)

Creates an inline interaction callback response.

Pong()

Creates the required PONG response for an interaction ping.