support text for embed description

This commit is contained in:
itsMapleLeaf
2022-08-05 23:48:13 -05:00
parent 9c60c24dca
commit 6b261d647b

View File

@@ -135,6 +135,11 @@ function applyEmbedChildren(embed: APIEmbed, children: Node[]) {
if (child instanceof EmbedNode) {
applyEmbedChildren(embed, child.children)
}
if (child instanceof TextNode) {
embed.description ??= ""
embed.description += child.props.text
}
}
}