From 915428f1a2188e5af2f9ac5dfcc3a226a8b00583 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Tue, 2 Aug 2022 11:46:18 +0300 Subject: [PATCH] bugfixes --- src/structure/client/wrappers/GuildWrapper.js | 2 +- src/utilities/SettingsMigrator.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/structure/client/wrappers/GuildWrapper.js b/src/structure/client/wrappers/GuildWrapper.js index 9fa316f..169da02 100644 --- a/src/structure/client/wrappers/GuildWrapper.js +++ b/src/structure/client/wrappers/GuildWrapper.js @@ -274,7 +274,7 @@ class GuildWrapper { } get defaultConfig() { - return { ...this.client.defaultConfig('GUILD') }; + return { ...JSON.parse(JSON.stringify(this.client.defaultConfig('GUILD'))) }; } get locale() { diff --git a/src/utilities/SettingsMigrator.js b/src/utilities/SettingsMigrator.js index 1b1d39d..dd23d05 100644 --- a/src/utilities/SettingsMigrator.js +++ b/src/utilities/SettingsMigrator.js @@ -85,9 +85,9 @@ class SettingsMigrator { if (overrideRoles.length) { if (!translated.ignore) { - translated.ignore = { roleBypass: overrideRoles }; - } else if (!translated.ignore.roleBypass) translated.ignore.roleBypass = overrideRoles; - else translated.ignore.roleBypass.push(...overrideRoles); + translated.ignore = { bypass: overrideRoles }; + } else if (!translated.ignore.bypass) translated.ignore.bypass = overrideRoles; + else translated.ignore.bypass.push(...overrideRoles); } permissions.guildId = this.guild;