hopefully fixes some error

This commit is contained in:
Erik 2022-05-11 20:24:18 +03:00
parent 79c302ce04
commit becfa586ab
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ class EventHooker {
this.events = new Map(); this.events = new Map();
this.logger = new Logger(this); this.logger = new Logger(this);
this.safeEvents = ['componentUpdate', 'ready', 'shardReady']; this.safeEvents = ['componentUpdate', 'ready', 'shardReady', 'rateLimit', 'guildCreate'];
} }

View File

@ -17,7 +17,7 @@ class Logger {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
if (!process.send) console.log(message); if (!process.send || !process.connected) console.log(message);
else process.send({ _logger: true, message, ...opts }); else process.send({ _logger: true, message, ...opts });
//return this.client.intercom.send('logger', { message, ...opts }); //return this.client.intercom.send('logger', { message, ...opts });
} }