Skip to content

GuildScheduledEvent

Represents a Discord guild scheduled event. The REST routes already existed, but the payloads were only returned as raw camel-cased objects from gateway hooks. This structure centralizes date parsing, lifecycle helpers, subscriber listing, and guild-scoped CRUD. https://docs.discord.com/developers/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-structure

Signature

export interface GuildScheduledEvent extends DiscordBase, ObjectToLower<Omit<APIGuildScheduledEvent, 'creator'>>

Properties

startAtGetter
get startAt(): Date | undefined;

The start time of the event as a `Date`.

endAtGetter
get endAt(): Date | undefined;

The end time of the event as a `Date`, when Discord provides one.

get isExternal(): boolean;

Whether the event takes place outside Discord (no channel).

get createdTimestamp(): number;

Create a timestamp for the current object.

get createdAt(): Date;

createdAt gets the creation Date instace of the current object.

image?: string | null | undefined;

Methods

delete(reason?: string): Promise<undefined>;

Deletes this event.