fix: only reply if there are any embeds
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
41292db894
commit
752a83f159
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ export async function expandDiscordLink(message: Message): Promise<void> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (resultEmbeds) {
|
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