From 617576d72e63acc6d33c48ccbd884c92fb3c48e3 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Fri, 16 Sep 2022 17:49:36 +0300 Subject: [PATCH] error logging --- src/structure/infractions/Prune.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/structure/infractions/Prune.js b/src/structure/infractions/Prune.js index e9dc69b..26c396b 100644 --- a/src/structure/infractions/Prune.js +++ b/src/structure/infractions/Prune.js @@ -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);