INTERACT FORUM
More => Old Versions => JRiver Media Center 30 for Windows => Topic started by: Noel on March 08, 2023, 10:50:53 pm
-
Media Center integration with Discord has been previously requested several times. (Here's one (https://yabb.jriver.com/interact/index.php?topic=129905.0).) I'd like to speak to that interest again with some Discord API breadcrumbs to hopefully leaven the prospect.
The ask is for functionality, similar to that found in Spotify, that enriches a Discord user's profile panel with their current Media Center activity.
(https://i.imgur.com/o7rWLrTm.jpg)
Discord provides both an HTTP API and Gateway (WebSocket) API. Based on a cursory reading, it appears that use of the Gateway API is required in order to update a user's status.
HTTP API:
https://discord.com/developers/docs/reference#http-api
Gateway API:
https://discord.com/developers/docs/topics/gateway
OAuth2 Scopes:
https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes
Some salient parts of the Gateway API:
- The Update Presence event:
https://discord.com/developers/docs/topics/gateway-events#update-presence - The Activity object structure:
https://discord.com/developers/docs/topics/gateway-events#activity-object
For your future consideration, once again. Thank you.
-
Like before, I'd love to see this as well, since Discord is pretty popular these days.