Struct discord_flows::model::ScheduledEvent
source · pub struct ScheduledEvent {Show 14 fields
pub id: ScheduledEventId,
pub guild_id: GuildId,
pub channel_id: Option<ChannelId>,
pub creator_id: Option<UserId>,
pub name: String,
pub description: Option<String>,
pub start_time: Timestamp,
pub end_time: Option<Timestamp>,
pub status: ScheduledEventStatus,
pub creator: Option<User>,
pub kind: ScheduledEventType,
pub metadata: Option<ScheduledEventMetadata>,
pub user_count: Option<u64>,
pub image: Option<String>,
}
Expand description
Information about a guild scheduled event.
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: ScheduledEventId
The Id of the scheduled event.
guild_id: GuildId
The Id of the guild that the event belongs to.
channel_id: Option<ChannelId>
The Id of the channel that the event belongs to, if any.
creator_id: Option<UserId>
The Id of the User that created the scheduled event.
Only None
for events created before October 25th, 2021.
name: String
The name of the scheduled event.
description: Option<String>
The description of the scheduled event, if any.
start_time: Timestamp
The event’s starting time.
end_time: Option<Timestamp>
The event’s ending time; optional.
status: ScheduledEventStatus
The event’s status; either Scheduled, Active, Completed, or Canceled.
creator: Option<User>
The User that created the event.
Only None
for events created before October 25th, 2021.
kind: ScheduledEventType
The type of the event, indicating if it will take place in a Stage Instance, a Voice Channel, or at some External location.
metadata: Option<ScheduledEventMetadata>
Optional event location, only required for External events.
user_count: Option<u64>
Number of users interested in the event.
Only populated if with_user_count
is set to true provided when calling
[GuildId::scheduled_event
] or [GuildId::scheduled_events
].
image: Option<String>
The hash of the event’s cover image, if present.
Trait Implementations§
source§impl Clone for ScheduledEvent
impl Clone for ScheduledEvent
source§fn clone(&self) -> ScheduledEvent
fn clone(&self) -> ScheduledEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more