Skip to content
Snippets Groups Projects
Commit 2232794e authored by dnns01's avatar dnns01
Browse files

Fixed !stats command

parent a233c81c
Branches
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ class RolesCog(commands.Cog):
def get_key(self, role):
""" Get the key for a given role. This role is used for adding or removing a role from a user. """
for key, role_name in self.assignable_roles.items():
for key, role_name in self.assignable_roles[0].items():
if role_name == role.name:
return key
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment