Skip to content

yarl in oauth2 url generator #1191

Open
@OseSem

Description

@OseSem

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions