Commit Graph
8746 Commits
Author SHA1 Message Date
almeidx a4f82b4768 fix(website): parsing of item name for title 2026-09-14 14:45:52 +01:00
Denis-Adrian Cristea c626815bff refactor(ws)!: take /gateway/bot data in WebSocketManager#connect (#11602)
BREAKING CHANGE: `WebSocketManager` no longer accepts `fetchGatewayInformation`, pass `gatewayInformation` to `connect` instead.
2026-09-12 21:38:20 +01:00
a4116036be refactor(WebSocketShard): clear ws session only when explicitly reconnecting (#11601)
* refactor(WebSocketShard): clear ws session when explicitly reconnecting

* fix(ws): check for .resuming code

* fix(ws): actually correct clear logic

* refactor: flip

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-09-08 15:49:13 +00:00
Almeidaandkodiakhq[bot] 5f6cbf111e feat(formatters): add gameProfileMention() (#11612)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-09-06 11:08:01 +00:00
Almeida 096177189f chore: allow dev version publishing with pnpm 11 (#11618)
* chore: allow dev version publishing with pnpm 11

* chore: increase registry check timeout to 15 mins
2026-09-04 16:46:25 +00:00
Jiralite 183ade2424 fix(applicationCommands): allow X-Discord-Locale (#11616)
fix(applicationCommands): allow locale header
2026-09-04 12:40:25 +00:00
Almeida 649395ebb2 chore(rpc): add missing configs (#11613) 2026-09-03 12:03:13 +00:00
Almeida 5bbbd57ea4 fix(rpc): timestamp validation in setActivity (#11614) 2026-09-03 11:54:48 +00:00
Almeida 384e8afa1b chore: bump dependencies (#11539)
* chore(deps): update github-actions

* actions/cache v4 -> v5
* actions/create-github-app-token v2 -> v3
* actions/download-artifact v6 -> v8
* actions/labeler v5 -> v6
* actions/upload-artifact v5 -> v7
* codecov/codecov-action v4 -> v6
* crazy-max/ghaction-github-labeler v5 -> v6
* dessant/lock-threads v5 -> v6
* docker/build-push-action v6 -> v7
* docker/login-action v3 -> v4
* docker/setup-buildx-action v3 -> v4
* pnpm/action-setup v4.1.0 -> v6.0.8

* chore(deps): minor/patch bumps and pnpm v11

* chore(deps): bump lint-staged to v17

* chore(deps): bump commitlint to v21

* chore(deps): bump vercel to v54

* chore(deps): bump vite to v8

* chore(deps): bump chromatic to v17

* chore(deps): bump validate-npm-package-name to v8

* chore(deps): bump uuid to v14

* chore(deps): bump cloudflare to v6

* chore(deps): bump meilisearch to v0.58

* chore(deps): bump fumadocs-mdx to v15

* chore(deps): lockfile

* chore: fixes

* fixup! chore(deps): minor/patch bumps and pnpm v11

* chore(deps): bump vercel to v56

* chore(deps): bump chromatic to v18

* chore: fix format/lint and change prettier range

* chore(deps): bump vitest-websocket-mock to v0.7

* chore(deps): bump cloudflare to v7

* chore(deps): bump meilisearch to v0.59

* chore(deps): bump commander to v15

* chore(deps): bump sharp to v0.35

* chore(deps): bump undici to v8

* chore: lockfile

* fixup! chore(deps): update github-actions

* fix(rest): requested changes

* chore: minor/patch

* chore(deps): bump meilisearch to v0.60

* chore(deps): bump vercel to v57

* fixup! fixup! chore(deps): update github-actions

* chore: revert prettier upgrade

* chore: minor/patch

* chore(deps): bump vercel to v58

* chore(deps): regen lockfile

* chore(deps): undici 8.10.1 and pnpm 11.25

* chore(deps): minor/patch

* fix: lockfile

* chore: more
2026-09-03 10:27:10 +00:00
d634694c3f fix: update collector options.time and options.idle in resetTimer (#11534)
* fix(Collector): update options.time and options.idle in resetTimer

* fix: apply suggestions from code review

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>
2026-08-31 21:25:15 +00:00
Asad Humayunandkodiakhq[bot] 5608023103 test(structures): add test for Emoji structure (#11509)
* test(structures): add test for Emoji structure

* test: use realistic snowflake ids

* test(structures): getters that rely on isIdSet return null if no id set

* style: compress into one test

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-08-31 20:48:09 +00:00
10f059e3ca fix: ignore None flags on serialization of bitfields (#11563)
* fix: ignore `None` flags on serialization of bitfields

* fix: parantheses

* Apply suggestions from code review

Co-authored-by: Almeida <github@almeidx.dev>

* chore: fmt

---------

Co-authored-by: Almeida <github@almeidx.dev>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-08-30 09:19:33 +00:00
Asad Humayun a81ed8a306 feat(structures): add Presences structures (#11411)
* feat(structures): presence structures

* feat(structures): add GatewayPresenceActivityTimestamps substructure

* feat(structures): add GatewayPresenceActivitySecrets

* feat(structures): add GatewayPresenceActivityParty

* feat(structures): add GatewayPresenceActivityEmoji

* feat(structures): add GatewayPresenceActivityButton

* feat(structures): add GatewayPresenceActivityAssets

* feat(structures): add ActivityFlagBitFields

* feat(structures): add GatewayPresenceActivity structure

* docs(structures): update class remark on GatewayPresenceActivityButton

* feat(structures): add GatewayPresenceClientStatus

* feat(structures): add GatewayPresenceUpdate

* docs(structures): update `GatewayPresenceActivity#flags` for clarity

* fix(structures): return correct value for getter on ActivitySecrets

* test(structures): add tests & use correct type on ActivityTimestamps

* docs: rm todo comment

* fix: correct incorrect implementation of party#id

* chore: rename structures

* feat(structures): update tests, comments, date getters

* feat: split `size` into 2 different getters

* test: update tests for new getters

* refactor(structures)!: use xDate convention in favour of xAt

* fix(structures): add `inviteCoverImage` getter + update tests

* test(structures): apply review feedback

* chore: use `dateToDiscordISOTimestamp` and cleanup tests

* feat: isArrayFieldSet typeguard & tidy up

* feat(structures): add URL getters, typeguards, update tests

* test(presence): review feedback

* test(presence): use realistic values

This uses values from the Discord API docs.

* test: rename tests to Presence instead of GatewayPresence

* test(structures): review feedback

* docs: use new discord docs links in jsdoc

* fix: address feedback for tests

Make some changes to all tests;
- use a standard beforeEach block to use a new instance on each test for robustness;
- check that the patched result contains the expected patched values as opposed to testing for any change across the structure, for accuracy.
2026-08-29 06:39:46 +00:00
spokodev a258a488b9 fix(util): cache nullish values in lazy() (#11564)
lazy() used defaultValue ??= cb(), so a callback returning null or undefined
was never cached and re-ran on every call, breaking the compute-once contract
(any side effect in the callback repeated). Track a called flag instead of
relying on value nullishness.
2026-08-27 14:01:43 +01:00
Denis-Adrian Cristeaandckohen 99af6d8bec feat(rest)!: add rejectOnRateLimit on a per-request basis (#11600)
BREAKING CHANGE: `RESTOptions#rejectOnRateLimit` now only accepts `boolean` or `RateLimitQueueFilter`

Co-authored-by: ckohen <chaikohen@gmail.com>
2026-08-17 13:13:35 +03:00
c9855614c4 feat: rpc (#11026)
* feat: rpc

* chore: update CODEOWNERS

* fix: linter rules

* chore: add rpc to workflows and readme

* chore: remove rpc tests folder

* chore: add package details from rpc repo

* docs: rpc docs readme

* chore: fix rpc license

* chore: remove vitest

* fix: rpc links

* build: dependencies

* docs: "id"

* chore: awkward doc spacing

* chore: lockfile

* chore: clean stuff

* fix: apply suggested changes

* chore: suggested changes

* chore: suggested changes

* chore: suggested changes

* fix: silly things

* chore: suggested changes

* chore: suggested changes

* chore: suggested changes

* chore: suggested changes

* suggested changes

* remove examples in favor of later guide additions

* add very basic guide for rpc

* meta config changes for guide

* guide changes

* suggested changes

* suggested changes

* Update packages/rpc/package.json

Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com>

* Update packages/rpc/package.json

* fix: revert version bumps, use esm

* fix regression from suggested change

* suggested changes

* forgot to remove extra image

---------

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com>
2026-08-14 14:28:37 +00:00
Almeidaandkodiakhq[bot] 905445ec97 fix: prevent AbortSignal event listener leak (#11594)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-08-13 10:22:01 +00:00
Almeida b1a77045f1 types: fix Client#pings visibility and stale private declarations (#11597)
- `Client#pings` is documented as public in the JSDoc, shows up on the
  documentation site, but was typed as `private` for some reason
- rename `Client#packetQueue` to `incomingPacketQueue` since
  `packetQueue` doesn't exist
- remove `ApplicationCommand.isAPICommandData`, which seemingly never
  actually existed at runtime
2026-08-08 21:25:38 +00:00
Kushida 4b3f1c166d fix(builders): preserve empty attachment files (#11588) 2026-07-29 17:31:30 +00:00
TrivCodez 219ad7ba07 fix: Typos in apps/guide documentation files (#11518)
* Fix typos in CONTRIBUTING.md

- "intsructions" → "instructions"
- "descrbing" → "describing"

* Fix wording in README.md

- "check your changes out locally" → "check your changes locally" (remove redundant "out")

This addresses the full scope of issue #11517.
2026-07-21 00:10:15 +00:00
2de90a7674 fix(core): webhook delete query type, removeMember await (#11483)
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-07-20 11:28:46 +00:00
2037593d8d feat: file_types for builders (#11579)
* feat: `file_types`

* fix: .js extension

Co-authored-by: Almeida <github@almeidx.dev>

* fix: adding

* test: use `Reflect`

* fix: update deprecated usage

---------

Co-authored-by: Almeida <github@almeidx.dev>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-07-20 05:29:59 +00:00
Jiralite c35a06663e feat: file types for discord.js (#11580)
* feat: file types

* fix(ApplicationCommandNonOptions): make it actually work
2026-07-19 22:35:39 +00:00
Almeidaandkodiakhq[bot] c21f0af7db feat(BaseChannel): add permissions and appPermissions (#11577)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-07-19 16:20:25 +00:00
Jiralite 974a8c891f fix(makeURLSearchParams): allow arrays (#11578)
* fix: allow arrays

* refactor: comma
2026-07-19 14:44:49 +00:00
d29e25d24d feat(guide): added additional modal components (#11511)
* feat(guide): added additional modal components

* fix(guide): corrected code snippets

* fix(guide): code highlight fix

* fix(guide): fixed wording

* fix(guide): added image

* fix(guide): fixed gammer from code rabbit comments

* Update apps/guide/content/docs/legacy/interactions/modals.mdx

Co-authored-by: Almeida <github@almeidx.dev>

* Update apps/guide/content/docs/legacy/interactions/modals.mdx

Co-authored-by: Almeida <github@almeidx.dev>

* Update apps/guide/content/docs/legacy/interactions/modals.mdx

Co-authored-by: Almeida <github@almeidx.dev>

---------

Co-authored-by: Souji <timoqueezle@gmail.com>
Co-authored-by: Almeida <github@almeidx.dev>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-07-17 13:22:33 +00:00
Jiralite c2d0781ddb build!: bump to Node.js 24 (#11566)
build: bump to Node.js 24
2026-07-17 14:05:28 +01:00
けんちる / Kento Watanabeandkodiakhq[bot] c73e2a76d1 fix(VoiceConnection): handle close codes that should not reconnect (#11567)
* fix(VoiceConnection): handle close codes that should not reconnect

* docs(VoiceConnection): update close code documentation

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-07-17 00:02:47 +01:00
9771d9ef55 fix: detect spoiler attachments with flag (#11560)
Co-authored-by: Almeida <github@almeidx.dev>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-07-16 22:46:30 +00:00
spokodevandkodiakhq[bot] e51936771f fix(builders): require select menu max_values to be at least 1 (#11565)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-07-16 22:39:17 +00:00
Jiralite 11a3c033c7 build: Bump discord-api-types to 0.38.50 (#11555)
* build: bump discord-api-types

* test: fix test

* build: discord-api-types 0.38.50

* test: ignore test
2026-07-16 22:19:52 +00:00
Kshitij Anuragandkodiakhq[bot] bf55791a6d feat(UsersAPI): add deleteApplicationRoleConnection() method (#11530)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-07-16 22:06:13 +00:00
Qjuhandkodiakhq[bot] 6e81ea771d chore(api-extractor): adapt upstream changes (#11520)
* chore(api-extractor): adapt upstream changes

* chore: guess it does fix our issue after all...

* chore: use `options` as synthetic name

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-07-08 05:45:18 +00:00
Qjuhandkodiakhq[bot] 7afe2015ce fix(scripts): correctly mark external docs on non-main tags (#11514)
* fix(scripts): correctly mark external docs on non-main tags

* fix: missing scoped package name

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-07-05 09:57:09 +00:00
b9c59f784e feat!: make voice receivers return AudioPacket classes instead of just Audio (#11432)
BREAKING CHANGE: Voice receive streams now emit `AudioPacket` instead of a raw Opus `Buffer`.

---------

Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com>
Co-authored-by: Almeida <github@almeidx.dev>
2026-06-27 19:21:33 +01:00
Jiraliteandkodiakhq[bot] 8ceabfc276 ci(lock): Fix locking issues (#11562)
ci: fix locking issues

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-06-26 07:25:04 +00:00
Almeida 05528e4d5c fix(guide): handle external links in sidebar tabs (#11559) 2026-06-26 06:46:13 +00:00
Dhruv 4b450968ab fix(structures): zero-pad ms in dateToDiscordISOTimestamp (#11557) 2026-06-23 19:02:13 +01:00
Almeidaandkodiakhq[bot] a831287b9b fix(ShardingManager): default api url (#11541)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-06-17 10:46:30 +00:00
Jiraliteandkodiakhq[bot] c6c78868ce feat(guild): Support message search (#11552)
feat(guild): message search

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-06-13 20:11:23 +00:00
Jiralite c20fdd797a fix(invite): Return RESTDeleteAPIInviteResult on delete (#11551)
fix(invite): return `RESTDeleteAPIInviteResult` on delete
2026-06-13 12:13:26 +00:00
3d6121589f fix(RoleManager): allow null in RoleColorsResolvable to clear gradient colors (#11536)
* fix(RoleManager): allow null in RoleColorsResolvable to clear gradient colors

* docs(RoleManager): document nullable secondary/tertiary role colors

* refactor: split RoleColorsResolvable for create vs edit

* style: apply prettier formatting

* refactor: deduplicate RoleColors interfaces via inheritance

Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com>

* refactor: move colors out of RoleData

---------

Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-05-26 16:38:08 +00:00
Almeida c95cbf2678 fix(StageInstanceManager#create): correctly resolve guildScheduledEvent (#11540) 2026-05-25 18:05:52 +00:00
Jiraliteandkodiakhq[bot] e721e51b03 ci(deprecateVersion): Fix empty message (#11491)
* ci: fix empty `message`

* refactor: move default again

* fix: move others too

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-05-23 06:55:49 +00:00
Qjuhandkodiakhq[bot] 0d5a0a69c3 fix: export all used types (#11526)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-05-23 06:18:45 +00:00
Almeida 07f1d8f5b3 feat(core)!: rename getAllMembers to getMembers with query support (#11484)
BREAKING CHANGE: getAllMembers has been removed. Use getMembers instead, which accepts an optional query parameter.
2026-05-23 02:05:55 +01:00
Almeidaandkodiakhq[bot] 37892ead4c feat(ClientApplication): add fetchActivityInstance method (#11481)
* feat(ClientApplication): add fetchActivityInstance method

* refactor: requested changes

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-05-22 22:53:39 +00:00
Qjuhandkodiakhq[bot] 9f111ed4df docs(Role): fix Role#tags docs (#11524)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-05-22 22:51:00 +00:00
c313bc58f1 docs: fix typos and duplicated words in comments and guide (#11502)
- fix "wether" -> "whether" and "dependant" -> "dependent" in RedisGateway JSDoc
- fix duplicated "the" in useful-packages guide
- fix duplicated "for" in two internal JSDoc param descriptions

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-05-22 22:47:15 +00:00
76478c4ba5 feat(ShardingManager): allow setting custom api url (#11471)
* feat(ShardingManager): allow setting custom api url

* Apply suggestion from @Jiralite

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>
2026-05-22 23:40:09 +01:00