Almeida
52173b6ca8
fix: disable per option validation on chat input subcommands ( #11405 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-03-07 00:02:56 +00:00
Denis-Adrian Cristea
41439d3a40
feat(RedisBroker): discordjs/core gateway impl ( #11005 )
...
* feat(RedisBroker): discordjs/core gateway impl
* fix: import
Co-authored-by: Almeida <github@almeidx.dev >
* chore: iterate
* fix: publish properly
* chore: deps and docs
* chore: leftover comment
* chore: suggested changes
* doc: bad comment
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-03-05 12:27:14 +00:00
Qjuh
d6e1609408
docs(discord.js): less omit types for better docs ( #11323 )
...
* docs(discord.js): less omit types for better docs
* chore: refactor guild scheduled event types
* fix: duplicate properties
* fix: use correct type type
* chore: apply suggestion from @almeidx
Co-authored-by: Almeida <github@almeidx.dev >
---------
Co-authored-by: Almeida <github@almeidx.dev >
2026-03-02 21:37:24 +00:00
Naiyar
3e6364070b
feat: modal radio group and checkbox components ( #11395 )
...
* feat: radio group and checkbox component in modal
* chore: some doc and type fixes
* chore: missing types
* chore: update component names
* docs: radio group value now returns null if not selected
* Remove empty line at the beginning of ModalSubmitInteraction.js
* Change value property to be nullable in RadioGroupModalData
* chore: review
* chore: missing "type"
* chore: suggestion
Co-authored-by: Almeida <github@almeidx.dev >
* chore: review
Co-authored-by: Almeida <github@almeidx.dev >
---------
Co-authored-by: Almeida <github@almeidx.dev >
2026-03-02 21:09:03 +00:00
Almeida
3c9d90ad7e
chore: move proxy-container to apps ( #11435 )
...
* chore: move proxy-container to apps
* chore: limit next/react rules to next apps
* chore: add standalone issue template
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-03-02 19:34:45 +00:00
VAKiliner
ec796caf00
fix(GuildChannel): Handle empty overwrite must only handle @everyone ( #11221 )
...
* Add check overwrite id
* Update GuildChannel.js
* Update GuildChannel.js
* chore: fmt
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-03-02 19:02:24 +00:00
Almeida
f1949271a0
docs: add missing ApplicationCommandPermissionsUpdateData ( #11415 )
...
* docs: add missing ApplicationCommandPermissionsUpdateData
* Update packages/discord.js/src/client/websocket/handlers/APPLICATION_COMMAND_PERMISSIONS_UPDATE.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-03-02 10:43:55 +00:00
Asad Humayun
fce498982a
fix(structures): add missing toJSON method on Subscription structure ( #11431 )
...
fix(structures): add missing `toJSON` method on Subscription
When writing tests for #11407 , it became apparent that I had forgotten to add the `toJSON` method for this structure when I was initially wrote the structure. I have now added this method and it passes when running the tests that I have written for this (which will be merged in a following PR).
Signed-off-by: Asad Humayun <asad.humayun@asadh.io >
2026-03-01 21:10:26 +00:00
Almeida
307b64f139
chore: make docgen package private ( #11434 )
2026-03-01 12:44:06 +00:00
faceboy
0cb8be490c
docs(builders): edited docs to correctly link to splice ( #11430 )
...
fix(builders): edited docs to correctly link to splice
StringSelectMenuBuilder.splice()'s docs incorrectly linked to slice instead of splice in MDN docs, fixed that
2026-02-25 05:46:25 +00:00
Jiralite
77e767277b
build: Upgrade dependencies and pnpm ( #11420 )
...
* build: upgrade dependencies
* build: upgrade pnpm
* test: fix voice
* build: regenerate file
* fix: reports by ESLint
* fix: docs errors
* build: downgrades
* build: no upstream bump
* build: discord-api-types 0.38.40
* build: pnpm 10.30.1
* fix: ignore @typescript-eslint/no-duplicate-type-constituents
* fix: jsdoc lint in api-extractor
* build: update template for ESLint
Co-authored-by: Almeida <github@almeidx.dev >
* chore: explicit TODO
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
* chore: revert typings lint change
---------
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
Co-authored-by: Almeida <github@almeidx.dev >
2026-02-20 17:44:38 +00:00
Qjuh
ccce987fa1
types: broadcastEval overload order ( #11421 )
...
* types: broadcastEval overload order
* types: also apply to ShardClientUtil
2026-02-16 13:20:59 +00:00
Almeida
a3e189df00
feat: emit voiceServerUpdate event ( #11414 )
...
* feat: emit voiceServerUpdate event
* fix: add back debug log
* refactor: censor token in debug logs
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-02-08 16:48:49 +00:00
Asad
c460a920ac
feat(structure): add Webhook structure ( #11401 )
...
* feat(structure): add barrel exports for Webhook structure
* feat(structure): add Webhook structure
* chore(structures): lib exports consistency
* docs: update docs
2026-02-06 16:57:49 +00:00
Asad
c71228aab3
feat(structures): add SKU structure ( #11389 )
...
* feat(structures): update barrel exports in preparation for SKU structure
* feat(structures): add SKUFlagsBitField to /bitfields
* feat(structures): add SKU structure
* chore(structures): correct barrel exports
* chore(structures): export SKUBitfieldFlags
* docs(structures): correct usage of see/link doc comments
* chore(structures): correct usage of bitfields in extending classes
* docs(structures): remove unnecessary links
* fix(structures): correctly apply bitfields, introduced in #11404
---------
Co-authored-by: Almeida <github@almeidx.dev >
2026-01-28 01:08:43 +00:00
Asad
b0e413c116
feat(structure): add voice structure ( #11400 )
...
* feat(structure): add Voice structures
* feat(structure): add VoiceState structure
* feat(structure): add VoiceRegion structure
* chore(structures): lib exports consistency
---------
Co-authored-by: Almeida <github@almeidx.dev >
2026-01-27 23:17:01 +00:00
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