This commit is contained in:
MapleLeaf
2021-12-16 11:48:18 -06:00
parent 803252290d
commit e709e3acb5
33 changed files with 467 additions and 437 deletions

View File

@@ -1,19 +0,0 @@
import type { ColorResolvable } from "discord.js"
import type { ReactNode } from "react"
import * as React from "react"
export type EmbedProps = {
color?: ColorResolvable
children?: ReactNode
}
export function Embed(props: EmbedProps) {
return (
<reacord-element
modifyOptions={(options) => {
options.embeds ??= []
options.embeds.push({ color: props.color })
}}
/>
)
}