diff --git a/src/structure/components/commands/moderation/Case.js b/src/structure/components/commands/moderation/Case.js index 0132cf0..e79d691 100644 --- a/src/structure/components/commands/moderation/Case.js +++ b/src/structure/components/commands/moderation/Case.js @@ -80,7 +80,7 @@ class CaseCommand extends SlashCommand { 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) { const duration = Math.floor(infraction.duration / 1000); description += '\n' + invoker.format(caseLengthIndex, { time: Util.humanise(duration), inSeconds: duration });