From 752a83f15991a23e750b7769111704692f9bfd6e Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Tue, 30 May 2023 19:51:16 +0200 Subject: [PATCH] fix: only reply if there are any embeds Signed-off-by: Sefa Eyeoglu --- src/utils/resolveMessage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/resolveMessage.ts b/src/utils/resolveMessage.ts index f06ceee..6358d23 100644 --- a/src/utils/resolveMessage.ts +++ b/src/utils/resolveMessage.ts @@ -83,7 +83,7 @@ export async function expandDiscordLink(message: Message): Promise { } } - if (resultEmbeds) { + if (resultEmbeds.length == 0) { const reply = await message.reply({ embeds: resultEmbeds, allowedMentions: { repliedUser: false },