Qjuh
b3db92edfb
feat(api-extractor): support multiple entrypoints ( #10829 )
...
* feat(api-extractor): support multiple entrypoints
* chore: initial support in generateSplitDocumentation
* chore: bring in line with upstream
* refactor: multiple entrypoints in scripts
* fix: split docs
* feat: website
* fix: docs failing on next
* fix: don't include dtypes for now
* refactor: don't fetch entrypoint if there is none
---------
Co-authored-by: iCrawl <buechler.noel@outlook.com >
2025-05-12 23:48:41 +02:00
Qjuh
4f5e5c7c14
feat: components v2 ( #10847 )
...
* feat: components v2
* fix: tests
* fix: merge
* fix: lint
* Update packages/discord.js/src/util/Components.js
* fix: forward-port fixes from v14
* fix: getter
* fix: missing UnfurledMediaItem#toJSON()
* fix: find interactive component in container
* docs(APIMediaGalleryItem): Correct tag
* fix: forward port
* Apply suggestions from code review
Co-authored-by: Danial Raza <danialrazafb@gmail.com >
---------
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Danial Raza <danialrazafb@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-11 20:46:09 +00:00
Danial Raza
2c21de68f3
refactor: remove registerEvents function ( #10877 )
...
* refactor: remove `registerEvents` function
* refactor: use try-catch
* fix: missing `await`
2025-05-11 12:21:13 +00:00
Jiralite
4f6fedfb1f
fix(ChannelManager): Remove threads from cache upon deletion ( #10883 )
...
* fix(ChannelManager): remove threads from cache upon deletion
* refactor: loop over thread ids
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-09 11:06:35 +00:00
Danial Raza
c4cd6ea637
feat: soundboard forward port ( #10859 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-09 07:43:40 +00:00
Qjuh
f6da9495ed
fix(website): link to enum members in search index ( #10875 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-07 21:26:43 +00:00
Jiralite
436784f945
perf(Components): Hash table ( #10890 )
...
refactor(Components): hash table
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-07 21:14:58 +00:00
Jiralite
320e3a6246
fix(PartialGroupDMChannel): Prevent undefined values ( #10889 )
...
fix(PartialGroupDMChannel): prevent `undefined` values
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-07 16:45:47 +00:00
Almeida
026440c256
build: exclude type tests from pack ( #10886 )
...
* build: exclude type tests from pack
* fix: requested changes
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-07 16:32:11 +00:00
Jiralite
432cdbe88a
refactor(Client): Remove with_expiration query parameter ( #10800 )
...
refactor(Client): remove `with_expiration`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-06 14:24:12 +00:00
Qjuh
6efdf3b901
fix(website): link to external constructors ( #10869 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-05 07:15:53 +00:00
Danial Raza
4acb71496f
chore: update create-discord-bot dependencies ( #10878 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-05 07:00:35 +00:00
Almeida
4646a74565
build: fix deploy failure ( #10885 )
2025-05-05 06:59:14 +00:00
Almeida
bae1b4c17d
docs: fix missing type ( #10882 )
2025-05-04 09:12:18 +00:00
Qjuh
65f41bea96
fix(website): constructors show on too many items ( #10880 )
2025-05-03 20:25:00 +00:00
Qjuh
75179fbf9f
chore: bump zlib-sync to 0.1.10 ( #10873 )
2025-05-01 20:43:44 +00:00
Noel
2184085fda
docs: guide setup ( #10862 )
2025-04-28 02:23:27 +02:00
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
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
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
Jiralite
3b76c7072d
build: Bump Undici to 7.8.0 ( #10831 )
...
build: bump Undici
2025-04-10 13:40:46 +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