fixed issue with guild icons

This commit is contained in:
Seaswimmer 2023-03-03 14:01:26 -05:00
parent 45ecf3eecb
commit 2f020d3425

View file

@ -75,8 +75,8 @@ class Info(commands.Cog):
)
)
if guild.icon:
data.set_author(name=guild.name, url=guild.icon)
data.set_thumbnail(url=guild.icon)
data.set_author(name=guild.name, url=str(guild.icon_url))
data.set_thumbnail(url=str(guild.icon_url))
else:
data.set_author(name=guild.name)
else:
@ -163,7 +163,7 @@ class Info(commands.Cog):
else None,
)
if guild.icon:
data.set_thumbnail(url=guild.icon)
data.set_thumbnail(url=str(guild.icon_url))
data.add_field(name=_("Members:"), value=member_msg)
data.add_field(
name=_("Channels:"),