vionya / discord-rich-presence

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

Activity Buttons break Rich Presence #6

Closed afonsojramos closed 2 years ago

afonsojramos commented 2 years ago

Maybe this is now unsupported by Discord's API, but sending buttons in the Activity struct somehow makes Discord ignore what is sent.

Additionally, the set_activity function does not return any error, which is why I assume that it is simply being ignored.

ghost commented 2 years ago

I have to imagine this is an issue with your usage - running the test_models test works perfectly fine on my end: image

afonsojramos commented 2 years ago

Okay, it was due to bad Rust code 😬 Thanks, however, I am not able to make them as links on MacOS, any guess on why?

image

The links are correctly formatted and working on Windows:

image

ghost commented 2 years ago

When you say it doesn't work on MacOS, do you mean the buttons don't show up at all, or something else?

afonsojramos commented 2 years ago

When you click the buttons, nothing happens 🤷 This is on a M1 Mac, not sure if it is related.

afonsojramos commented 2 years ago

But I suppose this is a Discord issue, so I'll close this.

ghost commented 2 years ago

Yep, buttons on your own rich presence can't be clicked, for Discord reasons :+1: