await thumbnail fetch
All checks were successful
Build and Push Docker Image / build (push) Successful in 12s

This commit is contained in:
Corban-Lee Jones 2024-12-06 13:12:40 +00:00
parent f7f2401174
commit 4e42a07b27

View File

@ -40,8 +40,6 @@ class ZomboidUser:
data = response.json()
avatar_url = data["response"]["players"][0]["avatar"]
log.debug(data)
log.debug(avatar_url)
return avatar_url
@ -132,7 +130,7 @@ class ConsoleCog(commands.Cog):
description="Player has joined the server",
colour=Colour.brand_green()
)
embed.set_thumbnail(url=user.get_steam_profile_picture(self.bot.steam_api_key))
embed.set_thumbnail(url=await user.get_steam_profile_picture(self.bot.steam_api_key))
await channel.send(embed=embed)
@ -166,7 +164,7 @@ class ConsoleCog(commands.Cog):
description="Player has left the server",
colour=Colour.brand_red()
)
embed.set_thumbnail(url=user.get_steam_profile_picture(self.bot.steam_api_key))
embed.set_thumbnail(url=await user.get_steam_profile_picture(self.bot.steam_api_key))
await channel.send(embed=embed)