Jiralite
8162ae8ce0
test: Add toJSON() to tests ( #11321 )
...
test: fix validation
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-11-30 16:41:48 +00:00
Jiralite
ace834b274
fix: Adjust label predicates and fix buttons emoji/label behaviour ( #11317 )
...
* fix: buttons with custom id
* fix: button labels
* fix: also add refinement to link buttons
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-11-30 16:17:50 +00:00
Jiralite
c84024968e
feat: File upload support ( #11108 )
...
* build: bump discord-api-types
* feat: add support
* docs: correct examples
* fix(MappedComponentTypes): fix description
Co-authored-by: advaith <advaithj1@gmail.com >
* fix: use `z.int()`
* chore: remove errors
---------
Co-authored-by: advaith <advaithj1@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-24 10:16:05 +00:00
Jiralite
0cc92bd5b0
fix(textInput): Allow empty strings for a value ( #11182 )
...
fix: allow empty strings
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-16 13:55:15 +00:00
Jiralite
0d76f1149f
fix: Add idPredicate ( #11109 )
...
* fix: `idPredicate`
* fix: add test
* test: add negative test
2025-09-26 16:06:22 +00:00
Jiralite
b66f52f9aa
feat!: More label components and text display in modal ( #11078 )
...
BREAKING CHANGE: Modals only have adding (no setting) and splicing has been replaced with a generalised splice method to support all components.
2025-09-14 09:09:56 +01:00
Jiralite
f7c77a73de
feat(builders)!: Support select in modals ( #11034 )
...
BREAKING CHANGE: Text inputs no longer accept a label.
BREAKING CHANGE: Modals now only set labels instead of action rows.
2025-09-05 17:56:14 +01:00
Almeida
cc43dadcae
chore: bump dependencies ( #11051 )
...
* chore: bump dependencies
* build: bump discord-api-types to 0.38.22
* fix: fix builders
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-08-29 12:01:54 +00:00
Jiralite
f2fec9177f
feat: Enforce limit of URLs for link buttons ( #11011 )
...
feat: enforce limit of URLs for link buttons
2025-07-23 14:20:56 +00:00
Vlad Frangu
abc5d99ce8
feat: components v2 in builders ( #10788 )
...
* feat: thumbnail component
* chore: just a temp file to track remaining components
* feat: file component
* feat: section component
* feat: text display component
* chore: bump alpha version of dtypes
* chore: simplify ComponentBuilder base type
* feat: MediaGallery
* feat: Section builder
* chore: tests for sections
* chore: forgot you
* chore: docs
* fix: missing comma
* fix: my bad
* feat: container builder
* chore: requested changes
* chore: missed u
* chore: type tests
* chore: setId/clearId
* chore: apply suggestions from code review
* chore: unify pick
* chore: some requested changes
* chore: tests and small fixes
* chore: added tests that need fixing
* fix: tests
* chore: cleanup on isle protected
* docs: remove locale
* chore: types for new message builder
* chore: fix tests
* chore: attempt 1 at message builder assertions
* chore: apply suggestions
* Update packages/builders/src/messages/Assertions.ts
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* Update packages/builders/src/components/v2/Thumbnail.ts
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* fix: tests
* chore: fmt
* Apply suggestions from code review
Co-authored-by: Denis-Adrian Cristea <didinele.dev@gmail.com >
* chore: fix pnpm lockfile revert
---------
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Denis-Adrian Cristea <didinele.dev@gmail.com >
2025-04-23 17:29:15 +00:00
Vlad Frangu
42ce116226
chore(deps): bump discord-api-types ( #10841 )
...
* chore(deps): bump discord-api-types
* chore: tests
* chore: tests 2
* chore: replace ImageSize type with dtypes type
2025-04-22 17:12:34 +00:00
Jiralite
9a400730f5
test: Include type checks on builders ( #10692 )
...
test: include type checks on builders
2025-01-05 12:16:25 +00:00
Jiralite
51a017a14e
test: Fix builder methods in type test ( #10599 )
...
* test: fix builder methods in type test
* test: remove unused import
2024-11-17 12:18:46 +00:00
Denis Cristea
ab32f26cbb
refactor: builders ( #10448 )
...
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 <me@vladfrangu.dev >
Co-authored-by: Almeida <github@almeidx.dev >
2024-10-01 19:11:56 +03:00
Jiralite
4f59b740d0
feat: Premium buttons ( #10353 )
...
* feat: premium buttons
* docs: deprecation string
* feat(InteractionResponses): add deprecation message
* feat(builders): add tests
* chore: remove @ts-expect-errors
* test: update method name
* refactor(formatters): stricter types
* docs: deprecate method in typings
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-07-04 18:57:35 +00:00
iCrawl
48cab844d4
build: switch to bundler moduleResolution
2023-05-01 13:14:13 +02:00
Almeida
a6941d536c
feat(StringSelectMenu): add spliceOptions() ( #8937 )
...
* feat(StringSelectMenu): add `spliceOptions()`
* fix: requested changes
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-25 20:38:28 +00:00
DD
5152abf728
feat: new select menus ( #8793 )
...
* feat(builders): new select menus
* chore: better re-exporting of deprecated classes
* feat: new select menus
* chore: typings
* chore: add missing todo comment
* chore: finish updating tests
* chore: add runtime deprecation warnings
* chore: format deprecation warning
* feat(BaseInteraction): isAnySelectMenu
* chore: requested changes
* fix: deprecation comments
* chore: update @deprecated comments in typings
* chore: add tests for select menu type narrowing
* fix: bad auto imports
Co-authored-by: Julian Vennen <julian@aternos.org >
* fix: properly handle resolved members
* fix: collectors
* chore: suggested changes
Co-authored-by: Almeida <almeidx@pm.me >
* fix(typings): bad class extends
* feat(ChannelSelectMenuBuilder): validation
* chore: update todo comment
* refactor(ChannelSelectMenu): better handling of channel_types state
* chore: style nit
* chore: suggested nits
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: Julian Vennen <julian@aternos.org >
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-11-01 17:36:05 +00:00
RedGuy12
ce991dd1d8
test: rename incorrect test ( #8596 )
2022-09-08 15:08:28 +02:00
iCrawl
3b7ba4062e
chore: fix leftover eslint exceptions
2022-09-01 21:26:09 +02:00
Suneet Tipirneni
edadb9fe5d
refactor: use eslint-config-neon for packages. ( #8579 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2022-09-01 20:50:16 +02:00
Suneet Tipirneni
6a2d0d8e96
fix(selectMenu): allow json to be used for select menu options ( #8322 )
2022-07-24 15:14:33 +02:00
Almeida
b7e62380f2
test(builders): improve coverage ( #8274 )
2022-07-17 21:20:26 +02:00
Almeida
2d9dfa3c6e
fix(TextInputBuilder): parse custom_id, label, and style ( #8216 )
2022-07-03 15:35:19 +02:00
Rodry
ad75be9a9c
feat: allow builders to accept rest params and arrays ( #7874 )
...
Co-authored-by: Parbez <imranbarbhuiya.fsd@gmail.com >
Co-authored-by: Khafra <42794878+KhafraDev@users.noreply.github.com >
2022-06-05 23:29:16 +02:00
iCrawl
8d8e6c03de
feat: use vitest instead of jest for more speed
2022-06-05 01:07:10 +02:00
Suneet Tipirneni
29293d7bbb
refactor: use arrays instead of rest parameters for builders ( #7759 )
2022-04-21 18:56:10 +02:00
Suneet Tipirneni
b1d63d919a
fix: Validate select menu options ( #7566 )
...
* fix: validate select menu options
* chore: make requested changes
* refactor: make requested changes
* fix: tests
2022-03-24 20:57:53 +01:00
Suneet Tipirneni
72577c4bfd
feat: add API v10 support ( #7477 )
...
* feat: add API v10 support
* refactor: update deps
* chore: rebase fixes
2022-03-15 21:37:07 +01:00
Suneet Tipirneni
549716e4fc
refactor: Don't return builders from API data ( #7584 )
...
* refactor: don't return builders from API data
* Update packages/discord.js/src/structures/ActionRow.js
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
* fix: circular dependency
* fix: circular dependency pt.2
* chore: make requested changes
* chore: bump dapi-types
* chore: convert text input
* chore: convert text input
* feat: handle cases of unknown component types better
* refactor: refactor modal to builder
* feat: add #from for easy builder conversions
* refactor: make requested changes
* chore: make requested changes
* style: fix linting error
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: almeidx <almeidx@pm.me >
2022-03-12 19:39:23 +01:00
Almeida
dcd479767b
fix(SelectMenu): set placeholder max to 150 ( #7538 )
2022-03-10 09:00:39 +01:00
Suneet Tipirneni
ed92015634
feat: Add Modals and Text Inputs ( #7023 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Ryan Munro <monbrey@gmail.com >
Co-authored-by: Vitor <milagre.vitor@gmail.com >
2022-03-04 08:53:41 +01:00
Suneet Tipirneni
f7257f0765
feat: add missing v13 component methods ( #7466 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2022-02-18 01:04:34 +01:00
muchnameless
36173590a7
fix(components): setX should take rest parameters ( #7461 )
2022-02-15 18:31:08 +01:00
Amitoj Singh
ae0f35f51d
feat(builders): add attachment command option type ( #7203 )
2022-02-13 14:02:14 +01:00
Suneet Tipirneni
e8252ed3b9
refactor: make public builder props getters ( #7422 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2022-02-13 13:06:11 +01:00
Ben
f4953647ff
refactor(builders-methods): make methods consistent ( #7395 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2022-02-12 19:03:13 +01:00
Suneet Tipirneni
6b6222bf51
feat(components): Add unsafe message component builders ( #7387 )
2022-02-04 20:29:41 +01:00
Suneet Tipirneni
2bb40fd767
feat: add components to /builders ( #7195 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2022-01-12 20:50:08 +01:00