bugfix
This commit is contained in:
parent
1410e0ed43
commit
c860861d27
@ -38,7 +38,7 @@ class Intercom
|
|||||||
.filter<SlashCommand>((c: SlashCommand) => c.type === 'command' && c.slash)
|
.filter<SlashCommand>((c: SlashCommand) => c.type === 'command' && c.slash)
|
||||||
.map((c) => c.shape);
|
.map((c) => c.shape);
|
||||||
|
|
||||||
if (process.env.NODE_ENV === 'development')
|
if (process.env.NODE_ENV === 'development')
|
||||||
return this.send('commands', { type: 'guild', commands, clientId });
|
return this.send('commands', { type: 'guild', commands, clientId });
|
||||||
|
|
||||||
this.send('commands', { type: 'global', commands, clientId });
|
this.send('commands', { type: 'global', commands, clientId });
|
||||||
|
@ -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