aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Senjan21 <[email protected]>2020-10-03 21:28:57 +0200
committerGravatar Senjan21 <[email protected]>2020-10-03 21:28:57 +0200
commit397d29a2f51f2a02558998efe8777a9efa575a43 (patch)
tree2d0f5682dbcbea0dd36b0d0e4689b189ba979a41
parentAdd trailing comma to intents (diff)
Use invite for tracking offline presences instead of `ctx`
-rw-r--r--bot/exts/info/information.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py
index ca9895d61..0f50138e7 100644
--- a/bot/exts/info/information.py
+++ b/bot/exts/info/information.py
@@ -152,9 +152,9 @@ class Information(Cog):
channel_counts = self.get_channel_type_counts(ctx.guild)
# How many of each user status?
- py_invite = await self.bot.fetch_invite("python")
+ py_invite = await self.bot.fetch_invite(constants.Guild.invite)
online_presences = py_invite.approximate_presence_count
- offline_presences = ctx.guild.member_count - online_presences
+ offline_presences = py_invite.approximate_member_count - online_presences
embed = Embed(colour=Colour.blurple())
# How many staff members and staff channels do we have?