Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit 1025848

Browse files
committed
Fixed thread auto join
1 parent 0109276 commit 1025848

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

moderation/threads/cog.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
class ThreadsCog(Cog, name="Thread Utils"):
2828
CONTRIBUTORS = [Contributor.Defelo]
2929

30+
async def on_thread_create(self, thread: Thread):
31+
await self.on_thread_join(thread)
32+
3033
async def on_thread_join(self, thread: Thread):
3134
if await redis.exists(key := f"thread_created:{thread.id}"):
3235
return

0 commit comments

Comments
 (0)