fix: only send expanded message link if present
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
450b28fbdf
commit
30b5293477
1 changed files with 18 additions and 16 deletions
|
@ -83,6 +83,7 @@ export async function expandDiscordLink(message: Message): Promise<void> {
|
|||
}
|
||||
}
|
||||
|
||||
if (resultEmbeds) {
|
||||
const reply = await message.reply({
|
||||
embeds: resultEmbeds,
|
||||
allowedMentions: { repliedUser: false },
|
||||
|
@ -101,4 +102,5 @@ export async function expandDiscordLink(message: Message): Promise<void> {
|
|||
collector.stop();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue