79172504

Date: 2024-11-09 10:05:15
Score: 0.5
Natty:
Report link

The way of getting the server icon url changed. The icon is stored as an Asset in guild.icon, if an icon is set. The URL of an Asset is stored in the url field.

def get_logo_url(guild: discord.Guild) -> Optional[str]:
    if guild.icon is not None:
        return guild.icon.url
    return None
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: micharaze