mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 18:32:32 -05:00
[General] Fix [p]serverinfo returning the incorrect # of voice channels (#1082)
This commit is contained in:
@@ -245,7 +245,8 @@ class General:
|
|||||||
total_users = len(server.members)
|
total_users = len(server.members)
|
||||||
text_channels = len([x for x in server.channels
|
text_channels = len([x for x in server.channels
|
||||||
if x.type == discord.ChannelType.text])
|
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
|
passed = (ctx.message.timestamp - server.created_at).days
|
||||||
created_at = ("Since {}. That's over {} days ago!"
|
created_at = ("Since {}. That's over {} days ago!"
|
||||||
"".format(server.created_at.strftime("%d %b %Y %H:%M"),
|
"".format(server.created_at.strftime("%d %b %Y %H:%M"),
|
||||||
|
|||||||
Reference in New Issue
Block a user