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

Commit 4d35c92

Browse files
committed
Fixed AttributeError
1 parent ba33b7a commit 4d35c92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

moderation/logging/cog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ async def on_message_edit(self, before: Message, after: Message):
183183
embed = Embed(title=t.message_edited, color=Colors.edit, timestamp=utcnow())
184184
embed.add_field(name=t.channel, value=before.channel.mention)
185185
embed.add_field(name=t.author, value=before.author.mention)
186-
embed.add_field(name=t.message_id, value=before.message.id)
186+
embed.add_field(name=t.message_id, value=before.id)
187187
embed.add_field(name=t.url, value=before.jump_url, inline=False)
188188
add_field(embed, t.old_content, old_message)
189189
add_field(embed, t.new_content, after.content)

0 commit comments

Comments
 (0)