This commit is contained in:
Amazed 2020-09-01 00:44:11 +02:00
parent 9d2b7ffea4
commit 8c5f5dc0f2

View File

@ -153,8 +153,8 @@ class WynncraftCog(commands.Cog):
roles_to_remove = list(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: if roles_to_remove:
await discord_member.remove_roles(roles_to_remove)
await self._log("remove roles: %s" % roles_to_remove) await self._log("remove roles: %s" % roles_to_remove)
await discord_member.remove_roles(*roles_to_remove)
else: else:
await self._log("max_combat_lvl_class: %s, discord_member: %s (name: %s)" % (max_combat_lvl_class, discord_member, member_name)) await self._log("max_combat_lvl_class: %s, discord_member: %s (name: %s)" % (max_combat_lvl_class, discord_member, member_name))
except: except: