forked from Galactic/galactic-bot
indicate expired points
This commit is contained in:
parent
150b5363c1
commit
38587d68ac
@ -161,7 +161,10 @@ class HistoryCommand extends SlashCommand {
|
||||
}
|
||||
|
||||
if (infraction.duration) string += `\n**Duration:** ${Util.humanise(Math.floor(infraction.duration/1000))}`;
|
||||
if (infraction.points) string += `\n**Points:** ${infraction.points}`;
|
||||
if (infraction.points) {
|
||||
string += `\n**Points:** ${infraction.points}`;
|
||||
if (infraction.expiration && infraction.expiration <= Date.now()) string += ' (expired)';
|
||||
}
|
||||
|
||||
string += `\n**Reason:** \`${infraction.reason ? handleReason(infraction.reason) : '`N/A`'}\``;
|
||||
if (i !== results.length - 1) string += `\n\u200b`; //Space out cases (as long as its not at the end)
|
||||
|
Loading…
Reference in New Issue
Block a user