Skip to content

Commit

Permalink
Fixed a delete message oversight
Browse files Browse the repository at this point in the history
  • Loading branch information
Taaku18 committed Oct 26, 2019
1 parent 53d9fc6 commit 07d1bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ async def send(
else:
embed.set_footer(text=self.bot.config["anon_tag"])
delete_message = not bool(message.attachments)
if delete_message and isinstance(message.channel, discord.TextChannel):
if delete_message and isinstance(destination, discord.TextChannel):
try:
await message.delete()
except Exception as e:
Expand Down

0 comments on commit 07d1bfd

Please sign in to comment.