mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Fix count of streaming members and a typo in [p]serverinfo (#3701)
This commit is contained in:
parent
497d244f95
commit
ecdcc27749
@ -245,7 +245,7 @@ class General(commands.Cog):
|
|||||||
"""
|
"""
|
||||||
Show server information.
|
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.
|
Default to False.
|
||||||
"""
|
"""
|
||||||
guild = ctx.guild
|
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 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{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{MEDIUM WHITE CIRCLE}": lambda x: x.status is discord.Status.offline,
|
||||||
"\N{LARGE PURPLE CIRCLE}": lambda x: (
|
"\N{LARGE PURPLE CIRCLE}": lambda x: any(
|
||||||
x.activity is not None and x.activity.type is discord.ActivityType.streaming
|
a.type is discord.ActivityType.streaming for a in x.activities
|
||||||
),
|
),
|
||||||
"\N{MOBILE PHONE}": lambda x: x.is_on_mobile(),
|
"\N{MOBILE PHONE}": lambda x: x.is_on_mobile(),
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user