mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 12:18:54 -05:00
[General] Fix [p]serverinfo returning the incorrect # of voice channels (#1082)
This commit is contained in:
parent
58d669d07e
commit
3207b12835
@ -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"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user