Files
discordeno/packages/utils/src/builders.ts
Matthew Hatcher 9f5e3ab9ff feat(utils): add embed builder (#3145)
* feat: add embed builder

* feat: account for if a parsed color is NaN

* feat: add code doc

* feat: add example to JSDoc

* feat: add ability to override the current embed index

* style: remove extra whitespace

* feat: add validate method logic

* feat: finish remaining todo

* fix: account for length value in the setCurrentEmbed call

* feat: removing custom error and throw generic

* feat: add initial tests

* feat: add builder object with embeds function

* feat: changing to a method instead of object

* feat: add more tests

* style: lint
2023-10-06 03:54:11 +00:00

6 lines
161 B
TypeScript

import { EmbedsBuilder } from './builders/embeds.js'
export * from './builders/embeds.js'
export const createEmbeds = (): EmbedsBuilder => new EmbedsBuilder()