From 10aa85f1497fb6edb045dd2530b208d64b69f041 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 25 Jul 2022 01:14:48 +0300 Subject: [PATCH] migrator fix --- src/utilities/SettingsMigrator.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utilities/SettingsMigrator.js b/src/utilities/SettingsMigrator.js index 417d7a0..12676ef 100644 --- a/src/utilities/SettingsMigrator.js +++ b/src/utilities/SettingsMigrator.js @@ -335,7 +335,10 @@ class SettingsMigrator { if (autorole) settings.autorole = autorole; if (prefix) settings.prefix = prefix; - if(welcomer) settings.welcomer = welcomer; + if (welcomer) { + settings.welcomer.enabled = welcomer.enabled; + settings.welcomer.message = welcomer.message || null; + } // indexing: {enabled: false, description: result.desc },