From 2395aba4f76d5c6cb45c05851175fa1072126cb0 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Fri, 5 Oct 2018 10:13:10 -0500 Subject: [PATCH] Correct reference to roles --- cogs/roles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/roles.py b/cogs/roles.py index 3484e94..66c0518 100644 --- a/cogs/roles.py +++ b/cogs/roles.py @@ -71,7 +71,7 @@ class Roles: # Don't include the colour roles colour_role = re.compile("Bonfire #.+") # Simply get a list of all roles in this server and send them - entries = [r.name for r in ctx.guild.role_hierarchy[:-1] if not colour_role.match(r.name)] + entries = [r.name for r in ctx.guild.roles[1:] if not colour_role.match(r.name)] if len(entries) == 0: await ctx.send("You do not have any roles setup on this server, other than the default role!") return