[V3 General] Fix online user count in [p]serverinfo (#1844)

* [General] Fix online user count in [p]serverinfo

* [General] Attempt to please the black gods
This commit is contained in:
Twentysix 2018-06-10 15:25:54 +02:00 committed by Tobotimus
parent 7b825f2cd7
commit 1ad1744054

View File

@ -191,13 +191,7 @@ class General:
async def serverinfo(self, ctx):
"""Shows server's informations"""
guild = ctx.guild
online = len(
[
m.status
for m in guild.members
if m.status == discord.Status.online or m.status == discord.Status.idle
]
)
online = len([m.status for m in guild.members if m.status != discord.Status.offline])
total_users = len(guild.members)
text_channels = len(guild.text_channels)
voice_channels = len(guild.voice_channels)