even more bullshit

This commit is contained in:
Erik 2020-06-10 17:48:58 +03:00
parent 7121675251
commit 472d3334f9

View File

@ -59,6 +59,7 @@ class ModerationPointsSetting extends Setting {
const setting = message.guild._settings[this.index] || this.default[this.index]; const setting = message.guild._settings[this.index] || this.default[this.index];
// eslint-disable-next-line prefer-const
let [method, ...params] = args, let [method, ...params] = args,
index = null, index = null,
langParams = {}; langParams = {};
@ -178,10 +179,10 @@ class ModerationPointsSetting extends Setting {
inline: false inline: false
}, { }, {
name: '》Expirations', 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 inline: false
} }
] ];
} }
} }