1.0.3 #285 #286
@ -58,10 +58,7 @@ class LevelService:
|
||||
return
|
||||
|
||||
notification_needed = False
|
||||
for role in member.roles:
|
||||
if role.name not in level_names.to_list():
|
||||
continue
|
||||
|
||||
for role in member.roles.where(lambda r: r.name in level_names.to_list()):
|
||||
try:
|
||||
self._logger.debug(__name__, f"Try to remove role {role.name} from {member.name}")
|
||||
await member.remove_roles(role)
|
||||
|
Loading…
Reference in New Issue
Block a user