Asad
65386034b6
feat(structures): add SoundboardSound structure ( #11390 )
...
* feat(structures): update barrel exports in preparation for new structure
* feat(structures): add SoundboardSound structure
* chore(structures): update doc comment
* chore(structures): address review suggestions
* chore(structures): consistency changes and use isIdSet to retrieve id
* docs(structures): add remarks to conditionally present attributes
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-01-27 23:10:19 +00:00
Asad
1251d479b0
feat(structures): add StickerPack structure ( #11398 )
...
* feat(structures): update barrel exports
* feat(structures): add StickerPack structure
* chore(structures): add createdAt and createdTimestamp to Sticker struct
* docs(structure): correct usage of links in see/link blocks
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-01-27 23:06:28 +00:00
Asad
693fcbc32b
feat(structures): add Stage Instance structure ( #11397 )
...
* feat(structures): update barrel exports for stage instance structure
* feat(structures): add stage instance structure
* docs(structure): cleanup and use see/link correctly
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-01-27 23:03:09 +00:00
Asad
c126367140
feat(structures): add Team structure ( #11396 )
...
* feat(structures): add and update barrel exports in prep for new struct
* feat(structures): add TeamMember substructure
* feat(structures): add Team structure
* chore(structures): add ownerUserId attribute back
* chore(structures): add teamId attribute
* docs(structures): correctly use see/link blocks and cleanup
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-01-27 22:59:42 +00:00
Asad
fc5ba6be70
feat(structures): add Subscription structure ( #11399 )
...
* feat(structure): update barrel exports for new structure
* chore(structure): add new symbols for the Subscription structure
* feat(structure): add Subscription structure
* docs(structure): correct typos
* chore(structure): add default attributes on class params
* fix(structures): correctly expose [..]Ids properties and update docs
* fix(structures): add canceled_at to DataTemplate
* docs(structures): update doc clarity on canceledAt getter - @almeidx
This was a suggestion by Almedia.
Co-authored-by: Almeida <github@almeidx.dev >
* style: fix
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-01-27 22:56:06 +00:00
Qjuh
7a7fecbe3c
fix(structures): correctly check if flags are present ( #11404 )
...
* fix(structures): correctly check if flags are present
* chore: isFieldSet type guard
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-01-27 16:47:56 +00:00
Vlad Frangu
323d8e7571
fix(voice): always install Davey as DAVE is becoming required ( #11385 )
...
* fix(voice): always install Davey as DAVE is becoming required
* chore: requested changes
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-01-25 20:28:04 +00:00
Asad
3550b497f6
feat(structures): add AutoModeration structures ( #11381 )
...
* feat(structures): add barrel exports in preparation new structures
* feat(structures): add AutoModerationRule structure
* feat(structures): add AutoModerationRuleTriggerMetadata structure
* feat(structures): add AutoModerationAction substructure
* feat(structure): add AutoModerationActionMetadata substructure
* chore: correct typo
* chore: do not expose exemptRoles and exemptChannels as getters
* feat(structures): rename substructure files
* chore(structures): update barrel exports
* chore(structures): export automod structures in package barrel exports
2026-01-24 19:40:01 +00:00
René
838cd2da34
perf(collection): use object destructuring of entry tuples ( #11391 )
2026-01-22 09:13:43 +00:00
Almeida
017176926a
refactor: move full validation to ChatInputCommandBuilder ( #11304 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-01-16 16:54:51 +00:00
ManHam
be78e26729
feat: add Bun templates for create-discord-bot ( #11348 )
...
* feat: add Bun templates for create-discord-bot
- Add TypeScript Bun template with complete src structure
- Add JavaScript Bun template with complete src structure
- Both templates mirror the Node.js versions with Bun-specific configuration
Closes #11346
* fix: update template and bun template loading
---------
Co-authored-by: almeidx <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-01-16 15:32:20 +00:00
jacobhumston
52a69d77d0
feat(create-discord-bot): allow certain files/folders to be included in the target directory ( #11368 )
...
* feat(create-discord-bot): allow empty git repositories
* feat(create-discord-bot): create a .gitignore for git repositories
* fix(create-discord-bot): correctly handle .git file edge case
* refactor(create-discord-bot): use next.js "is-folder-empty" utility
* refactor(create-discord-bot): combine checks
* revert: revert comment change
This reverts commit 2f8422e90d .
* feat(create-discord-bot): add .gitignore to templates
* docs(create-discord-bot): add source link to isFolderEmpty util
* docs(create-discord-bot): add @license JSDoc tag to license comment
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-01-16 12:57:47 +00:00
Asad
3d74122215
feat(structures): add entitlement structure ( #11377 )
...
* feat(structures): add entitlement structure
* feat(structures): create and update barrel exports
* chore: reword comment for entitlment deleted getter to be clearer
* feat(structures): add symbols to optimise ends_at, starts_at fields
* feat(structures): optimise starts_at and ends_at fields
* feat(structures): manage Date and Discord ISOs appropriately
* chore: remove accidental whitespace
* chore: correct name styles on symbols (remove 'at')
* chore: correct name styles on AtTimestamp fields (remove 'at')
* chore: call super.toJSON on toJSON override
* chore: run prettier to clear linting/formatter errors
* chore: correct usage of optimizeData
* chore: update DataTemplate override for Entitlement
* chore: update class default type param, update DataTemplate doc
* Apply suggestions from code review
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2026-01-15 23:43:39 +00:00
Asad
69432a1bca
feat(structures): add emoji structure ( #11369 )
...
* feat(structures): add emoji structure
* chore: update deps
* chore: update deps
* chore: update deps
* Revert "chore: update deps"
This reverts commit 8332f48611 .
* Revert "chore: update deps"
This reverts commit a168e735a3 .
* Revert "chore: update deps"
This reverts commit 0b19058cda .
* chore: consistency (capitalisation)
* fix(structures): do not export substructures from emoji structure
* chore(structures): add remark detailing substructures
* chore: update remarks to reflect exported substructures (remove roles)
* chore: update remarks to explain why roles not exposed on structure
2026-01-15 23:31:35 +00:00
Aryan Bagade
8ccae833e7
types(UserManager): fix send() return type to Promise<Message<false>> ( #11337 )
...
* types(UserManager): fix send() return type to Promise<Message<false>>
UserManager.send() always sends a direct message (DM), so the return type should b Promise<Message<false>> instead of Promise<Message> to correctly indicate that the message is not in a guild context.
Closes #11331
* fix: requested changes
---------
Co-authored-by: almeidx <github@almeidx.dev >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2026-01-02 17:56:34 +00:00
Souji
c921e84531
feat(guide): update member fetch errors ( #11374 )
...
* feat(guide): update member fetch errors
* member count is no longer relevant, since the timeout resets on each chunk
* add link to the dev portal on members didn't arrive in time
* add section about opcode 8 gateway rate limit
resolves #11245 #11277
* chore: add missing period on list item
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-01-02 14:17:24 +00:00
kikorp78
311413e5f2
fix: broken link on sharding page ( #11373 )
2025-12-26 00:45:21 +00:00
yokkkoso
7884ecd3a0
fix(emojiPredicate): wrong min name length ( #11371 )
2025-12-23 18:54:17 +00:00
Pavel-Boyazov
427636ee75
types(Message): specify rawData arg type ( #11123 )
...
Co-authored-by: Almeida <github@almeidx.dev >
2025-12-17 19:04:17 +00:00
Almeida
cad826fc03
feat(RoleManager): add fetchMemberCounts ( #11352 )
...
* feat(RoleManager): add `fetchMemberCounts`
* docs: improve description
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-12-17 18:59:50 +00:00
Vlad Frangu
51b5d38342
feat: proper authorizing integration owners structure ( #11366 )
...
* feat: proper authorizing integration owners structure
chore: fix ci
chore: fix types
chore: fix types
chore: nits
chore: tests
chore: requested changes
chore: drop it from apitypes
chore: requested 2
chore: rofl
chore: docs
* chore: docs
* chore: docs
* Apply suggestions from code review
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-12-17 18:55:05 +00:00
Marko Kajzer
5f93fbd0f2
fix(voice): handle negative timeouts ( #11362 )
2025-12-17 18:53:10 +00:00
Snazzah
c4fc79a3cd
fix(voice): handle multiple transitions simultaneously ( #11100 )
...
* fix(voice): handle multiple transitions simultaneously
* fix: fix execute transition return
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-12-12 15:49:37 +00:00
Vlad Frangu
5b4dbd541e
feat: zstd streaming support ( #10758 )
...
* feat(ws): zstd streaming support
* chore: naming of the mode
* fix: remove `@ts-expect-error`
---------
Co-authored-by: Almeida <github@almeidx.dev >
2025-12-12 13:01:25 +00:00
Almeida
df0c28afc2
feat(GuildsAPI): add getRoleMemberCounts ( #11353 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-12-11 01:48:28 +00:00
Almeida
451a6380c6
fix: handle github api errors gracefully ( #11357 )
...
* fix: handle github api errors gracefully
* fix: remove forks and improve log
2025-12-10 23:03:32 +01:00
Almeida
01f31f374a
chore: bump dependencies ( #11356 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-12-10 17:53:48 +00:00
Denis-Adrian Cristea
9bf1f739e0
chore: remove usage of the prefer-global rules ( #11279 )
2025-12-10 14:05:29 +00:00
Copilot
548d75258b
perf: Optimize Collection.equals() to reduce redundant map lookups ( #11344 )
...
* Initial plan
* Optimize Collection.equals() to avoid redundant map lookups
Co-authored-by: iCrawl <20760160+iCrawl@users.noreply.github.com >
* Add explanatory comment for equals() undefined check optimization
Co-authored-by: iCrawl <20760160+iCrawl@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: iCrawl <20760160+iCrawl@users.noreply.github.com >
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-12-09 21:22:14 +00:00
Almeida
6a129bc054
chore: lower concurrency on index upload ( #11351 )
...
* chore: lower concurrency on index upload
* chore: increase timeout
2025-12-09 21:02:57 +00:00
Almeida
f60d3d65fe
refactor!: move embedLength function to util package ( #11327 )
...
BREAKING CHANGE: Builders no longer exports a `embedLength` function. Import it from `@discordjs/util` instead.
Co-authored-by: Danial Raza <danialrazafb@gmail.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-12-09 18:40:34 +00:00
jNullj
4db1092f8f
docs(voice): add DAVE dependency section ( #11061 )
...
* docs(voice): add DAVE dependency section
continues work found at https://github.com/discordjs/discord.js/issues/10735
Read more at https://discord.com/developers/docs/change-log#voice-endtoend-encryption-dave-protocol
* docs(voice): fix dave dependency note order
* remove explicit warning regarding optional dependency being optional
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Almeida <github@almeidx.dev >
2025-12-09 17:48:24 +00:00
Almeida
eaa6863f93
fix: lockfile ( #11347 )
2025-12-09 13:29:01 +00:00
Almeida
06c8da23d1
chore: update deps & search indice action refactor ( #11339 )
...
* chore: update deps & search indice action refactor
- Updated pnpm, dependencies and regenerated the lockfile
- Removed immer and some eslint plugins that weren't being used
- Updated the version of `@types/node` to v24 on internal packages as
that's the version that is being used on github actions
- Refactored the uploadSearchIndices action slightly and upgraded the
meilisearch dependency
* chore: remove more deps
2025-12-09 13:47:46 +01:00
Jiralite
2c3bf5c817
ci: Upload README.md files ( #11342 )
...
* feat: upload README.md files
* ci: build actions
* fix: build action
* chore: force rename
2025-12-09 03:22:39 +01:00
Almeida
ec3ef7b1bd
feat: use native node typescript ( #11259 )
...
* feat: use native node typescript
* fix: use basename
* Update packages/create-discord-bot/template/Bun/TypeScript/tsconfig.json
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Change module and moduleResolution to ESNext and Bundler
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-09 03:22:16 +01:00
Almeida
c9bc33c758
fix(stringOptionPredicate): min_length and max_length min values ( #11340 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-12-09 00:20:15 +00:00
Noel
f38395ec4e
fix: update MeiliSearch API key
2025-12-09 00:48:57 +01:00
Almeida
ec76b17be3
chore: workflow and docker image tweaks ( #11341 )
2025-12-09 00:15:14 +01:00
Jiralite
d90a86a048
fix(Message): Optional parameter for setting allowed mentions ( #11338 )
...
feat: allow empty allowed mentions
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-12-08 23:14:34 +00:00
Egologics
fa43c40d34
fix(builders): handle 0 as valid attachment ID ( #11330 )
...
* fix(builders): handle 0 as valid attachment ID
Fixes #11314
The AttachmentBuilder.getRawFile() method was using a falsy check that treated 0 as invalid. Changed to use the 'in' operator to properly check for the existence of the id property.
* Update packages/builders/__tests__/messages/fileBody.test.ts
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* Apply suggestion from @almeidx
* fix: lint
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-12-08 23:08:36 +00:00
Almeida
d0745afbea
chore: upgrade vitest to v4 ( #11336 )
2025-12-08 18:55:45 +00:00
Almeida
d518c97840
chore: upgrade storybook to v10 ( #11334 )
...
- Replaced deprecated `@storybook/addon-styling` with `@storybook/addon-themes`
- Removed deprecated `@storybook/addon-essentials` and `@storybook/addon-interactions`
- Upgraded `chromatic`, although it's seemingly unused anywhere
- Upgraded `@types/node` to match the ones in the guide and website
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-12-08 08:27:04 +00:00
Denis-Adrian Cristea
9005c8ae9c
refactor!: remove AttachmentBuilder and support new file body encodables ( #11278 )
...
BREAKING CHANGE: Remove AttachmentBuilder
---------
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-12-08 10:19:43 +02:00
Almeida
5888663392
test: fix type errors ( #11325 )
...
* test: fix type errors
* chore: use MockedFunction
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-12-08 00:24:29 +00:00
Almeida
8d33188ac1
feat: use turbopack for prod builds ( #11335 )
2025-12-08 00:17:16 +00:00
Jiralite
5e6bd4b3d7
build: Bump dependencies ( #11333 )
...
* build: bump dependencies
* fix: guide build
* build: amend package.json.hbs
* build: create-discord-bot
* style: formatting
* build: final change
---------
Co-authored-by: almeidx <github@almeidx.dev >
2025-12-06 22:55:07 +00:00
Almeida
0aaba0305f
fix(undiciRequest): file uploading ( #11320 )
...
* fix(undiciRequest): file uploading
* fix: different approach
* fix: revert to the previous approach
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-12-03 14:40:15 +00:00
IllagerCaptain
633fdd8f28
feat(Guild): Add maximumStageBitrate ( #11313 )
...
* Add `maximumStageBitrate : number`
* Add `maximumStageBitrate : number`
* oops
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-12-02 23:26:15 +00:00
Almeida
87b359e44d
fix: replace usages of Buffer#slice() with Buffer#subarray() ( #11326 )
...
fix: replace usages of Buffer.slice() with Buffer.subarray()
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-12-02 23:13:10 +00:00