REST API for Rich Presence
I'm a developer for an online (browser) game, and am interested in integrating Rich Presence. Sadly, it seems to be impossible to integrate this as it stands, as Rich Presence can only be used using an SDK through the Discord client.
It would be very nice to be able to have a REST API to control Rich Presence. Then, we could have an oAuth flow to link a Discord user with a game. The game server would then call the Discord API to set a rich presence for the user, through this a REST API.
Thoughts?
-
Doing it over a rest api would defeat the purpose of having a constant connection, so they know you're still connected, and for something like this you would either need an account token, which you aren't getting easy, or a new api scope for bots, though the way that's all setup, you can't edit anything about users from bots
0 -
@Donovan_DMC
That makes sense. A RTC connection to upkeep the Rich Presence would probably work too, but be slightly harder to handle for some servers, I feel. (REST being relatively fire-and-forget) Nonetheless, either option is better than nothing, yes?
As for getting a token, as I said I'd suggest using an oAuth flow to get a token. A new scope would allow users to know what's going on and prevent unauthorized access to anything else.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare