fix: possibly fixed the error?

This commit is contained in:
Seaswimmer 2023-08-08 20:17:14 -04:00
parent 2057de8f83
commit c164b68973
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -513,6 +513,8 @@ class Info(commands.Cog):
icon_url = icon.url icon_url = icon.url
elif isinstance(icon, str): elif isinstance(icon, str):
icon_url = await self.fetch_twemoji(unicode_emoji=icon) icon_url = await self.fetch_twemoji(unicode_emoji=icon)
else:
icon_url = None
except: except:
icon_url = None icon_url = None
permissions = role.permissions permissions = role.permissions