From 152e603742b08f28d6dd1df845ef2990930e8fff Mon Sep 17 00:00:00 2001 From: Manuel Ruwe Date: Sun, 18 Dec 2022 19:23:56 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Crash=20with=20unknown=20descrip?= =?UTF-8?q?tion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/clients/discord/discord.message.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clients/discord/discord.message.service.ts b/src/clients/discord/discord.message.service.ts index 6524b47..8a4a9c7 100644 --- a/src/clients/discord/discord.message.service.ts +++ b/src/clients/discord/discord.message.service.ts @@ -53,7 +53,7 @@ export class DiscordMessageService { text: `${date}`, }); - if (!description && description.length >= 1) { + if (description !== undefined && description.length >= 1) { embedBuilder = embedBuilder.setDescription(description); }