Embed
The Embed component allows you to create rich embeds for Discord messages. Here’s how you can use it:
import { Embed } from "reaccord"
function MyEmbed() { return ( <Embed color="Green"> <Embed.Title>Title</Embed.Title> <Embed.Field title="Field 1">Value 1</Embed.Field> <Embed.Field title="Field 2">Value 2</Embed.Field> {/* ... Add more components */} </Embed> )}
Props:
children
: Content of the embed. Can includeEmbed.Title
,Embed.Field
,Embed.Thumbnail
, etc…url
: URL to link the embed to.timestamp
: Timestamp to display in the footer.color
: Color of the embed. Accepts Discord color constants or hex codes.