Skip to content
Functiondiscord-component-embedv1.1.0

toComponentEmbedScript

Returns the <script> tag Discord reads for a component embed, as an HTML string. Use it where you write raw HTML into the page yourself.

Throws:

toComponentEmbedScript(root: EmbedElement): string