mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Fix Guild.fetch_channel not working for threads
This commit is contained in:
2 files changed
+13
-5
No files matched your search
@@ -2038,3 +2038,10 @@ def _threaded_channel_factory(channel_type: int):
|
||||
if value in (ChannelType.private_thread, ChannelType.public_thread, ChannelType.news_thread):
|
||||
return Thread, value
|
||||
return cls, value
|
||||
|
||||
|
||||
def _threaded_guild_channel_factory(channel_type: int):
|
||||
cls, value = _guild_channel_factory(channel_type)
|
||||
if value in (ChannelType.private_thread, ChannelType.public_thread, ChannelType.news_thread):
|
||||
return Thread, value
|
||||
return cls, value
|
||||
Reference in new issue
Block a user