mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -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):
|
async def serverinfo(self, ctx):
|
||||||
"""Shows server's informations"""
|
"""Shows server's informations"""
|
||||||
guild = ctx.guild
|
guild = ctx.guild
|
||||||
online = len(
|
online = len([m.status for m in guild.members if m.status != discord.Status.offline])
|
||||||
[
|
|
||||||
m.status
|
|
||||||
for m in guild.members
|
|
||||||
if m.status == discord.Status.online or m.status == discord.Status.idle
|
|
||||||
]
|
|
||||||
)
|
|
||||||
total_users = len(guild.members)
|
total_users = len(guild.members)
|
||||||
text_channels = len(guild.text_channels)
|
text_channels = len(guild.text_channels)
|
||||||
voice_channels = len(guild.voice_channels)
|
voice_channels = len(guild.voice_channels)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user