fix?
This commit is contained in:
parent
9d2b7ffea4
commit
8c5f5dc0f2
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user