fix issue with empty reminder's message
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
This commit is contained in:
parent
9166dbbb47
commit
10833d4781
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ export const sendReminder = (client: Client, info: infoReminder, option: OptionR
|
||||||
// Send the message in the appropriate channel
|
// Send the message in the appropriate channel
|
||||||
// TODO: Embed
|
// TODO: Embed
|
||||||
let message: string;
|
let message: string;
|
||||||
if (info.message === null) {
|
if (info.message === null || info.message.length === 0) {
|
||||||
message = loc.get("c_reminder7");
|
message = loc.get("c_reminder7");
|
||||||
} else {
|
} else {
|
||||||
message = cleanCodeBlock(info.message);
|
message = cleanCodeBlock(info.message);
|
||||||
|
|
Loading…
Reference in a new issue