rustcord 0.2.0

A safe wrapper around the Discord Rich Presence API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Represents a Discord user that has a rich presence on
#[derive(Default, Clone, Hash, PartialEq, Debug)]
pub struct User {
    pub user_id: String,
    pub username: String,
    pub discriminator: String,
    pub avatar: String,
}

/// A reply to the a user's request
#[derive(Clone, Hash, PartialEq, Debug)]
pub enum JoinRequestReply {
    No,
    Yes,
    Ignore,
}