fix: only reply if there are any embeds

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2023-05-30 19:51:16 +02:00
parent 41292db894
commit 752a83f159
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) {
if (resultEmbeds.length == 0) {
const reply = await message.reply({
embeds: resultEmbeds,
allowedMentions: { repliedUser: false },