fix: check if there are any embeds

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2023-05-31 07:43:11 +02:00
parent 3663f13deb
commit cd8f8e4f9b
No known key found for this signature in database
GPG key ID: E13DFD4B47127951

View file

@ -83,7 +83,7 @@ export async function expandDiscordLink(message: Message): Promise<void> {
} }
} }
if (resultEmbeds.length == 0) { if (resultEmbeds.length > 0) {
const reply = await message.reply({ const reply = await message.reply({
embeds: resultEmbeds, embeds: resultEmbeds,
allowedMentions: { repliedUser: false }, allowedMentions: { repliedUser: false },