Struct discord::model::ReadyEvent [] [src]

pub struct ReadyEvent {
    pub version: u64,
    pub user: CurrentUser,
    pub session_id: String,
    pub user_settings: Option<UserSettings>,
    pub read_state: Option<Vec<ReadState>>,
    pub private_channels: Vec<Channel>,
    pub presences: Vec<Presence>,
    pub relationships: Vec<Relationship>,
    pub servers: Vec<PossibleServer<LiveServer>>,
    pub user_server_settings: Option<Vec<UserServerSettings>>,
    pub tutorial: Option<Tutorial>,
    pub trace: Vec<Option<String>>,
    pub notes: Option<BTreeMap<UserIdString>>,
    pub shard: Option<[u8; 2]>,
}

The "Ready" event, containing initial state

Fields

The trace of servers involved in this connection.

The shard info for this session; the shard id used and the total number of shards.

Trait Implementations

impl Debug for ReadyEvent
[src]

Formats the value using the given formatter.

impl Clone for ReadyEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more