discord.py-self icon indicating copy to clipboard operation
discord.py-self copied to clipboard

authless pomelo name checking

Open TheKidThatCodes opened this issue 11 months ago • 0 comments

Summary

allow for authless pomelo name checking

What is the feature request for?

The core library

The Problem

the check_pomelo_username function uses auth which made me have to implement an authless version myself, would be nice if there was a function in the library to do that for me.

The Ideal Solution

something like my solution, but with error checking? my code checks for 429s and if it says anything other than {taken:True/False} but because its unauthed, you should probably check if it is a valid name before sending the http request

The Current Solution

with httpx.Client() as cl:
    req = cl.post("https://discord.com/api/v9/unique-username/username-attempt-unauthed",json={"username": username}, headers={"Content-Type": "application/json"})

this method is the same method used on the create account page

Additional Context

srry im bad at following gh issue templates

TheKidThatCodes avatar Aug 30 '23 14:08 TheKidThatCodes