Open
Description
Summary
Using yarl for adding params to the oauth url.
What is the feature request for?
The core library
The Problem
If anything goes wrong with wrong params atleast it gives an error and does not just return it. Also right now there are a lot of if calls after eachother while it can be fixed with 1 function.
https://github.com/DisnakeDev/disnake/blob/master/disnake/utils.py#L322-L332
The Ideal Solution
You use yarl.URL("standard oauth url").with_query(params)
or yarl.build()
.
The Current Solution
No response
Additional Context
No response