pub struct GuildScheduledEvent {Show 16 fields
pub channel_id: Option<Id<ChannelMarker>>,
pub creator: Option<User>,
pub creator_id: Option<Id<UserMarker>>,
pub description: Option<String>,
pub entity_id: Option<Id<ScheduledEventEntityMarker>>,
pub entity_metadata: Option<EntityMetadata>,
pub entity_type: EntityType,
pub guild_id: Id<GuildMarker>,
pub id: Id<ScheduledEventMarker>,
pub image: Option<ImageHash>,
pub name: String,
pub privacy_level: PrivacyLevel,
pub scheduled_end_time: Option<Timestamp>,
pub scheduled_start_time: Timestamp,
pub status: Status,
pub user_count: Option<u64>,
}
Expand description
Representation of a scheduled event.
For events created before October 25th, 2021, creator
and creator_id
will be None
.
Fields§
§channel_id: Option<Id<ChannelMarker>>
ID of the stage or voice channel if there is one.
Present on events of EntityType::StageInstance
and
EntityType::Voice
.
creator: Option<User>
User object of the event’s creator.
Only present on events created after October 25th, 2021.
creator_id: Option<Id<UserMarker>>
ID of the event’s creator.
Only present on events created after October 25th, 2021.
description: Option<String>
Description of the event.
entity_id: Option<Id<ScheduledEventEntityMarker>>
ID of the event’s entity.
entity_metadata: Option<EntityMetadata>
Metadata of an entity, if it exists.
Currently, only present on events of EntityType::External
.
entity_type: EntityType
Type of entity associated with the event.
guild_id: Id<GuildMarker>
ID of the guild the event takes place in.
id: Id<ScheduledEventMarker>
ID of the event.
image: Option<ImageHash>
Hash of the event’s cover image, if it has one.
name: String
Name of the event.
privacy_level: PrivacyLevel
Privacy level of the event.
scheduled_end_time: Option<Timestamp>
Scheduled end time of the event.
Required on events of type EntityType::External
. It also may be
present in other event types.
scheduled_start_time: Timestamp
Scheduled start time of the event.
status: Status
Status of the event.
user_count: Option<u64>
Number of users subscribed to the event.
Trait Implementations§
Source§impl Clone for GuildScheduledEvent
impl Clone for GuildScheduledEvent
Source§fn clone(&self) -> GuildScheduledEvent
fn clone(&self) -> GuildScheduledEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more