From 3207b12835eb5ace6f292c19aa102e973ed12d41 Mon Sep 17 00:00:00 2001 From: Twentysix Date: Sun, 12 Nov 2017 19:07:55 +0100 Subject: [PATCH] [General] Fix [p]serverinfo returning the incorrect # of voice channels (#1082) --- cogs/general.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/general.py b/cogs/general.py index a33a006f4..363c30af1 100644 --- a/cogs/general.py +++ b/cogs/general.py @@ -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"),