Skip to content

Commit 4c9691b

Browse files
committed
Fixed problem with isinstance.
1 parent d73cc5e commit 4c9691b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dozer/cogs/actionlogs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ async def on_message_edit(self, before, after):
334334
"""Logs message edits."""
335335
if before.author.bot:
336336
return
337-
if before.channel.isInstance(discord.DMChannel):
337+
if isinstance(before.channel, discord.DMChannel):
338338
return
339339
if after.edited_at is not None or before.edited_at is not None:
340340
# There is a reason for this. That reason is that otherwise, an infinite spam loop occurs

0 commit comments

Comments
 (0)