WebhookEventBody
in package
Read onlyYes
AbstractYes
Attributes
- #[DiscriminatorMap]
- $typeProperty: 'type'
- $mapping: [\App\Enum\Discord\WebhookEventBodyType::ApplicationAuthorized->value => \App\Dto\Discord\ApplicationAuthorizedWebhookEventBody::class]
Table of Contents
Properties
- $timestamp : string
- $type : WebhookEventBodyType
Methods
- __construct() : mixed
Properties
$timestamp
public
string
$timestamp
$type
public
WebhookEventBodyType
$type
Methods
__construct()
public
__construct(WebhookEventBodyType $type, string $timestamp) : mixed
Parameters
- $type : WebhookEventBodyType
-
Event type.
- $timestamp : string
-
Timestamp of when the event occurred in ISO8601 format.