bugfixes
This commit is contained in:
parent
449fb6a8aa
commit
915428f1a2
@ -274,7 +274,7 @@ class GuildWrapper {
|
||||
}
|
||||
|
||||
get defaultConfig() {
|
||||
return { ...this.client.defaultConfig('GUILD') };
|
||||
return { ...JSON.parse(JSON.stringify(this.client.defaultConfig('GUILD'))) };
|
||||
}
|
||||
|
||||
get locale() {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user