From 6357338e920dccb1d2dd0bacf6a0870829a47cb4 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sat, 25 Jul 2020 00:34:10 +0100 Subject: [PATCH] Testing if roles can be printed in reverse order --- cogs/info.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/info.py b/cogs/info.py index d3f3156e..585e45ab 100644 --- a/cogs/info.py +++ b/cogs/info.py @@ -133,11 +133,11 @@ class Info(commands.Cog): # Store the first 20 roles in a string called "roles" # (Skipping the first element as it's always going to be @everyone) - role_string = f"{' **>** '.join(map(str, (role.mention for role in ctx.guild.roles[1:20])))} and **{length}** more" + role_string = f"{' **>** '.join(map(str, (role.mention for role in ctx.guild.roles[::-20])))} and **{length}** more" else: - # Display all the roles in the server as it is less than 20 - role_string = f"{' **>** '.join(map(str, (role.mention for role in ctx.guild.roles[1:])))}" + # Display all the roles in the server as it is less than 20a + role_string = f"{' **>** '.join(map(str, (role.mention for role in ctx.guild.roles[::-1])))}" # Check if the list of emojis returned are greater than 20 if len(ctx.guild.emojis) > 20: