Skip to content

Commit

Permalink
Fixed reporting membre numbers in stats
Browse files Browse the repository at this point in the history
  • Loading branch information
geirawsm committed May 10, 2024
1 parent 368d582 commit 673dc4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sausage_bot/cogs/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ def get_role_numbers(hide_bots: bool = None):
'Get roles and number of members'
log.debug(f'`hide_bots` is {hide_bots}')
roles_info = discord_commands.get_roles(
filter_zeroes=True, filter_bots=hide_bots
filter_zeroes=False, filter_bots=hide_bots
)
num_members = discord_commands.get_guild().member_count
return {
'member_count': len(roles_info),
'member_count': num_members,
'roles': roles_info
}

Expand Down

0 comments on commit 673dc4e

Please sign in to comment.