Jiralite
3cb3ecae21
docs(BaseSelectMenu): Adjust maximum wording ( #11249 )
...
docs(BaseSelectMenu): adjust wording
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-11-05 19:30:36 +00:00
Naiyar
06a75e80bc
docs: clarify wording for maximum values ( #11231 )
...
* docs(FileUpload): clarify wording
* chore: missed instances
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-11-01 14:33:34 +00:00
Jiralite
83ec0fdcdf
refactor: Use idPredicate for file uploads ( #11195 )
...
refactor: use `idPredicate`
2025-10-24 10:45:37 +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
Naiyar
1a305fe4ad
build: bump discord-api-types to 0.38.30 ( #11178 )
...
* build: bump discord-api-types to 0.38.30
* chore: slap the errors
2025-10-14 18:02:10 +00:00
Vlad Frangu
05224e78ec
fix(builders): correct assertion for select menu string min/max values ( #11139 )
...
* fix(builders): correct assertion for select menu string min/max values
* fix: actually fix the logic
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-10-05 15:28:34 +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
beed098bf2
fix: Add type to some predicates ( #11110 )
...
fix: add `type`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-09-22 09:10:20 +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
5d5a6945e4
build: Update discord-api-types to 0.38.23 ( #11095 )
...
build: update
2025-09-10 08:30:00 +00: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
Jiralite
aee6d311c0
fix(Container): Use the same discord-api-types version ( #10999 )
...
fix(Container): use v10
2025-07-17 07:38:16 +00:00
Jiralite
1dfc511e4f
fix(contextMenu): Remove regular expression validation ( #10994 )
...
* fix: remove regex validation
* test: remove incorrect test
This is fine to create.
* fix: guard against whitespace
2025-07-16 15:47:29 +00:00
Almeida
de2b2dd330
chore: bump dependencies ( #10967 )
2025-07-13 19:39:47 +00:00
Almeida
a5bd4cfe73
feat!: use zod v4 ( #10922 )
...
* feat: zod 4
* feat: zod v3, but v4
feat: validation error class
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
* chore: bump
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
2025-07-03 01:02:45 +01:00
Jiralite
536a546514
fix(containerPredicate): Remove maximum limit ( #10959 )
...
fix: remove maximum limit
2025-06-30 14:24:41 +00:00
Almeida
e094faf225
docs: add missing, fix existing ( #10842 )
...
* docs: add missing, fix existing
* refactor: new stuff
* fix: requested changes
* fix: use `@link` for `@mixes`
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
* chore: disable bad eslint rule
---------
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-06-02 17:35:43 +00:00
Almeida
78d512c347
docs: export all visible symbols ( #10760 )
...
* docs: export all visible symbols
* fix: discord.js except raw
* refactor: remove raw data types
* docs: add back discord.js tsdoc file
* refactor: remove underscores
* fix: merge
* docs(RPCRedis): make `promises` as internal
---------
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-26 17:41:08 +00:00
Almeida
8f375275ca
fix: message builders ( #10802 )
...
* fix: message builders
- Added `clearParse`, `clearRoles`, and `clearUsers` methods to the `AllowedMentionsBuilder`, since passing an empty array and omitting the these fields behave differently
- Strictened assertions
- Removed `AttachmentBuilder#clearId`, as it is a required field
- Added missing `MessageBuilder#setEmbeds`
- Added missing `MessageReferenceBuilder#setFailIfNotExists`
- Improve/fix documentation
- Consistency™️
* fix: updater functions return type
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-25 20:52:00 +00:00
Qjuh
5a4de953fa
fix: generateSplitDocumentation for external docs on main ( #10827 )
...
* fix: generateSplitDocumentation for external docs on main
* fix: remove console.log
* chore: apply suggestion
Co-authored-by: Almeida <github@almeidx.dev >
* fix: mixes tag
* chore: docs include collection
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-24 19:19:52 +00:00
Sammy
891fe277bf
fix(builders): export container component ( #10844 )
2025-04-24 17:13:34 +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
Noel
f580de8025
chore: upgrade deps ( #10824 )
2025-04-05 13:18:56 +02:00
Jiralite
4d19426810
fix(textInput): Value must be at least 1 character in length ( #10805 )
...
fix(textInput): value must be at least 1 in length
2025-03-17 15:31:44 +00:00
Denis-Adrian Cristea
09beb8a6a0
feat: message builder ( #10793 )
...
* feat: attachment builder
* feat: message builder
* chore: nits
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* fix: nonce assertion
* chore: strip bad method
* chore: nit
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* chore: nits
* chore: address final review
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-03-14 08:09:15 +00:00
Almeida
ab6a69401e
docs: remove hardcoded locale from links ( #10794 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-03-07 21:23:42 +00:00
Jiralite
12638cd43c
fix(embed): Allow attachment protocols for thumbnails and images ( #10795 )
...
fix(embed): allow attachment protocols for thumbnails and images
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-03-07 20:19:14 +00:00
Denis-Adrian Cristea
28a945069f
fix(ContextMenuCommandBuilder): allow emoji in name ( #10790 )
...
* fix(ContextMenuCommandBuilder): allow emoji in name
* test: add emoji from 16.0
https://emojipedia.org/fingerprint
* chore: non rule-breaking regex
* feat: use simplified regex
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
* style: prettier
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
2025-03-05 12:15:54 +00:00
Almeida
d1f56ffb2a
fix: poll builders ( #10783 )
...
* fix: poll builders
- Fixed validations
- Added missing documentation
- Removed redundant code
- Consistency™️
* fix: tests
* feat: missing answers test
2025-03-01 14:57:00 +00:00
TÆMBØ
88bfeaab22
feat: PollBuilder ( #10324 )
...
* Add PollBuilder
* Add exports
* Update typings
* Update validations
* Use correct enum validator method
* Fix assertion, formatting
* Add tests
* Fix assertion
* Add JSDoc, format
* Make requested changes
* Remove unnecessary blank import
* Add support for PollBuilder in mainlib discord.js
* Add types, fix formatting
* Correct typings & assertions for poll answer emojis
* Improve typings readability
* Add JSDoc typings for overrides
* Add types for using PollBuilder in message payload
* Add tests, allow passing Emoji instance to emoji option
* Fix formatting
* Update max poll duration
* refactor: implement builders v2 pattern
2025-02-28 10:07:27 +00:00
Almeida
2183c5eebb
fix(EmbedFieldBuilder): allow empty name and value ( #10745 )
2025-02-10 21:54:31 +00:00
Almeida
a6685a319e
build: bump dependencies ( #10671 )
2024-12-31 21:31:34 +01:00
Jiralite
a69600546a
docs: Typos ( #10628 )
...
chore: typos
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-11-29 17:39:24 +00:00
Jiralite
9d62ff57d6
refactor(commands): Use Locale over LocaleString ( #10624 )
...
* refactor: use `Locale`
* test: update `LocaleString` tests
2024-11-28 17:33:40 +00:00
Qjuh
62fb9de9c9
docs: allow @mixes TSDoc tag for documenting mixins ( #10545 )
2024-10-16 02:31:04 +02:00
Denis Cristea
8ab4124ef9
feat: implement zod-validation-error ( #10534 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-10-06 14:43:06 +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
Synbulat Biishev
fc0b6f7f8e
feat: user-installable apps ( #10227 )
...
* feat: inital user-installable apps support
* docs: add deprecation warnings
* feat: add equality checks
* fix: possibly `null` cases
* docs: tweaks
* docs: add deprecations
* fix(ApplicationCommandManager): amend transform command
* feat: properly support `integration_types_config`
* docs: add .
* docs: minor changes
* featBaseApplicationCommandData): update type
* style: prettier
* chore: fix issues
* fix: correct casing
Co-authored-by: Superchupu <53496941+SuperchupuDev@users.noreply.github.com >
* refactor: remove console log
* fix: use case that satisfies `/core` and the API
* fix: `oauth2InstallParams` property is not nullable
* fix: do not convert keys into strings
* feat: update transforer to return the full map
* feat: update transformers
* feat: add `PartialGroupDMMessageManager `
Hope this is not a breaking change
* docs: fix type
* feat: add approximate count of users property
* fix: messageCreate doesn't emit in PartialGroupDMChannel
* fix: add GroupDM to TextBasedChannelTypes
* feat: add NonPartialGroupDMChannel helper
* fix: expect PartialGroupDMChannel
* feat: narrow generic type
* test: exclude PartialGroupDMChannel
* feat: use structure's channel type
* docs: narrow type
* feat: remove transformer
* refactor: remove unnecessary parse
* feat: add APIAutoModerationAction transformer
* fix: use the right transformer during recursive parsing of interaction metadata
* docs: add external types
* docs: add `Message#interactionMetadata` property docs
* docs: make nullable
* docs: add d-docs link
* docs: use optional
* fix: make `oauth2InstallParams` nullable
* types: update `IntegrationTypesConfiguration`
Co-authored-by: Almeida <github@almeidx.dev >
* docs: update `IntegrationTypesConfigurationParameters`
Co-authored-by: Almeida <github@almeidx.dev >
* types: update `IntegrationTypesConfigurationParameters`
* refactor: improve readability
* docs: mark integrationTypesConfig nullable
* refactor: requested changes
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Superchupu <53496941+SuperchupuDev@users.noreply.github.com >
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
Co-authored-by: Almeida <github@almeidx.dev >
2024-09-01 20:44:51 +00:00
Jeroen Claassens
2d5531f35c
feat(builders): update to @sapphire/shapeshift v4 ( #10291 )
...
feat: update to @sapphire/shapeshift v4
2024-08-19 18:15:30 +00:00
Amgelo563
b2970bb2dd
feat(SlashCommandBuilder): Add explicit command type when building ( #10395 )
...
* feat(SlashCommandBuilder): add explicit command type when building
* test: add tests
* chore: merge import
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: almeidx <github@almeidx.dev >
2024-07-21 15:08:24 +00: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
TÆMBØ
9c76bbea17
feat: add user-installable apps support ( #10348 )
...
* feat(SlashCommandBuilder): `addContexts()` and `addIntegrationTypes()`
* Add methods to ContextMenuCommandbuilder
* Fix JSDoc
* Use `setX` over `addX`
* Fix tests
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2024-06-27 18:56:47 +00:00
Jiralite
15021990e8
build: Bump discord-api-types to 0.37.90 ( #10354 )
...
build: bump discord-api-types
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-06-18 18:37:16 +00:00
CodeGoat
aae2faf9e9
docs(SelectMenuBuilder): correct grammatical errors ( #10309 )
...
docs(SelectMenuBuilder): correct documentation
Corrects gramatical errors in the documentation for various set methods.
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-06-02 15:19:11 +00:00
CodeGoat
c1e6890132
docs(TextInputBuilder): correct constructor documentation ( #10308 )
...
feat(builders): fix text input docs
Fixes incorrect references to select menu options in text input docs.
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-06-02 12:42:11 +00:00
CodeGoat
29a50bb476
docs(MappedComponentTypes): fix "inpiut" typo ( #10306 )
...
* Fix typo in components
Fixes a typo in components.
* docs: an -> a
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2024-05-30 22:41:43 +00:00