Skip to content

Commit

Permalink
fix non setDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
zeteticl committed Jan 4, 2025
1 parent cc3d570 commit 30845ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/discord_bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,11 @@ async function convQuotes(text = "") {

}
}
embed.setDescription(text)
if (text && text.trim().length > 0) {
embed.setDescription(text)
} else {
embed.setDescription(" - ")
}
embeds.unshift(embed);
return embeds;

Expand Down

0 comments on commit 30845ed

Please sign in to comment.