From 10833d47819f055178e18c7eb02717adb576b5c8 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 6 Aug 2023 20:27:27 +0200 Subject: [PATCH] fix issue with empty reminder's message --- src/utils/reminder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/reminder.ts b/src/utils/reminder.ts index 28ce716..d529f47 100644 --- a/src/utils/reminder.ts +++ b/src/utils/reminder.ts @@ -127,7 +127,7 @@ export const sendReminder = (client: Client, info: infoReminder, option: OptionR // Send the message in the appropriate channel // TODO: Embed let message: string; - if (info.message === null) { + if (info.message === null || info.message.length === 0) { message = loc.get("c_reminder7"); } else { message = cleanCodeBlock(info.message);