From 472d3334f9477e2bd4f119629f7f3f9d0b37f301 Mon Sep 17 00:00:00 2001 From: Navy Date: Wed, 10 Jun 2020 17:48:58 +0300 Subject: [PATCH] even more bullshit --- .../components/settings/moderation/ModerationPoints.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/structure/client/components/settings/moderation/ModerationPoints.js b/structure/client/components/settings/moderation/ModerationPoints.js index d6ecab8..c6df43b 100644 --- a/structure/client/components/settings/moderation/ModerationPoints.js +++ b/structure/client/components/settings/moderation/ModerationPoints.js @@ -59,6 +59,7 @@ class ModerationPointsSetting extends Setting { const setting = message.guild._settings[this.index] || this.default[this.index]; + // eslint-disable-next-line prefer-const let [method, ...params] = args, index = null, langParams = {}; @@ -178,10 +179,10 @@ class ModerationPointsSetting extends Setting { inline: false }, { name: '》Expirations', - value: Object.keys(setting.expirations).map(key => `\`${key}: ${this.client.resolver.timeAgo(setting.expirations[key])}\``).join(', '), + value: Object.keys(setting.expirations).map(key => `\`${key}: ${setting.expirations[key] ? this.client.resolver.timeAgo(setting.expirations[key]): 'Never'}\``).join(', '), inline: false } - ] + ]; } }