Skip to content

Username error for usernames containing the word "here" #100

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

Open
hypherionmc opened this issue Feb 27, 2025 · 2 comments
Open

Username error for usernames containing the word "here" #100

hypherionmc opened this issue Feb 27, 2025 · 2 comments

Comments

@hypherionmc
Copy link

So basically, when a user has the word here, everyone or discord somewhere in their name, the webhook will fail with an invalid username error.

discord I know about, and is not an issue, since discord themselves don't allow that word in application/bot or webhook names.

In this specific case, the username of the user is groundsphere.

When the webhook client has to send a message on behalf of them, it fails with this error:

[com.hypherionmc.sdlink.shaded.club.minnced.discord.webhook.WebhookClient/]: Sending a webhook message failed with non-OK http response
com.hypherionmc.sdlink.shaded.club.minnced.discord.webhook.exception.HttpException: Request returned failure 400: {"message": "Invalid Form Body", "code": 50035, "errors": {"username": {"_errors": [{"code": "USERNAME_INVALID", "message": "Username cannot be \"here\""}]}}}

Actually, now that I look more closely at the error, it appears to be from discord itself and not your library, or am I understanding that wrong?

I am using version 0.8.4. If this has already been fixed, I apologize.

@Andre601
Copy link

This is definitely Discord.

@hypherionmc
Copy link
Author

🙄 Thought as much. So many broken things lately. Just makes no sense how they allow the user to have that username, and then not allow it as a webhook name..... Fun times

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants