Skip to content
This repository was archived by the owner on Feb 13, 2022. It is now read-only.

Commit 0a1c75a

Browse files
committed
use User.display_avatar, since User.avatar can be None now
1 parent 09cdaf1 commit 0a1c75a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ async def send_log(self, title: str, details: str = None) -> None:
117117
return
118118

119119
embed = Embed(description=details)
120-
embed.set_author(name=title, icon_url=self.user.avatar.url)
120+
embed.set_author(name=title, icon_url=self.user.display_avatar.url)
121121

122122
await dev_log.send(embed=embed)
123123

0 commit comments

Comments
 (0)