1
0
Fork 0
mirror of synced 2024-05-20 12:32:26 +12:00

Update the way channels are compared to work with rewrite

This commit is contained in:
Phxntxm 2017-03-27 13:57:35 -05:00
parent 20734739a8
commit 37a5fb3701

View file

@ -37,8 +37,8 @@ class Stats:
embed.add_field(name='Roles', value=len(server.roles))
# Split channels into voice and text channels
voice_channels = [c for c in server.channels if c is discord.VoiceChannel]
text_channels = [c for c in server.channels if c is discord.TextChannel]
voice_channels = [c for c in server.channels if type(c) is discord.VoiceChannel]
text_channels = [c for c in server.channels if type(c) is discord.TextChannel]
embed.add_field(name='Channels', value='{} text, {} voice'.format(len(text_channels), len(voice_channels)))
embed.add_field(name='Owner', value=server.owner.display_name)