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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user