diff --git a/kdb-bot/src/modules/auto_role/command/auto_role_group.py b/kdb-bot/src/modules/auto_role/command/auto_role_group.py index 7cf36c5d..324fbca0 100644 --- a/kdb-bot/src/modules/auto_role/command/auto_role_group.py +++ b/kdb-bot/src/modules/auto_role/command/auto_role_group.py @@ -78,7 +78,7 @@ class AutoRoleGroup(DiscordCommandABC): if ctx.guild is None: return - server_config: ServerConfig = self._config.get_configuration(f"ServerConfig_{ctx.guild_id}") + server_config: ServerConfig = self._config.get_configuration(f"ServerConfig_{ctx.guild.id}") if not FeatureFlagsSettings.get_flag_from_dict(server_config.feature_flags, FeatureFlagsEnum.auto_role_module): return @@ -122,7 +122,7 @@ class AutoRoleGroup(DiscordCommandABC): if ctx.guild is None: return - server_config: ServerConfig = self._config.get_configuration(f"ServerConfig_{ctx.guild_id}") + server_config: ServerConfig = self._config.get_configuration(f"ServerConfig_{ctx.guild.id}") if not FeatureFlagsSettings.get_flag_from_dict(server_config.feature_flags, FeatureFlagsEnum.auto_role_module): return @@ -188,7 +188,7 @@ class AutoRoleGroup(DiscordCommandABC): if ctx.guild is None: return - server_config: ServerConfig = self._config.get_configuration(f"ServerConfig_{ctx.guild_id}") + server_config: ServerConfig = self._config.get_configuration(f"ServerConfig_{ctx.guild.id}") if not FeatureFlagsSettings.get_flag_from_dict(server_config.feature_flags, FeatureFlagsEnum.auto_role_module): return @@ -234,7 +234,7 @@ class AutoRoleGroup(DiscordCommandABC): if ctx.guild is None: return - server_config: ServerConfig = self._config.get_configuration(f"ServerConfig_{ctx.guild_id}") + server_config: ServerConfig = self._config.get_configuration(f"ServerConfig_{ctx.guild.id}") if not FeatureFlagsSettings.get_flag_from_dict(server_config.feature_flags, FeatureFlagsEnum.auto_role_module): return @@ -292,7 +292,7 @@ class AutoRoleGroup(DiscordCommandABC): if ctx.guild is None: return - server_config: ServerConfig = self._config.get_configuration(f"ServerConfig_{ctx.guild_id}") + server_config: ServerConfig = self._config.get_configuration(f"ServerConfig_{ctx.guild.id}") if not FeatureFlagsSettings.get_flag_from_dict(server_config.feature_flags, FeatureFlagsEnum.auto_role_module): return @@ -390,7 +390,7 @@ class AutoRoleGroup(DiscordCommandABC): if ctx.guild is None: return - server_config: ServerConfig = self._config.get_configuration(f"ServerConfig_{ctx.guild_id}") + server_config: ServerConfig = self._config.get_configuration(f"ServerConfig_{ctx.guild.id}") if not FeatureFlagsSettings.get_flag_from_dict(server_config.feature_flags, FeatureFlagsEnum.auto_role_module): return