mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-10-28 15:59:04 +00:00
Type hint channel.py
This commit is contained in:
1 parent
eda02c2e91
commit
2beee8be14
2 files changed
+271
-223
No files matched your search
+270
-222
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -461,7 +461,7 @@ class Guild(Hashable):
|
||||
for c in channels:
|
||||
factory, ch_type = _guild_channel_factory(c['type'])
|
||||
if factory:
|
||||
self._add_channel(factory(guild=self, data=c, state=self._state))
|
||||
self._add_channel(factory(guild=self, data=c, state=self._state)) # type: ignore
|
||||
|
||||
if 'threads' in data:
|
||||
threads = data['threads']
|
||||
|
||||
Reference in new issue
Block a user