#[non_exhaustive]pub struct GuildScheduledEvent {Show 17 fields
pub id: ScheduledEventId,
pub guild_id: GuildId,
pub channel_id: Option<ChannelId>,
pub creator_id: Option<UserId>,
pub name: CompactString,
pub description: Option<CompactString>,
pub scheduled_start_time: Timestamp,
pub scheduled_end_time: Option<Timestamp>,
pub privacy_level: PrivacyLevel,
pub status: Status,
pub entity_type: EntityType,
pub entity_id: Option<GenericId>,
pub entity_metadata: Option<EntityMetadata>,
pub creator: Option<Box<User>>,
pub user_count: Option<u32>,
pub image: Option<ImageHash>,
pub recurrence_rule: Option<Box<RecurrenceRule>>,
}Expand description
A scheduled event of a guild.
Which location fields are set depends on entity_type: stage and
voice events have a channel_id; external events have
entity_metadata with a location and a
scheduled_end_time.
discord.js counterpart: GuildScheduledEvent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: ScheduledEventIdThe event’s ID.
guild_id: GuildIdThe guild the event belongs to.
channel_id: Option<ChannelId>The stage or voice channel the event takes place in; None for external events.
creator_id: Option<UserId>Who created the event; None for events created before October 25th, 2021.
name: CompactStringThe event’s name (1-100 characters).
description: Option<CompactString>The event’s description (1-1000 characters).
scheduled_start_time: TimestampWhen the event starts.
scheduled_end_time: Option<Timestamp>When the event ends; required for external events.
privacy_level: PrivacyLevelWho can see the event.
status: StatusWhether the event is scheduled, running, finished or canceled.
entity_type: EntityTypeWhere the event takes place.
entity_id: Option<GenericId>The ID of the entity associated with the event (e.g. the stage instance).
entity_metadata: Option<EntityMetadata>Extra data for external events.
creator: Option<Box<User>>The user who created the event.
user_count: Option<u32>How many users are interested in the event (with with_user_count=true).
image: Option<ImageHash>The cover image hash.
recurrence_rule: Option<Box<RecurrenceRule>>How the event repeats; None for one-time events.