case bugfix
This commit is contained in:
parent
097b2ddf08
commit
7103f712e3
@ -80,7 +80,7 @@ class CaseCommand extends SlashCommand {
|
|||||||
message: infraction.message
|
message: infraction.message
|
||||||
});
|
});
|
||||||
|
|
||||||
if (infraction.data.seconds) description += '\n' + invoker.format(caseSlowmodeIndex, { readable: Util.humanise(infraction.data.seconds), seconds: infraction.data.seconds });
|
if (infraction.data?.seconds) description += '\n' + invoker.format(caseSlowmodeIndex, { readable: Util.humanise(infraction.data.seconds), seconds: infraction.data.seconds });
|
||||||
if (infraction.duration !== null) {
|
if (infraction.duration !== null) {
|
||||||
const duration = Math.floor(infraction.duration / 1000);
|
const duration = Math.floor(infraction.duration / 1000);
|
||||||
description += '\n' + invoker.format(caseLengthIndex, { time: Util.humanise(duration), inSeconds: duration });
|
description += '\n' + invoker.format(caseLengthIndex, { time: Util.humanise(duration), inSeconds: duration });
|
||||||
|
Loading…
Reference in New Issue
Block a user