From 248d47c280b62ec0c06df5dc3fd4b70d70a106f6 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Mon, 12 Feb 2024 14:59:36 +0100 Subject: [PATCH] Fixed update level permission by db state on level seeding --- bot/src/modules/level/level_seeder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/src/modules/level/level_seeder.py b/bot/src/modules/level/level_seeder.py index 9d30c0e8..9f296c30 100644 --- a/bot/src/modules/level/level_seeder.py +++ b/bot/src/modules/level/level_seeder.py @@ -118,7 +118,7 @@ class LevelSeeder(DataSeederABC): __name__, f"Moved {role.name} from {role.position} to {new_position}", ) - await role.edit(permissions=level.permissions, position=new_position) + await role.edit(permissions=Permissions(level.permissions), position=new_position) except Exception as e: self._logger.error(__name__, f"Cannot change position of {role.name}", e)