Skip to content

Commit 17079ad

Browse files
Merge pull request #363 from BCurbs/fix_dm_actionlogs
fixes #361
2 parents 00086b0 + 92e7ece commit 17079ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dozer/cogs/actionlogs.py

+2
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ async def on_message_edit(self, before, after):
315315
"""Logs message edits."""
316316
if before.author.bot:
317317
return
318+
if isinstance(before.channel, discord.DMChannel):
319+
return
318320
if after.edited_at is not None or before.edited_at is not None:
319321
# There is a reason for this. That reason is that otherwise, an infinite spam loop occurs
320322
guild_id = before.guild.id

0 commit comments

Comments
 (0)