Skip to content

Commit 4587171

Browse files
committed
Use channel check instead for delete
1 parent 7c82316 commit 4587171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ async def send(
735735
else:
736736
embed.set_footer(text=self.bot.config["anon_tag"])
737737
delete_message = not bool(message.attachments)
738-
if delete_message and isinstance(destination, discord.TextChannel):
738+
if delete_message and destination == self.channel:
739739
try:
740740
await message.delete()
741741
except Exception as e:

0 commit comments

Comments
 (0)