#Problem to get roles with most members inside (Discord Bots)

1 messages · Page 1 of 1 (latest)

warm jackal
#

Then just change the min amount of users it will display based off the len of the server

keen holly
#

I can do that problem is only that all roles are displayed afterwards and no roles should be displayed with only one user so the bot should think intelligently

#

And then there is the problem that if a server has a role with only one user and I have set 10 it is not displayed

warm jackal
#

Why don't you just display the top 10 then

keen holly
#

i can do that but is it possible with the most users like just display 5 top roles or 10 top just like i said with the most users

warm jackal
#

That's what I said...

#

Display the top 10 with most users...

keen holly
#

got it

#

enumerate(roles_sorted[:10]))