This commit is contained in:
Erik 2022-08-02 11:46:18 +03:00
parent 449fb6a8aa
commit 915428f1a2
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 4 additions and 4 deletions

View File

@ -274,7 +274,7 @@ class GuildWrapper {
} }
get defaultConfig() { get defaultConfig() {
return { ...this.client.defaultConfig('GUILD') }; return { ...JSON.parse(JSON.stringify(this.client.defaultConfig('GUILD'))) };
} }
get locale() { get locale() {

View File

@ -85,9 +85,9 @@ class SettingsMigrator {
if (overrideRoles.length) { if (overrideRoles.length) {
if (!translated.ignore) { if (!translated.ignore) {
translated.ignore = { roleBypass: overrideRoles }; translated.ignore = { bypass: overrideRoles };
} else if (!translated.ignore.roleBypass) translated.ignore.roleBypass = overrideRoles; } else if (!translated.ignore.bypass) translated.ignore.bypass = overrideRoles;
else translated.ignore.roleBypass.push(...overrideRoles); else translated.ignore.bypass.push(...overrideRoles);
} }
permissions.guildId = this.guild; permissions.guildId = this.guild;