forked from Galactic/galactic-bot
bugfixes
This commit is contained in:
parent
0a9e688e1f
commit
b2252329e8
@ -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;
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user