From 7103f712e3ba939ff0126b50674fc8be05696cfe Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Thu, 7 Jul 2022 19:00:08 +0300 Subject: [PATCH] case bugfix --- src/structure/components/commands/moderation/Case.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 });