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

Commit 3a803eb

Browse files
committed
Added missing author id
1 parent 0433a2e commit 3a803eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

moderation/logging/cog.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ async def on_message_edit(self, before: Message, after: Message):
184184
embed.set_author(name=str(before.author), icon_url=before.author.display_avatar.url)
185185
embed.add_field(name=t.channel, value=before.channel.mention)
186186
embed.add_field(name=t.author, value=before.author.mention)
187+
embed.add_field(name=t.author_id, value=before.author.id)
187188
embed.add_field(name=t.message_id, value=before.id)
188189
embed.add_field(name=t.url, value=before.jump_url, inline=False)
189-
embed.add_field(name=t.author_id, value=before.author.id)
190190
add_field(embed, t.old_content, old_message)
191191
add_field(embed, t.new_content, after.content)
192192
await edit_channel.send(embed=embed)
@@ -206,6 +206,7 @@ async def on_raw_message_edit(self, channel: TextChannel, message: Message):
206206
if message is not None:
207207
embed.set_author(name=str(message.author), icon_url=message.author.display_avatar.url)
208208
embed.add_field(name=t.author, value=message.author.mention)
209+
embed.add_field(name=t.author_id, value=message.author.id)
209210
embed.add_field(name=t.message_id, value=message.id)
210211
embed.add_field(name=t.url, value=message.jump_url, inline=False)
211212
add_field(embed, t.new_content, message.content)

0 commit comments

Comments
 (0)