Use bot.users instead of the generator, to stop the blocking call
This commit is contained in:
parent
9cccbdb8de
commit
e9a4d5aee8
|
@ -176,8 +176,7 @@ class Core:
|
|||
|
||||
# Add the normal values
|
||||
embed.add_field(name='Total Servers', value=len(self.bot.guilds))
|
||||
# TODO: Figure out how to make this next call not-blocking
|
||||
#embed.add_field(name='Total Members', value=len(set(self.bot.get_all_members())))
|
||||
embed.add_field(name='Total Members', value=len(bot.users))
|
||||
|
||||
# Count the variable values; hangman, tictactoe, etc.
|
||||
hm_games = len(self.bot.get_cog('Hangman').games)
|
||||
|
|
Loading…
Reference in a new issue