aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/recommend_game.py
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2021-09-03 16:28:04 +0100
committerGravatar GitHub <[email protected]>2021-09-03 16:28:04 +0100
commitcd7060835b5b0d150c6e91d75bc3227ee43db0ba (patch)
tree4264ddbb25e86184255574cfd0e8fa9bb11d7bcb /bot/exts/evergreen/recommend_game.py
parentHandle status not found with 404 picture (diff)
parentMerge pull request #839 from python-discord/android-codeblock-fix (diff)
Merge branch 'main' into teapot-support
Diffstat (limited to 'bot/exts/evergreen/recommend_game.py')
-rw-r--r--bot/exts/evergreen/recommend_game.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/recommend_game.py b/bot/exts/evergreen/recommend_game.py
index 35d60128..bdd3acb1 100644
--- a/bot/exts/evergreen/recommend_game.py
+++ b/bot/exts/evergreen/recommend_game.py
@@ -21,7 +21,7 @@ shuffle(game_recs)
class RecommendGame(commands.Cog):
"""Commands related to recommending games."""
- def __init__(self, bot: Bot) -> None:
+ def __init__(self, bot: Bot):
self.bot = bot
self.index = 0
@@ -39,7 +39,7 @@ class RecommendGame(commands.Cog):
# Creating and formatting Embed
embed = discord.Embed(color=discord.Colour.blue())
if author is not None:
- embed.set_author(name=author.name, icon_url=author.avatar_url)
+ embed.set_author(name=author.name, icon_url=author.display_avatar.url)
embed.set_image(url=game["image"])
embed.add_field(name=f"Recommendation: {game['title']}\n{game['link']}", value=game["description"])