diff options
| author | 2021-08-31 15:01:10 +0200 | |
|---|---|---|
| committer | 2021-08-31 15:01:10 +0200 | |
| commit | ffda1f7069065fd4ce2b2fe781fbcb5793406f99 (patch) | |
| tree | 0a68152f289f4fd1a78386a3313d5cbce584bdfe /bot/exts/evergreen/recommend_game.py | |
| parent | Merge pull request #831 from brad90four/patch-1 (diff) | |
Migrate to Discord.py 2.0a0
Since the Discord.py repository has been archived, we can switch to the latest commit of 2.0a0, knowing no breaking change will occur (still pinned to the commit just in case).
This commit also solves two small problems due to that fix, the avatar interface changing and Embed.name disappearing. Quite a painless migration.
Diffstat (limited to 'bot/exts/evergreen/recommend_game.py')
| -rw-r--r-- | bot/exts/evergreen/recommend_game.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/bot/exts/evergreen/recommend_game.py b/bot/exts/evergreen/recommend_game.py index 35d60128..66597b59 100644 --- a/bot/exts/evergreen/recommend_game.py +++ b/bot/exts/evergreen/recommend_game.py @@ -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"]) | 
