not-ilinked / Anarchy

The superior Discord API wrapper

Home Page:https://anarchyteam.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The library detects users as Webhook after the last Discord update

hunter8288 opened this issue · comments

After the last Discord update, many users have registered nicknames for themselves, and their discriminators have become zero. Now the library defines such users as Webhook, I think this needs to be fixed, but I don’t know how.

\REST\User\User\DiscordUser.cs

public DiscordUserType Type
        {
            get
            {
                if (Discriminator == 0)
                    return DiscordUserType.Webhook;
                else
                    return _bot ? DiscordUserType.Bot : DiscordUserType.User;
            }
        }
commented

will be fixed in a few years.

commented

fixed within #3366