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.
This commit is contained in:
Choco
2026-04-13 22:59:20 +08:00
parent ce6ef5d11e
commit 629eb041f6

View File

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