didinele
3c4a75cd39
fix: zod validation
2026-05-14 11:37:17 +03:00
Almeida
40ce0791a8
feat(ApplicationsAPI): add getActivityInstance method ( #11482 )
...
feat(core): add getActivityInstance to ApplicationsAPI
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-04-24 17:11:18 +00:00
Dramex
8ea7c7c7e4
fix(collection): preserve ReadonlyCollection through tap/each ( #11501 )
...
* fix(collection): preserve ReadonlyCollection through tap/each
`each` and `tap` return polymorphic `this`, which TypeScript resolves
against the `Omit<Collection, ...>` portion of `ReadonlyCollection`
rather than the full intersection. That let callers reach `set` and
`delete` on the result of a chain started from a `ReadonlyCollection`:
const ro: ReadonlyCollection<string, number> = new Collection(...);
ro.tap(() => {}).set('x', 0); // compiled, mutated the underlying Map
The fix omits `each` and `tap` from the base `Omit` and re-declares
them on the `ReadonlyCollection` side of the intersection so the return
type narrows back to `ReadonlyCollection`.
Closes #10514
* test(collection): gate readonly-chain checks behind if(false)
Previously the `@ts-expect-error` lines still executed the `set` and
`delete` mutations at runtime, and the final `size === 1` passed only
because they happened to cancel out. Wrapping the assertions in
`if (false)` keeps the compile-time guarantee while the backing
collection is truly untouched, and adds a `get('a') === 1` check as
a belt.
* test(collection): move readonly type checks to *.test-d.ts
Addresses review feedback. The type-level assertions around tap() and
each() preserving ReadonlyCollection belong in a *.test-d.ts file so
they run through vitest's typecheck pass instead of runtime.
Replaces the if(false)-gated @ts-expect-error block in collection.test.ts
with expectTypeOf assertions in a new collection.test-d.ts. Covers both
the no-thisArg and with-thisArg overloads of tap and each.
2026-04-20 19:15:29 +00:00
2^1
58c5ebdd08
chore(readme): update related libraries link ( #11487 )
...
* fix(readme): related libraries link broke
* docs(readme): update all related-libs links
2026-04-13 16:20:06 +00:00
Almeida
aa1e6be792
fix: github icon size ( #11488 )
2026-04-09 19:59:41 +00:00
Qjuh
aa2767bd6f
fix(MessagePayload): allow AttachmentBuilder in files payload ( #11423 )
...
* fix(MessagePayload): allow AttachmentBuilder in files payload
* fix: typo
* chore: apply suggestions from code review
Co-authored-by: Almeida <github@almeidx.dev >
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-04-09 09:27:02 +00:00
René
1f9affd979
perf(collection): avoid duplicated population of new collections ( #11473 )
2026-04-01 09:56:37 +00:00
Almeida
339b8b5655
chore: upgrade dependencies ( #11470 )
...
* chore: upgrade dependencies
* chore: upgrade some major dependencies
* chore: bump shiki to v4
* chore: bump actions dependencies
* chore: upgrade meilisearch dependency
* chore: set aria-hidden on GitHubIcon
* fix: use official github icon
2026-03-31 09:57:57 +01:00
Almeida
9b7ea5a1b7
fix: sendSoundboardSound return type ( #11452 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-03-29 09:25:00 +00:00
Almeida
8bcf8c94e9
feat(GuildMember): add collectibles ( #11468 )
...
feat(GuildMember): add collectibles, fix partial update handling
2026-03-29 09:19:42 +00:00
Muhammad Bin Ali
22b820fbf2
fix(util): detect Cloudflare Workers in shouldUseGlobalFetchAndWebSocket ( #11456 )
...
Co-authored-by: Muhammad Ali <muhammadali@cloudflare.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-03-26 15:46:57 +00:00
epochzx
9ade8dcc71
docs: fix typo in sharding guide ( #11467 )
...
Fix a typo in sharding guide
2026-03-26 10:26:40 +00:00
Jiralite
2a067216c4
chore: Release @discordjs/voice 0.19.2 ( #11450 )
...
chore(voice): release @discordjs/voice@0.19 .2
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
@discordjs/voice@0.19.2
2026-03-13 15:23:33 +00:00
Denis-Adrian Cristea
fe5e3c2a82
chore: remove file from root ( #11442 )
...
chore: oops
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-03-13 09:28:42 +00:00
Snazzah
c486fb8127
fix(voice): strip padding from packets and add guards ( #11449 )
...
* fix(voice): strip padding from incoming packets
* fix(voice): add additional guards to voice recieve
* chore: apply comments
* chore: fix formatting
2026-03-13 08:36:01 +00:00
Jiralite
f3942a6319
chore: Release @discordjs/voice 0.19.1 ( #11446 )
...
* chore(voice): release @discordjs/voice@1.0.0
* chore(voice): release 0.19.1
---------
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
@discordjs/voice@0.19.1
2026-03-09 21:26:11 +00:00
Denis-Adrian Cristea
84b85f4c91
refactor!: remove builders and formatters re-export ( #11361 )
...
BREAKING CHANGE: removed builders and formatters re-export
2026-03-07 12:25:00 +02:00
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