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
typeInteractionTypeThe interaction type.
payloadJObjectThe parsed interaction payload.
interactionIdulong?The interaction identifier when present.
applicationIdulong?The application identifier when present.
tokenstringThe interaction continuation token when present.
Remarks
Initializes a new instance of the DiscordInteractionIngressEnvelope class.