Vlad Frangu
291012c18a
chore: forward-port release metadata from side branches ( #10848 )
...
* chore(rest): forward-port release metadata from v14 branch
* chore(formatters): forward-port release metadata from builders/v1 branch
* chore(builders): forward-port release metadata from builders/v1 branch
* chore(core): forward-port release metadata from v14 branch
* chore(ws): forward-port release metadata from v14 branch
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-27 18:30:38 +00:00
Qjuh
d32aacd14c
feat(website): show examples on constructors ( #10856 )
...
* feat(website): show examples on constructors
* fix: lint
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-27 00:48:18 +00:00
Almeida
a4f3a2574d
ci: update list of packages in codecov uploads ( #10846 )
...
* ci: update list of packages in coverage upload
* build: remove test dependencies
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-27 00:45:54 +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
Danial Raza
d81b4be2cd
feat: add soundboard ( #10590 )
...
* feat: add soundboard
* types(PartialSoundboardSound): add `available`
* feat(VoiceChannelEffect): add `soundboardSound` getter
* types: improve return types
* docs: requested changes
* feat: support multiple audio file types
* types(GuildSoundboardSoundCreateOptions): add `contentType`
* types: add default and guild soundboard sound
* fix: requested changes
* docs: use `@fires` tag
* docs: remove misleading tag
* chore: requested changes and missing things
* feat: add send soundboard sound options
2025-04-25 19:43:17 +00:00
Naiyar
8e4e319c24
feat: entry-point command ( #10640 )
...
* feat: entry point command
* chore: update tests
* chore: suggested change
* chore: suggestion
Co-authored-by: Almeida <github@almeidx.dev >
* chore: suggestion
Co-authored-by: Almeida <github@almeidx.dev >
* chore: suggestion
Co-authored-by: Almeida <github@almeidx.dev >
* chore: suggestion
Co-authored-by: Almeida <github@almeidx.dev >
* chore: suggestion
Co-authored-by: Almeida <github@almeidx.dev >
* chore: remove extra info closing tag
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-24 19:55:30 +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
柚子Youzi
8f35dfd039
docs(readme): add import statement for pure REST usage to align with other examples ( #10838 )
...
* docs(readme): add import statement for pure REST usage to align with other examples
Added missing `import` statements in the "Independent REST API Usage" section to maintain consistency with the rest of the README examples.
This change also ensures that the usage of `@discordjs/core` reflects a REST-only setup by importing from `@discordjs/core/http-only`, which avoids dependency issues like `Can't resolve 'zlib-sync'`.
* fix: standardize import quotes in README.md
* style: organise imports
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-04-20 14:10:24 +00:00
Qjuh
92e07c8f7f
types: add missing BaseMessageCreateOptions ( #10833 )
...
* types: add missing BaseMessageCreateOptions
* build: trigger tests
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: almeidx <github@almeidx.dev >
2025-04-18 16:46:55 +00:00
Qjuh
feec5efe45
fix: don't set ready status twice ( #10807 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-17 18:11:24 +00:00
Danial Raza
57c3da2e8e
docs(ApplicationCommand): incorrect method in example ( #10837 )
2025-04-16 17:26:28 +00:00
Almeida
5c0b714557
fix: structure imports on windows ( #10835 )
2025-04-13 19:45:11 +00:00
Almeida
f0ea40586b
build: bump discord-api-types to 0.37.120 ( #10832 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-11 08:26:23 +00:00
iCrawl
056c691281
ci: update pnpm version when building main
2025-04-11 01:56:42 +02:00
iCrawl
8ce8f7ff46
ci: fix upload to database
2025-04-11 01:09:24 +02:00
iCrawl
e22a7bb505
ci: upload docs to cf
2025-04-11 00:55:57 +02:00
Qjuh
74110b3e7d
fix(website): add type to variables ( #10779 )
...
* fix(website): add type to variables
* chore: apply suggestion
* chore: lint
2025-04-10 22:44:35 +02:00
Almeida
53ba3b6016
feat(BaseInteraction): add attachmentSizeLimit ( #10830 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-10 20:41:52 +00:00
Noel
2e3bc69602
refactor: website facelift ( #10823 )
2025-04-10 22:02:37 +02:00
Almeida
1fe53c7ca2
chore: move pnpm settings to pnpm-workspace.yaml ( #10828 )
...
* chore: move pnpm settings to pnpm-workspace.yaml
* chore: remove contentlayer remains
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-10 17:42:05 +00:00
Jiralite
3b76c7072d
build: Bump Undici to 7.8.0 ( #10831 )
...
build: bump Undici
2025-04-10 13:40:46 +00:00
Danial Raza
d93a52c1dd
chore: remove has PR label ( #10820 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-07 16:22:31 +00:00
Jiralite
2e99c26c6d
build: allowAny instead of allowedAny ( #10825 )
2025-04-07 05:07:45 +00:00
Noel
f580de8025
chore: upgrade deps ( #10824 )
2025-04-05 13:18:56 +02:00
Danial Raza
432aba3df7
types(ModalSubmitFields): fix fields type ( #10816 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-03-30 11:45:37 +00:00
Almeida
646ecae47f
fix(Message): forwarded messages are not crosspostable ( #10821 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-03-29 08:17:51 +00:00
Almeida
93f2ba0fc8
fix(PollAnswer): only define _emoji property once ( #10811 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-03-27 18:05:05 +00:00
Jacob Morrison
3234fc6b3b
fix(Poll): ensure this.answers is set before we reference it ( #10809 )
...
* Ensure his.answers is set sooner if it's null during a patch
* Move data.answers block up as well to ensure the patched answers are set
* Ensure collection is set in constructor instead
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-03-27 18:01:05 +00:00
Almeida
73f2ef9c87
fix: all shards spawning on shard 0 with sharding manager ( #10814 )
2025-03-22 20:17:14 +00: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
Muhammad Nizamuddin Aulia
79b79b6a44
fix(create-discord-bot): register command files in subdirectories ( #10775 )
...
* feat(create-discord-bot): add user command in utility subdirectory
* fix(create-discord-bot): command files in the subdirectory were skipped
* fix(create-discord-bot): fix command files in subdirectory were skipped in Deno template
* fix: minor fix
* fix: lint
* refactor: suggested changes
revert: unrelated change
---------
Co-authored-by: almeidx <github@almeidx.dev >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-03-16 18:38:48 +00:00
Jiralite
eabcc52594
refactor(constants): Update guide URL ( #10803 )
...
refactor(constants): update guide URL
2025-03-16 17:18:25 +00:00
Qjuh
a151424261
fix(website): correctly link type parameters in docs ( #10801 )
2025-03-15 22:39:29 +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
Jiralite
c78407e751
fix(GuildMemberManager): Ensure empty object for fetching many guild members ( #10796 )
...
fix(GuildMemberManager): pass empty object for fetching many
2025-03-07 20:15:54 +00:00
Danial Raza
e273afbb93
feat: override groupBy to return Collection ( #10791 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-03-05 20:19:20 +00:00
Danial Raza
b7e334e74a
feat(Webhook): allow setting withComponents ( #10792 )
...
* feat(Webhook): allow setting `withComponents`
* docs: remove brackets
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-03-05 19:08:22 +00:00
Denis-Adrian Cristea
0f89353443
refactor!: remove discord.js builders ( #10529 )
...
BREAKING CHANGE: Removed all builder extensions within discord.js
2025-03-05 14:34:49 +02: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
Danial Raza
b6fda781c8
refactor: remove parameter reassignment ( #10715 )
...
* refactor: remove parameter reassignment
* refactor: requested changes
Co-authored-by: Almeida <github@almeidx.dev >
* chore: requested changes
Co-authored-by: Qjuh <Qjuh@users.noreply.github.com >
* chore: requested changes
* refactor: destructure in parameters
Co-authored-by: Almeida <github@almeidx.dev >
* refactor: apply suggested changes
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: Qjuh <Qjuh@users.noreply.github.com >
2025-02-26 15:31:29 +00:00
Almeida
bb6767113f
feat: re-emit REST debug logs ( #10782 )
2025-02-25 06:20:10 +00:00
Jiralite
1054f4abce
refactor(PackageSelect): Redirect to stable ( #10778 )
...
refactor(PackageSelect): redirect to stable
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-02-23 19:13:16 +00:00
Almeida
c429cc112b
types(ShardClientUtil): remove count and ids ( #10780 )
2025-02-23 16:13:59 +00:00