Skip to content

Commit d183d03

Browse files
authored
Merge pull request #1887 from python-discord/fix-guild-attr-error
Fix attr error since asset attrs have changed in 2.0
2 parents 01a823a + 1895fe6 commit d183d03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/exts/moderation/modlog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ async def on_guild_update(self, before: discord.Guild, after: discord.Guild) ->
378378
await self.send_log_message(
379379
Icons.guild_update, Colour.blurple(),
380380
"Guild updated", message,
381-
thumbnail=after.icon_url_as(format="png")
381+
thumbnail=after.icon.with_static_format("png")
382382
)
383383

384384
@Cog.listener()

0 commit comments

Comments
 (0)