forked from Galactic/galactic-bot
error logging
This commit is contained in:
parent
12d39a832f
commit
617576d72e
@ -70,7 +70,9 @@ class PruneInfraction extends Infraction {
|
||||
const deleteThese = messages.splice(0, 100);
|
||||
const result = await this.target.bulkDelete(deleteThese, true); //Filtering old just incase, d.js uses Snowflake times instead of our Client's timestamp.
|
||||
if (result && result.size > 0) amount += result.size;
|
||||
} catch (error) { } //eslint-disable-line no-empty
|
||||
} catch (error) {
|
||||
this.client.logger.error(error.stack);
|
||||
} //eslint-disable-line no-empty
|
||||
|
||||
if (messages.length > 0) {
|
||||
await bulkDelete(messages);
|
||||
|
Loading…
Reference in New Issue
Block a user