diff --git a/src/structure/components/observers/GuildLogging.js b/src/structure/components/observers/GuildLogging.js index 5dd3f99..13d6383 100644 --- a/src/structure/components/observers/GuildLogging.js +++ b/src/structure/components/observers/GuildLogging.js @@ -707,7 +707,7 @@ class GuildLogger extends Observer { const missing = logChannel.permissionsFor(this.client.user).missing(['ViewChannel', 'EmbedLinks', 'SendMessages']); if (missing.length) - return this.client.emit('logError', { guild: wrapper, logger: 'vcLogger', reason: 'MEMBERLOG_NO_PERMS', params: { missing: missing.join(', ') } }); + return this.client.emit('logError', { guild: wrapper, logger: 'memberLogger', reason: 'MEMBERLOG_NO_PERMS', params: { missing: missing.join(', ') } }); let { join: joinMessage } = setting; joinMessage = this._replaceTags(joinMessage, member); @@ -727,7 +727,7 @@ class GuildLogger extends Observer { const missing = logChannel.permissionsFor(this.client.user).missing(['ViewChannel', 'EmbedLinks', 'SendMessages']); if (missing.length) - return this.client.emit('logError', { guild: wrapper, logger: 'vcLogger', reason: 'MEMBERLOG_NO_PERMS', params: { missing: missing.join(', ') } }); + return this.client.emit('logError', { guild: wrapper, logger: 'memberLogger', reason: 'MEMBERLOG_NO_PERMS', params: { missing: missing.join(', ') } }); let { leave: leaveMessage } = setting; leaveMessage = this._replaceTags(leaveMessage, member); @@ -749,7 +749,7 @@ class GuildLogger extends Observer { const missing = logChannel.permissionsFor(this.client.user).missing(['ViewChannel', 'EmbedLinks', 'SendMessages']); if (missing.length) - return this.client.emit('logError', { guild: wrapper, logger: 'vcLogger', reason: 'NICKLOG_NO_PERMS', params: { missing: missing.join(', ') } }); + return this.client.emit('logError', { guild: wrapper, logger: 'memberLogger', reason: 'NICKLOG_NO_PERMS', params: { missing: missing.join(', ') } }); const oldNick = oldMember.nickname || oldMember.user.username; const newNick = newMember.nickname || newMember.user.username; diff --git a/src/utilities/SettingsMigrator.js b/src/utilities/SettingsMigrator.js index dd23d05..cedc294 100644 --- a/src/utilities/SettingsMigrator.js +++ b/src/utilities/SettingsMigrator.js @@ -85,7 +85,7 @@ class SettingsMigrator { if (overrideRoles.length) { if (!translated.ignore) { - translated.ignore = { bypass: overrideRoles }; + translated.ignore = { bypass: overrideRoles, channels: [] }; } else if (!translated.ignore.bypass) translated.ignore.bypass = overrideRoles; else translated.ignore.bypass.push(...overrideRoles); } @@ -299,7 +299,8 @@ class SettingsMigrator { }; if (ignore) settings.ignore = { - channels: result.ignore || [] + channels: result.ignore || [], + bypass: [] }; if (chatlogs) settings.messages = {