forked from Galactic/galactic-bot
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)
|
||||
.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 });
|
||||
|
@ -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