Interface BaseOwnerEvent<T, D>

Base shape shared by all SSE events.

interface BaseOwnerEvent<T extends OwnerEventType, D> {
    at: string;
    data: D;
    guildId: string;
    id: string;
    type: T;
}

Type Parameters

Properties

Properties

at: string

ISO timestamp of when the event occurred.

data: D

Type-specific payload for this event.

guildId: string

Discord guild ID the event belongs to.

id: string

Unique identifier for this event.

type: T

The event type discriminant.