Table of Contents
API reference

Constructor DiscordInteractionIngressEnvelope

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

DiscordInteractionIngressEnvelope(InteractionType, JObject, ulong?, ulong?, string?)

Represents the parsed top-level Discord interaction payload received over HTTP ingress.

public DiscordInteractionIngressEnvelope(InteractionType type, JObject payload, ulong? interactionId = null, ulong? applicationId = null, string? token = null)

Parameters

type InteractionType

The interaction type.

payload JObject

The parsed interaction payload.

interactionId ulong?

The interaction identifier when present.

applicationId ulong?

The application identifier when present.

token string

The interaction continuation token when present.

Remarks

Initializes a new instance of the DiscordInteractionIngressEnvelope class.