We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc26b03 commit 33d2aa9Copy full SHA for 33d2aa9
src/ipc/discord/client.rs
@@ -117,6 +117,7 @@ impl RichClient {
117
pub fn update(&self, packet: &Packet) -> crate::Result<()> {
118
trace!("Updating Discord rich presence");
119
let encoded = Json::serialize(packet)?;
120
+
121
match self.write(1, Some(encoded.as_bytes())) {
122
Err(_) => Err("The connection to Discord was lost".into()),
123
_ => Ok(()),
0 commit comments