Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit 0433a2e

Browse files
committed
Merge branch 'feature/user-avatar-name-log' of github.com:PyDrocsid/cogs into feature/user-avatar-name-log
2 parents 21ff62e + beb18d2 commit 0433a2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

moderation/logging/cog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ async def on_raw_message_edit(self, channel: TextChannel, message: Message):
204204
embed = Embed(title=t.message_edited, color=Colors.edit, timestamp=utcnow())
205205
embed.add_field(name=t.channel, value=channel.mention)
206206
if message is not None:
207+
embed.set_author(name=str(message.author), icon_url=message.author.display_avatar.url)
207208
embed.add_field(name=t.author, value=message.author.mention)
208209
embed.add_field(name=t.message_id, value=message.id)
209210
embed.add_field(name=t.url, value=message.jump_url, inline=False)

0 commit comments

Comments
 (0)