Code Monkey home page Code Monkey logo

Comments (3)

vionya avatar vionya commented on May 26, 2024 1

Alright, gotcha. Thanks for clarifying.

I'll see if I can confirm if it's a lib or Discord issue, and fix appropriately soon.

from discord-rich-presence.

vionya avatar vionya commented on May 26, 2024

Silently fail as in, other data in the set_activity payload is also ignored, or the buttons data is ignored? An Activity::buttons with an empty Vec should be serialized properly - and if it's failing in that scenario, it seems like it'd be a Discord problem.

from discord-rich-presence.

silvanshade avatar silvanshade commented on May 26, 2024

Silently fail as in, other data in the set_activity payload is also ignored, or the buttons data is ignored? An Activity::buttons with an empty Vec should be serialized properly - and if it's failing in that scenario, it seems like it'd be a Discord problem.

By failing silently I mean the rich presence status doesn't get updated -- any part of it, not just the buttons. It's like the call to set_activity never happens.

I can believe it's a bug in the discord implementation but it might be worth noting in the docs at least, and perhaps even just handling it gracefully in this library (by not including the buttons data in the serialization if the vector is empty).

from discord-rich-presence.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.