-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: builders #10448
refactor: builders #10448
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10448 +/- ##
==========================================
- Coverage 35.48% 35.34% -0.14%
==========================================
Files 228 240 +12
Lines 14308 14612 +304
Branches 1254 1219 -35
==========================================
+ Hits 5077 5165 +88
- Misses 9187 9400 +213
- Partials 44 47 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
f4b8bb4
to
57cc3e7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there
packages/builders/src/components/button/mixins/URLOrCustomIdButtonMixin.ts
Outdated
Show resolved
Hide resolved
90a32c2
to
cf08a21
Compare
packages/builders/src/components/button/mixins/URLOrCustomIdButtonMixin.ts
Outdated
Show resolved
Hide resolved
cf08a21
to
7ccec6c
Compare
packages/builders/src/interactions/commands/SharedNameAndDescription.ts
Outdated
Show resolved
Hide resolved
packages/builders/src/interactions/commands/chatInput/ChatInputCommandSubcommands.ts
Outdated
Show resolved
Hide resolved
...ders/src/interactions/commands/chatInput/mixins/ApplicationCommandOptionChannelTypesMixin.ts
Outdated
Show resolved
Hide resolved
...ders/src/interactions/commands/chatInput/mixins/ApplicationCommandOptionChannelTypesMixin.ts
Outdated
Show resolved
Hide resolved
...ders/src/interactions/commands/chatInput/mixins/ApplicationCommandOptionChannelTypesMixin.ts
Show resolved
Hide resolved
packages/builders/src/interactions/commands/chatInput/options/integer.ts
Outdated
Show resolved
Hide resolved
7ccec6c
to
749e4fa
Compare
packages/builders/src/interactions/commands/SharedNameAndDescription.ts
Outdated
Show resolved
Hide resolved
749e4fa
to
f099bdf
Compare
packages/builders/src/components/button/mixins/EmojiOrLabelButtonMixin.ts
Show resolved
Hide resolved
f099bdf
to
029cd5d
Compare
packages/builders/src/interactions/commands/chatInput/options/attachment.ts
Show resolved
Hide resolved
61e4119
to
37aa751
Compare
BREAKING CHANGE: formatters export removed (prev. deprecated) BREAKING CHANGE: `SelectMenuBuilder` and `SelectMenuOptionBuilder` have been removed (prev. deprecated) BREAKING CHANGE: `EmbedBuilder` no longer takes camalCase options BREAKING CHANGE: `ActionRowBuilder` now has specialized `[add/set]X` methods as opposed to the current `[add/set]Components` BREAKING CHANGE: Removed `equals` methods BREAKING CHANGE: Sapphire -> zod for validation BREAKING CHANGE: Removed the ability to pass `null`/`undefined` to clear fields, use `clearX()` instead BREAKING CHANGE: Renamed all "slash command" symbols to instead use "chat input command" BREAKING CHANGE: Removed `ContextMenuCommandBuilder` in favor of `MessageCommandBuilder` and `UserCommandBuilder` BREAKING CHANGE: Removed support for passing the "string key"s of enums BREAKING CHANGE: Removed `Button` class in favor for specialized classes depending on the style BREAKING CHANGE: Removed nested `addX` styled-methods in favor of plural `addXs` Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com> Co-authored-by: Almeida <github@almeidx.dev>
37aa751
to
72c28d9
Compare
Please describe the changes this PR makes and why it should be merged:
Closes #8015
Change list/resolution points:
@discordjs/formatters
re-export (deprecated currently)SelectMenuBuilder
andSelectMenuOptionBuilder
aliases (deprecated currently, left-over from before we had different types of select menus)data
fieldEmbedBuilder
no longer takes in camalCase optionsEmbedBuilder
now has "nested builders" implemented for things like the author and footer.setDMPermission
ActionRowBuilder
now has specialized[add/set]X
methods as opposed to the current[add/set]Components
toJSON()
)structuredClone
clearX()
methods as opposed to taking previously inconsistentnull
orundefined
to clearequals
methods, if they're needed & desired, we can easily re-implement them (and this time on all classes too)shapeshift
tozod
, supersedes refactor: use zod in builders #10117BREAKING CHANGE: formatters export removed (prev. deprecated)
BREAKING CHANGE:
SelectMenuBuilder
andSelectMenuOptionBuilder
have been removed (prev. deprecated)BREAKING CHANGE:
EmbedBuilder
no longer takes camalCase optionsBREAKING CHANGE:
ActionRowBuilder
now has specialized[add/set]X
methods as opposed to the current[add/set]Components
BREAKING CHANGE: Removed
equals
methodsBREAKING CHANGE: Sapphire -> zod for validation
BREAKING CHANGE: Removed the ability to pass
null
/undefined
to clear fields, useclearX()
insteadBREAKING CHANGE: Renamed all "slash command" symbols to instead use "chat input command"
BREAKING CHANGE: Removed
ContextMenuCommandBuilder
in favor ofMessageCommandBuilder
andUserCommandBuilder
BREAKING CHANGE: Removed support for passing the "string key"s of enums
BREAKING CHANGE: Removed
Button
class in favor for specialized classes depending on the styleBREAKING CHANGE: Removed nested
addX
styled-methods in favor of pluraladdXs