Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authless pomelo name checking #562

Open
TheKidThatCodes opened this issue Aug 30, 2023 · 0 comments
Open

authless pomelo name checking #562

TheKidThatCodes opened this issue Aug 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@TheKidThatCodes
Copy link

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 TheKidThatCodes changed the title allow for authless pomelo name checking authless pomelo name checking Aug 30, 2023
@dolfies dolfies added the enhancement New feature or request label Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants