From 629eb041f61454c2fd67629a0116f6fc8f98ba8b Mon Sep 17 00:00:00 2001 From: Choco Date: Mon, 13 Apr 2026 22:59:20 +0800 Subject: [PATCH] Use player.controls key for autoplay Replace the 'autoplay' translation key with 'player.controls.autoplay' when sending the autoplay status message. Behavior is unchanged: the setting is toggled, a localized enabled/disabled message is sent, and do_next() is called if the player isn't playing. --- voicelink/views/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voicelink/views/controller.py b/voicelink/views/controller.py index 5e3677f..7ac2189 100644 --- a/voicelink/views/controller.py +++ b/voicelink/views/controller.py @@ -279,7 +279,7 @@ class AutoPlay(ControlButton): check = not self.player.settings.get("autoplay", False) self.player.settings['autoplay'] = check - await self.send(interaction, 'autoplay', await LangHandler.get_lang(interaction.guild_id, 'common.status.enabled' if check else "common.status.disabled")) + await self.send(interaction, 'player.controls.autoplay', await LangHandler.get_lang(interaction.guild_id, 'common.status.enabled' if check else "common.status.disabled")) if not self.player.is_playing: await self.player.do_next()