Skip to content

Commit

Permalink
Fix avatar_url on dpy2 (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltzmax committed May 18, 2024
1 parent aff49ea commit 6a18609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions messageslog/messageslog.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ async def message_deleted(self, message: discord.Message):
for a in message.attachments
),
)
embed.set_author(name=message.author, icon_url=message.author.avatar_url)
embed.set_author(name=message.author, icon_url=message.author.display_avatar)
embed.set_footer(text=_("ID: {} • Sent at").format(message.id))
embed.add_field(name=_("Channel"), value=message.channel.mention)
try:
Expand Down Expand Up @@ -426,7 +426,7 @@ async def message_edited(self, before: discord.Message, after: discord.Message):
for a in before.attachments
),
)
embed.set_author(name=before.author, icon_url=before.author.avatar_url)
embed.set_author(name=before.author, icon_url=before.author.display_avatar)
embed.set_footer(text=_("ID: {} • Sent at").format(before.id))
try:
await logchannel.send(embed=embed)
Expand Down

0 comments on commit 6a18609

Please sign in to comment.