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
typeintThe envelope type discriminator.
payloadDiscordIngressPayloadThe raw payload bytes.
rootJsonElementThe parsed JSON root element.
versionint?The webhook envelope version when present.
applicationIdstringThe application identifier when present.
eventTypestringThe event type when present.
timestampRawstringThe event timestamp when present.
eventBodyJsonElement?The raw nested event object when present.
dataJsonElement?The raw nested event data object when present.