fix crash on citation with empty msg (only asset)
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
This commit is contained in:
parent
d3cd6e1346
commit
036d8c1d47
1 changed files with 4 additions and 1 deletions
|
@ -115,7 +115,10 @@ export default async (message: Message, client: Client) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Description as post content
|
// Description as post content
|
||||||
embed.setDescription(quoted_post?.content ?? "");
|
if (quoted_post?.content) {
|
||||||
|
// Only if content exists and length > 0
|
||||||
|
embed.setDescription(quoted_post?.content);
|
||||||
|
}
|
||||||
|
|
||||||
// Footer
|
// Footer
|
||||||
let footer = `Posté le ${showDate(
|
let footer = `Posté le ${showDate(
|
||||||
|
|
Loading…
Reference in a new issue