mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
correct top role string generation
This commit is contained in:
1 file changed
+3
-1
+3
-1
@@ -506,7 +506,9 @@ class Info(commands.Cog):
|
||||
"""
|
||||
|
||||
roles = sorted(interaction.guild.roles, key=lambda x: len(x.members), reverse=True)
|
||||
roles_formatted = list(map(lambda r: f"**#{m[0] + 1}** {r.mention} - {len(r.members)} brukere", roles))
|
||||
roles_formatted = list(
|
||||
map(lambda r: f"**#{r[0] + 1}** {r[1].mention} - {len(r[1].members)} brukere", enumerate(roles))
|
||||
)
|
||||
|
||||
paginator = misc_utils.Paginator(roles_formatted)
|
||||
view = discord_utils.Scroller(paginator, self.__construct_ranking_embed)
|
||||
|
||||
Reference in new issue
Block a user