Fixed user avatar url

This commit is contained in:
Sven Heidemann 2024-01-26 12:16:13 +01:00
parent 7185b087c9
commit 8318dfe988

View File

@ -178,7 +178,7 @@ class User(TableABC):
def profile_picture_url(self, bot: DiscordBotServiceABC) -> str:
guild = bot.get_guild(self.server.discord_id)
user = guild.get_member(self._discord_id)
return None if user is None else user.avatar.url
return None if user is None or user.avatar is None else user.avatar.url
@staticmethod
def get_select_all_string() -> str: