error logging

This commit is contained in:
Erik 2022-09-16 17:49:36 +03:00
parent 12d39a832f
commit 617576d72e
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -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);