Function discord_rich_presence::new_client [−][src]
pub fn new_client(client_id: &str) -> Result<impl DiscordIpc, Box<dyn Error>>
Expand description
Creates a new client to connect to the Discord IPC.
Examples
let ipc_client = discord_ipc_client::new_client("<some client id>")?;