Skip to content
This repository was archived by the owner on Feb 13, 2022. It is now read-only.

Commit 550473c

Browse files
committed
Use Guild.active_threads since channel.active_theads() was removed
1 parent e57d49a commit 550473c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bot/utils/helpers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ def predicate(message: discord.Message) -> bool:
6262
return thread
6363

6464
logger.info("Message not found in either cache, fetching all threads...")
65-
for thread in await channel.active_threads():
65+
for thread in await channel.guild.active_threads():
66+
if thread.parent != channel:
67+
continue
68+
6669
if await _check_first_message_referencing(thread, message_id):
6770
logger.info("Thread found in fetched threads!")
6871
return thread

0 commit comments

Comments
 (0)