serenity-rs / serenity

A Rust library for the Discord API.
https://discord.gg/serenity-rs
ISC License
4.77k stars 581 forks source link

Support for oauth2 token exchanges? #2475

Open ghost opened 1 year ago

ghost commented 1 year ago

Would it be possible to add oauth2 token support? Having a library that supports the discord api, but having to manually make access token exchanges is tedious.

Here's an example of what has to be sent

Here's an example response

It would be much appreciated!

valentinegb commented 3 months ago

I second this! It seems like I can't rely on Serenity for OAuth2 stuff at all since it doesn't even have the OAuth2 endpoints in Route...