Fix not sending the tweet link & embed

This commit is contained in:
Supositware 2022-11-24 20:29:09 +01:00
parent 983bfcfc9e
commit 2f7c03e011

View file

@ -176,7 +176,7 @@ export default {
const Embed = new EmbedBuilder() const Embed = new EmbedBuilder()
.setAuthor({ name: interaction.user.username, iconURL: interaction.user.displayAvatarURL() }) .setAuthor({ name: interaction.user.username, iconURL: interaction.user.displayAvatarURL() })
.setDescription(tweet) .setDescription(tweet ? tweet : 'No content.')
.addFields( .addFields(
{ name: 'Link', value: TweetLink, inline: true }, { name: 'Link', value: TweetLink, inline: true },
{ name: 'Tweet ID', value: tweetid, inline: true }, { name: 'Tweet ID', value: tweetid, inline: true },