aboutsummaryrefslogtreecommitdiff
path: root/discord/guild.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/guild.py')
-rw-r--r--discord/guild.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/discord/guild.py b/discord/guild.py
index 5d7cb134..ed2860bd 100644
--- a/discord/guild.py
+++ b/discord/guild.py
@@ -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):