We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 675cecf commit 844f158Copy full SHA for 844f158
core/thread.py
@@ -657,7 +657,7 @@ async def find(
657
658
try:
659
thread = self.cache[recipient_id]
660
- if not self.bot.get_channel(thread.channel.id): # deleted channel
+ if not thread.channel or not self.bot.get_channel(thread.channel.id):
661
self.bot.loop.create_task(
662
thread.close(
663
closer=self.bot.user, silent=True, delete_channel=False
0 commit comments