This commit is contained in:
Erik 2023-12-05 21:16:40 +02:00
parent 1410e0ed43
commit c860861d27
3 changed files with 3 additions and 4 deletions

View File

@ -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)

View File

@ -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 ()