forked from Galactic/galactic-bot
bugfix
This commit is contained in:
parent
1410e0ed43
commit
c860861d27
@ -89,8 +89,8 @@ class AuditLogObserver extends Observer
|
|||||||
const timeout = oldMember.communicationDisabledUntilTimestamp !== newMember.communicationDisabledUntilTimestamp;
|
const timeout = oldMember.communicationDisabledUntilTimestamp !== newMember.communicationDisabledUntilTimestamp;
|
||||||
const roleBased = oldMember.roles.cache.size !== newMember.roles.cache.size;
|
const roleBased = oldMember.roles.cache.size !== newMember.roles.cache.size;
|
||||||
const { guildWrapper } = newMember;
|
const { guildWrapper } = newMember;
|
||||||
const oldWrapper = await guildWrapper.memberWrapper(oldMember);
|
const oldWrapper = new MemberWrapper(this.client, oldMember, guildWrapper);
|
||||||
const newWrapper = await guildWrapper.memberWrapper(newMember);
|
const newWrapper = new MemberWrapper(this.client, newMember, guildWrapper);
|
||||||
if (timeout)
|
if (timeout)
|
||||||
return this._logTimeoutMute(oldWrapper!, newWrapper!);
|
return this._logTimeoutMute(oldWrapper!, newWrapper!);
|
||||||
if (roleBased)
|
if (roleBased)
|
||||||
|
@ -47,7 +47,6 @@ class MongoDBProvider extends Provider
|
|||||||
.on('timeout', () => this.logger.warn('Connection timed out'))
|
.on('timeout', () => this.logger.warn('Connection timed out'))
|
||||||
.on('close', () => this.logger.info('Client disconnected'))
|
.on('close', () => this.logger.info('Client disconnected'))
|
||||||
.on('open', () => this.logger.info('Client connected'));
|
.on('open', () => this.logger.info('Client connected'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async initialise ()
|
async initialise ()
|
||||||
|
Loading…
Reference in New Issue
Block a user