CRBT-Team / Purplet

A framework for quickly building Discord bots + more packages relating to the Discord API, with a primary goal on a rich developer experience.
https://purplet.js.org
Apache License 2.0
64 stars 1 forks source link

separate builders to another package (`@purplet/builders`), and also re-export/add other builders #23

Closed paperdave closed 2 years ago

paperdave commented 2 years ago

Two points:

This potential package would either re-export useful builders like ButtonBuilder, or just re-implement them. I'm kind of siding on the re-implement side of things, especially since djs builders has 5 dependencies, while the builders we have made ourself only depend on discord-api-types.

Though, we probably would keep the util types OptionBuilderEntryTo* from OptionBuilder inside of purplet itself as those refer to other parts of purplet.

Clembs commented 2 years ago

Builders are now part of @purplet/utils, although not all of them are implemented (looking at ButtonBuilder and SelectMenuBuilder) but that will come soon, therefore this issue is closed because the package itself now exists.