From 9201ee730f7133570870685c8614b2cfc6b0dd56 Mon Sep 17 00:00:00 2001 From: Choco <94597336+ChocoMeow@users.noreply.github.com> Date: Sun, 23 Nov 2025 18:33:15 +0800 Subject: [PATCH] fix: use correct disabled_vote key Updated references to 'common.status.disabled_vote' to use 'disabled_vote' directly in the settings cog. This simplifies the settings structure and ensures consistency when toggling and displaying the voting system status. --- cogs/settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/settings.py b/cogs/settings.py index 46939fc..c0c7663 100644 --- a/cogs/settings.py +++ b/cogs/settings.py @@ -122,8 +122,8 @@ class Settings(commands.Cog, name="settings"): async def bypassvote(self, ctx: commands.Context): "Toggles voting system." settings = await MongoDBHandler.get_settings(ctx.guild.id) - toggle = settings.get('common.status.disabled_vote', True) - await MongoDBHandler.update_settings(ctx.guild.id, {"$set": {'common.status.disabled_vote': not toggle}}) + toggle = settings.get('disabled_vote', True) + await MongoDBHandler.update_settings(ctx.guild.id, {"$set": {'disabled_vote': not toggle}}) await send_localized_message(ctx, 'settings.actions.bypassVote', await LangHandler.get_lang(ctx.guild.id, "common.status.enabled" if not toggle else "common.status.disabled")) @settings.command(name="view", aliases=get_aliases("view")) @@ -145,7 +145,7 @@ class Settings(commands.Cog, name="settings"): settings.get('lang', LangHandler._default_lang), settings.get('controller', True), dj_role.name if dj_role else 'None', - settings.get('common.status.disabled_vote', False), + settings.get('disabled_vote', False), settings.get('24/7', False), settings.get('volume', 100), format_ms(settings.get('played_time', 0) * 60 * 1000),