rust-discord-activity 0.3.1

A lightweight library to control Discord Rich Presence
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// List of Commands to send through IPC to Discord Client.
/// Currently only supports SET_ACTIVITY.
pub enum Commands {
    SetActivity,
}

impl Commands {
    pub fn as_string(&self) -> String {
        match self {
            Commands::SetActivity => "SET_ACTIVITY".into(),
        }
    }
}