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 35d75bd commit f5bf8b8Copy full SHA for f5bf8b8
bot.py
@@ -438,6 +438,9 @@ async def on_guild_channel_delete(self, channel):
438
if mod == self.user:
439
return
440
441
+ if not isinstance(channel, discord.TextChannel):
442
+ return
443
+
444
thread = await self.threads.find(channel=channel)
445
if not thread:
446
core/thread.py
@@ -503,7 +503,7 @@ async def _find_from_channel(self, channel):
503
if user_id in self.cache:
504
return self.cache[user_id]
505
506
- recipient = self.bot.get_user(user_id) # this could be None
+ recipient = self.bot.get_user(user_id)
507
if recipient is None:
508
self.cache[user_id] = thread = Thread(self, user_id, channel)
509
else:
0 commit comments