aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Daniel Brown <[email protected]>2020-05-05 08:35:16 -0500
committerGravatar GitHub <[email protected]>2020-05-05 08:35:16 -0500
commitfdf2d71043c9c4c0fab7095fe9eb48ba7a036ddc (patch)
tree36562ff4ba883c822c97b147d2f70508f9426007
parentUpdate antimalware to filter txt files in cases where messages were longer th... (diff)
parentMerge pull request #922 from python-discord/bug/info/914/user-animated-avatar (diff)
Merge branch 'master' into antimalware
-rw-r--r--bot/cogs/information.py2
-rw-r--r--tests/bot/cogs/test_information.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/information.py b/bot/cogs/information.py
index 4eb36c340..ef2f308ca 100644
--- a/bot/cogs/information.py
+++ b/bot/cogs/information.py
@@ -206,7 +206,7 @@ class Information(Cog):
description="\n\n".join(description)
)
- embed.set_thumbnail(url=user.avatar_url_as(format="png"))
+ embed.set_thumbnail(url=user.avatar_url_as(static_format="png"))
embed.colour = user.top_role.colour if roles else Colour.blurple()
return embed
diff --git a/tests/bot/cogs/test_information.py b/tests/bot/cogs/test_information.py
index 6dace1080..b5f928dd6 100644
--- a/tests/bot/cogs/test_information.py
+++ b/tests/bot/cogs/test_information.py
@@ -485,7 +485,7 @@ class UserEmbedTests(unittest.TestCase):
user.avatar_url_as.return_value = "avatar url"
embed = asyncio.run(self.cog.create_user_embed(ctx, user))
- user.avatar_url_as.assert_called_once_with(format="png")
+ user.avatar_url_as.assert_called_once_with(static_format="png")
self.assertEqual(embed.thumbnail.url, "avatar url")