[General] Fix [p]serverinfo returning the incorrect # of voice channels (#1082)

This commit is contained in:
Twentysix 2017-11-12 19:07:55 +01:00 committed by GitHub
parent 58d669d07e
commit 3207b12835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,7 +245,8 @@ class General:
total_users = len(server.members)
text_channels = len([x for x in server.channels
if x.type == discord.ChannelType.text])
voice_channels = len(server.channels) - text_channels
voice_channels = len([x for x in server.channels
if x.type == discord.ChannelType.voice])
passed = (ctx.message.timestamp - server.created_at).days
created_at = ("Since {}. That's over {} days ago!"
"".format(server.created_at.strftime("%d %b %Y %H:%M"),