Skip to content

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

@hypherionmc

Description

@hypherionmc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions