From ecdcc27749faa8181bc8eb471c49d405e4744108 Mon Sep 17 00:00:00 2001 From: PredaaA <46051820+PredaaA@users.noreply.github.com> Date: Sat, 28 Mar 2020 20:15:16 +0100 Subject: [PATCH] Fix count of streaming members and a typo in `[p]serverinfo` (#3701) --- redbot/cogs/general/general.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/redbot/cogs/general/general.py b/redbot/cogs/general/general.py index 7c11df5ed..6eb0d034f 100644 --- a/redbot/cogs/general/general.py +++ b/redbot/cogs/general/general.py @@ -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(), }