1.0.3 #285 #286

Merged
edraft merged 5 commits from 1.0.3 into master 2023-03-30 16:55:32 +02:00
Showing only changes of commit 1960b18058 - Show all commits

View File

@ -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)