Table of Contents
API reference

Constructor DiscordWebhookEventEnvelope

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

DiscordWebhookEventEnvelope(int, DiscordIngressPayload, JsonElement, int?, string?, string?, string?, JsonElement?, JsonElement?)

Initializes a new instance of the DiscordWebhookEventEnvelope class.

public DiscordWebhookEventEnvelope(int type, DiscordIngressPayload payload, JsonElement root, int? version = null, string? applicationId = null, string? eventType = null, string? timestampRaw = null, JsonElement? eventBody = null, JsonElement? data = null)

Parameters

type int

The envelope type discriminator.

payload DiscordIngressPayload

The raw payload bytes.

root JsonElement

The parsed JSON root element.

version int?

The webhook envelope version when present.

applicationId string

The application identifier when present.

eventType string

The event type when present.

timestampRaw string

The event timestamp when present.

eventBody JsonElement?

The raw nested event object when present.

data JsonElement?

The raw nested event data object when present.