Testing if the last 20 roles can be displayed

pull/8/head
sgoudham 4 years ago
parent 76cc8e0f66
commit 1ffd3c125a

@ -136,7 +136,7 @@ class Info(commands.Cog):
role_string = f"{' **>** '.join(map(str, (role.mention for role in ctx.guild.roles[-20:])))} and **{length}** more" role_string = f"{' **>** '.join(map(str, (role.mention for role in ctx.guild.roles[-20:])))} and **{length}** more"
else: else:
# Display all the roles in the server as it is less than 20a # Display all the roles in the server as it is less than 20 roles
role_string = f"{' **>** '.join(map(str, (role.mention for role in ctx.guild.roles[1:])))}" 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 # Check if the list of emojis returned are greater than 20

Loading…
Cancel
Save