embed() declares an embed, from any file of src/. It takes the embed itself, or a function that returns one.
src/components/welcome.ts
embed()
src/. Give it the embed itself when it always looks the same, or a function of what it shows.
A static embed is checked against the limits of Discord when the file loads; the embed a function returns is checked when the message is sent.
EmbedDeclaration
embed() returns: a declaration the framework finds in the exports of a file. Import it where you send a message: embeds: [welcome({ member })], or embeds: [rules] for an embed that always looks the same.
The embeds of a message take an Embed or an EmbedDeclaration<[]>: an embed that needs arguments must be called.