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;