diff --git a/cogs/wynncraft/wynncraftcog.py b/cogs/wynncraft/wynncraftcog.py index fabe04e..8b2199d 100644 --- a/cogs/wynncraft/wynncraftcog.py +++ b/cogs/wynncraft/wynncraftcog.py @@ -151,7 +151,7 @@ class WynncraftCog(commands.Cog): await self._log("Add role: %s" % combat_role) await discord_member.add_roles(combat_role) - roles_to_remove = filter(lambda role: role.id in roles_combat_level and role.id != combat_role_id, discord_member.roles) + roles_to_remove = list(filter(lambda role: role.id in roles_combat_level and role.id != combat_role_id, discord_member.roles)) if roles_to_remove: await discord_member.remove_roles(roles_to_remove) await self._log("remove roles: %s" % roles_to_remove)