-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Help] Clearing Activity #13
Comments
|
is doing it like this wrong? let data = json!({
"cmd": "SET_ACTIVITY",
"args": {
"pid": std::process::id(),
"activity": None::<()>
},
"nonce": Uuid::new_v4().to_string()
});
client.send(data, 1).expect("Failed to clear activity") got the idea from a python implementation of RPC, pypresence, which basically sends an empty activity with an opcode of 1 |
If it does the trick then there's probable nothing wrong with it. My first answer was probably wrong - I think it was sending a connection close payload (been a while since I've read the reference for this haha). I can look into adding a helper for this if necessary. |
yeah, it would be awesome if you could add it whenever you can! there's no rush though since there's a workaround for it |
Are you able to clear the activity without closing the connection?
if not, how can i implement this feature in my program
The text was updated successfully, but these errors were encountered: