twilight_model/channel/message/
call.rs

1use crate::{
2    id::{marker::UserMarker, Id},
3    util::Timestamp,
4};
5
6use serde::{Deserialize, Serialize};
7
8/// Information about the call in a private channel.
9#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
10pub struct MessageCall {
11    /// The timestamp of when the call ended.
12    pub ended_timestamp: Option<Timestamp>,
13    /// The IDs of the users that participated in the call.
14    #[serde(default)]
15    pub participants: Vec<Id<UserMarker>>,
16}