await thumbnail fetch
All checks were successful
Build and Push Docker Image / build (push) Successful in 12s
All checks were successful
Build and Push Docker Image / build (push) Successful in 12s
This commit is contained in:
parent
f7f2401174
commit
4e42a07b27
@ -40,8 +40,6 @@ class ZomboidUser:
|
|||||||
|
|
||||||
data = response.json()
|
data = response.json()
|
||||||
avatar_url = data["response"]["players"][0]["avatar"]
|
avatar_url = data["response"]["players"][0]["avatar"]
|
||||||
log.debug(data)
|
|
||||||
log.debug(avatar_url)
|
|
||||||
return avatar_url
|
return avatar_url
|
||||||
|
|
||||||
|
|
||||||
@ -132,7 +130,7 @@ class ConsoleCog(commands.Cog):
|
|||||||
description="Player has joined the server",
|
description="Player has joined the server",
|
||||||
colour=Colour.brand_green()
|
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)
|
await channel.send(embed=embed)
|
||||||
|
|
||||||
@ -166,7 +164,7 @@ class ConsoleCog(commands.Cog):
|
|||||||
description="Player has left the server",
|
description="Player has left the server",
|
||||||
colour=Colour.brand_red()
|
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)
|
await channel.send(embed=embed)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user