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 roleBased = oldMember.roles.cache.size !== newMember.roles.cache.size;
|
||||
const { guildWrapper } = newMember;
|
||||
const oldWrapper = await guildWrapper.memberWrapper(oldMember);
|
||||
const newWrapper = await guildWrapper.memberWrapper(newMember);
|
||||
const oldWrapper = new MemberWrapper(this.client, oldMember, guildWrapper);
|
||||
const newWrapper = new MemberWrapper(this.client, newMember, guildWrapper);
|
||||
if (timeout)
|
||||
return this._logTimeoutMute(oldWrapper!, newWrapper!);
|
||||
if (roleBased)
|
||||
|
@ -47,7 +47,6 @@ class MongoDBProvider extends Provider
|
||||
.on('timeout', () => this.logger.warn('Connection timed out'))
|
||||
.on('close', () => this.logger.info('Client disconnected'))
|
||||
.on('open', () => this.logger.info('Client connected'));
|
||||
|
||||
}
|
||||
|
||||
async initialise ()
|
||||
|
Loading…
Reference in New Issue
Block a user