mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Fix crashing for now when a category is created.
A full implementation will come later.
This commit is contained in:
1 parent
8912625428
commit
1367877d36
2 files changed
+7
-2
No files matched your search
+3
-2
@@ -249,10 +249,11 @@ class Guild(Hashable):
|
||||
for c in channels:
|
||||
if c['type'] == ChannelType.text.value:
|
||||
channel = TextChannel(guild=self, data=c, state=self._state)
|
||||
else:
|
||||
self._add_channel(channel)
|
||||
elif c['type'] == ChannelType.voice.value:
|
||||
channel = VoiceChannel(guild=self, data=c, state=self._state)
|
||||
self._add_channel(channel)
|
||||
|
||||
self._add_channel(channel)
|
||||
|
||||
@property
|
||||
def channels(self):
|
||||
|
||||
Reference in new issue
Block a user