fix issue with empty reminder's message
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-08-06 20:27:27 +02:00
parent 9166dbbb47
commit 10833d4781
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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);