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/snakes/_converter.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/snakes/_converter.py')
| -rw-r--r-- | bot/exts/evergreen/snakes/_converter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/snakes/_converter.py b/bot/exts/evergreen/snakes/_converter.py index c8d1909b..75212107 100644 --- a/bot/exts/evergreen/snakes/_converter.py +++ b/bot/exts/evergreen/snakes/_converter.py @@ -53,7 +53,7 @@ class Snake(Converter): embed = discord.Embed( title="Found multiple choices. Please choose the correct one.", colour=0x59982F) - embed.set_author(name=ctx.author.display_name, icon_url=ctx.author.avatar_url) + embed.set_author(name=ctx.author.display_name, icon_url=ctx.author.display_avatar.url) name = await disambiguate(ctx, get_potential(all_names), timeout=timeout, embed=embed) return names.get(name, name) |