fix: check if there are any embeds
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
3663f13deb
commit
cd8f8e4f9b
1 changed files with 1 additions and 1 deletions
|
@ -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 },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue