ScheduledEvent
- class ScheduledEvent
A scheduled guild event for a voice channel, stage channel, or external location.
Properties
Property
Type
Description
channelIdChannel ID for voice/stage events, or
nullfor external events.createdAtWhen this scheduled event was created, decoded from the event snowflake.
creatorIdID of the user who created the event, or
null.descriptionEvent description, or
nullif not set.entityTypeType of entity the event is associated with.
guildIdGuild ID this event belongs to.
idScheduled event ID.
nameEvent name.
privacyLevel2
Privacy level of the event.
recurrenceRuleHow the event repeats, or
nullfor a one-off event.scheduledEndTimeWhen the event is scheduled to end, or
null.scheduledStartTimeWhen the event is scheduled to start.
statusCurrent status of the event.
Methods
- async ScheduledEvent.delete(reason: string) Promise<void>
Delete this event.
- Parameters:
reason: Reason for deletion, shown in audit log.
-
async ScheduledEvent.edit(options:
ScheduledEventEditOptions) Promise<ScheduledEvent> Edit event properties.
- Parameters:
options: Event properties to update.
- Returns:
The updated event.
-
async ScheduledEvent.fetchUsers(options:
FetchScheduledEventUsersOptions) Promise<ScheduledEventUser[]> List users who marked themselves as interested, up to 100 per call, sorted by user ID. Page with
afterset to the last user’s ID.const users = await event.fetchUsers({ limit: 100, withMember: true });