show infraction points and expiration

This commit is contained in:
Erik 2020-08-13 23:46:15 +03:00
parent 29ffc9e364
commit 15286ab227

View File

@ -99,8 +99,8 @@ class CaseCommand extends Command {
if (infraction.duration !== null) description += '\n' + message.format(caseLengthIndex, { time: this.client.resolver.timeAgo(infraction.duration), inSeconds: infraction.duration }); if (infraction.duration !== null) description += '\n' + message.format(caseLengthIndex, { time: this.client.resolver.timeAgo(infraction.duration), inSeconds: infraction.duration });
if (guild._settings.moderationPoints.enabled) description += '\n' + message.format('C_CASE_MODPOINTS', { if (guild._settings.moderationPoints.enabled) description += '\n' + message.format('C_CASE_MODPOINTS', {
points, points: infraction.points,
expires expires: infraction.expiration
}) })
description += '\n\n' + message.format('C_CASE_REASON', { reason: infraction.reason }); description += '\n\n' + message.format('C_CASE_REASON', { reason: infraction.reason });