mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[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:
parent
7b825f2cd7
commit
1ad1744054
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user