feat(discord): rename Listen Along to Play on YTM

resolve #1341
This commit is contained in:
JellyBrick
2023-10-23 00:27:43 +09:00
parent 4333891cca
commit 776cdac30d
4 changed files with 11 additions and 5 deletions

View File

@ -20,6 +20,12 @@ const setDefaultPluginOptions = (store: Conf<Record<string, unknown>>, plugin: k
};
const migrations = {
'>=2.1.3'(store: Conf<Record<string, unknown>>) {
if (store.get('plugins.discord.listenAlong')) {
store.set('plugins.discord.playOnYouTubeMusic', true);
store.delete('plugins.discord.listenAlong');
}
},
'>=2.1.0'(store: Conf<Record<string, unknown>>) {
const originalPreset = store.get('plugins.downloader.preset') as string | undefined;
if (originalPreset) {