diff --git a/src/client/components/Intercom.ts b/src/client/components/Intercom.ts index 46d4035..1d2b0e9 100644 --- a/src/client/components/Intercom.ts +++ b/src/client/components/Intercom.ts @@ -38,7 +38,7 @@ class Intercom .filter((c: SlashCommand) => c.type === 'command' && c.slash) .map((c) => c.shape); - if (process.env.NODE_ENV === 'development') + if (process.env.NODE_ENV === 'development') return this.send('commands', { type: 'guild', commands, clientId }); this.send('commands', { type: 'global', commands, clientId }); diff --git a/src/client/components/observers/AuditLog.ts b/src/client/components/observers/AuditLog.ts index 923394a..6588862 100644 --- a/src/client/components/observers/AuditLog.ts +++ b/src/client/components/observers/AuditLog.ts @@ -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) diff --git a/src/client/storage/providers/MongoDBProvider.ts b/src/client/storage/providers/MongoDBProvider.ts index 3de2d6f..04a64e8 100644 --- a/src/client/storage/providers/MongoDBProvider.ts +++ b/src/client/storage/providers/MongoDBProvider.ts @@ -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 ()