vionya / discord-rich-presence

A cross-platform Discord Rich Presence library written in Rust
MIT License
89 stars 16 forks source link

Client connects but not showing presence #20

Closed antiaim closed 1 year ago

antiaim commented 1 year ago

The client successfully connects to discord but is not showing any rich presence, even with "Display current activity as a status message" enabled.

vionya commented 1 year ago

Does this persist even if you try restarting/reloading Discord and then running your code again?

If so, try printing the output of DiscordIpc::recv() after trying to send data to the socket

antiaim commented 1 year ago

Turns out I was setting one of the presence fields incorrectly, and couldn't debug it as i was unaware of the recv() method. There is another problem with the client disconnecting automatically after a few minutes, but if I can't solve it I'll make a new issue.