Fix count of streaming members and a typo in [p]serverinfo (#3701)

This commit is contained in:
PredaaA 2020-03-28 20:15:16 +01:00 committed by GitHub
parent 497d244f95
commit ecdcc27749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,7 +245,7 @@ class General(commands.Cog):
"""
Show server information.
`details`: Toggle it to `True` to show more information about this server.
`details`: Shows more information when set to `True`.
Default to False.
"""
guild = ctx.guild
@ -305,8 +305,8 @@ class General(commands.Cog):
"\N{LARGE ORANGE CIRCLE}": lambda x: x.status is discord.Status.idle,
"\N{LARGE RED CIRCLE}": lambda x: x.status is discord.Status.do_not_disturb,
"\N{MEDIUM WHITE CIRCLE}": lambda x: x.status is discord.Status.offline,
"\N{LARGE PURPLE CIRCLE}": lambda x: (
x.activity is not None and x.activity.type is discord.ActivityType.streaming
"\N{LARGE PURPLE CIRCLE}": lambda x: any(
a.type is discord.ActivityType.streaming for a in x.activities
),
"\N{MOBILE PHONE}": lambda x: x.is_on_mobile(),
}