Skip to content

Commit

Permalink
fix: snipe didn't work in threads
Browse files Browse the repository at this point in the history
  • Loading branch information
deadaf committed Nov 28, 2023
1 parent 73359c4 commit c9ddb6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cogs/utility/events/autopurge.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ async def on_message_delete(self, message: discord.Message):
channel = message.channel
content = message.content if message.content else "*[Content Unavailable]*"

if not channel.type == discord.ChannelType.text:
if not channel.type in (

This comment has been minimized.

Copy link
@rtk-rnjn

rtk-rnjn Dec 1, 2023

Contributor

not X in Y 👎
X not in Y 👍

discord.ChannelType.text,
discord.ChannelType.private_thread,
discord.ChannelType.public_thread,
):
return

await Snipe.update_or_create(
Expand Down

0 comments on commit c9ddb6c

Please sign in to comment.