In enums.py - DefaultAvatar class, there is pink = 5, which is for pink default avatar. Discord doesn't use pink avatar as default avatar and this pink = 5 breaks the formula discriminator % 5 and shows the wrong default avatar
Code
import discord
from discord.ext import commands
client = commands.Bot(command_prefix='.', self_bot=True)
@client.command()
async def default_avatar(ctx, user : discord.User):
await ctx.send(user.default_avatar)
client.run(token)
Summary
discord.py-self library uses unused pink default avatar
Reproduction Steps
In enums.py - DefaultAvatar class, there is
pink = 5
, which is for pink default avatar. Discord doesn't use pink avatar as default avatar and thispink = 5
breaks the formuladiscriminator % 5
and shows the wrong default avatarCode
Expected Results
If I use
.default_avatar Example#4881
, it will send https://cdn.discordapp.com/embed/avatars/1.pngActual Results
But it sends https://cdn.discordapp.com/embed/avatars/3.png
System Information
Checklist
Additional Information
Why did you add
pink = 5
on this commit? Am I missing something?