dependabot[bot] and Fleny
91f8d123ec
build(deps-dev): bump the library-bumps group across 1 directory with 6 updates ( #5417 )
...
* build(deps-dev): bump the library-bumps group across 1 directory with 6 updates
Bumps the library-bumps group with 6 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome ) | `2.5.10` | `2.5.13` |
| [lint-staged](https://github.com/lint-staged/lint-staged ) | `17.4.1` | `17.5.1` |
| [@swc/core](https://github.com/swc-project/swc/tree/HEAD/packages/core ) | `1.16.1` | `1.16.2` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) | `26.4.0` | `26.5.1` |
| [mocha](https://github.com/mochajs/mocha ) | `11.8.0` | `12.0.0` |
| [tsx](https://github.com/privatenumber/tsx ) | `4.23.12` | `4.23.13` |
Updates `@biomejs/biome` from 2.5.10 to 2.5.13
- [Release notes](https://github.com/biomejs/biome/releases )
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md )
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.5.13/packages/@biomejs/biome )
Updates `lint-staged` from 17.4.1 to 17.5.1
- [Release notes](https://github.com/lint-staged/lint-staged/releases )
- [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md )
- [Commits](https://github.com/lint-staged/lint-staged/compare/v17.4.1...v17.5.1 )
Updates `@swc/core` from 1.16.1 to 1.16.2
- [Release notes](https://github.com/swc-project/swc/releases )
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md )
- [Commits](https://github.com/swc-project/swc/commits/v1.16.2/packages/core )
Updates `@types/node` from 26.4.0 to 26.5.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `mocha` from 11.8.0 to 12.0.0
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v11.8.0...v12.0.0 )
Updates `tsx` from 4.23.12 to 4.23.13
- [Release notes](https://github.com/privatenumber/tsx/releases )
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs )
- [Commits](https://github.com/privatenumber/tsx/compare/v4.23.12...v4.23.13 )
---
updated-dependencies:
- dependency-name: "@biomejs/biome"
dependency-version: 2.5.13
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: library-bumps
- dependency-name: lint-staged
dependency-version: 17.5.1
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: library-bumps
- dependency-name: "@swc/core"
dependency-version: 1.16.2
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: library-bumps
- dependency-name: "@types/node"
dependency-version: 26.5.1
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: library-bumps
- dependency-name: mocha
dependency-version: 12.0.0
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: library-bumps
- dependency-name: tsx
dependency-version: 4.23.13
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: library-bumps
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update biome.jsonc
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <fleny113@outlook.com >
2026-09-13 14:17:46 +02:00
93786b6740
fix(bot): keep an explicit lastShardId of 0 in bot.start() ( #5382 )
...
bot.start() derived lastShardId from the recommended shard count whenever
`!options.gateway?.lastShardId` held, so an explicit `lastShardId: 0` — a
valid single shard configuration — was treated as absent and overwritten,
spawning every recommended shard in a process meant to run one.
Compare against undefined instead.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com >
Co-authored-by: Fleny <Fleny113@outlook.com >
2026-08-30 17:37:22 +02:00
dependabot[bot] and Fleny
62a4478de8
build(deps-dev): bump the library-bumps group with 5 updates ( #5383 )
...
* build(deps-dev): bump the library-bumps group with 5 updates
Bumps the library-bumps group with 5 updates:
| Package | From | To |
| --- | --- | --- |
| [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome ) | `2.5.9` | `2.5.10` |
| [lint-staged](https://github.com/lint-staged/lint-staged ) | `17.3.0` | `17.4.1` |
| [turbo](https://github.com/vercel/turborepo ) | `2.10.11` | `2.10.12` |
| [typedoc-plugin-markdown](https://github.com/typedoc2md/typedoc-plugin-markdown/tree/HEAD/packages/typedoc-plugin-markdown ) | `4.12.0` | `4.13.0` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) | `26.2.0` | `26.4.0` |
Updates `@biomejs/biome` from 2.5.9 to 2.5.10
- [Release notes](https://github.com/biomejs/biome/releases )
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md )
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.5.10/packages/@biomejs/biome )
Updates `lint-staged` from 17.3.0 to 17.4.1
- [Release notes](https://github.com/lint-staged/lint-staged/releases )
- [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md )
- [Commits](https://github.com/lint-staged/lint-staged/compare/v17.3.0...v17.4.1 )
Updates `turbo` from 2.10.11 to 2.10.12
- [Release notes](https://github.com/vercel/turborepo/releases )
- [Changelog](https://github.com/vercel/turborepo/blob/main/RELEASE.md )
- [Commits](https://github.com/vercel/turborepo/compare/v2.10.11...v2.10.12 )
Updates `typedoc-plugin-markdown` from 4.12.0 to 4.13.0
- [Release notes](https://github.com/typedoc2md/typedoc-plugin-markdown/releases )
- [Changelog](https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/CHANGELOG.md )
- [Commits](https://github.com/typedoc2md/typedoc-plugin-markdown/commits/typedoc-plugin-markdown@4.13.0/packages/typedoc-plugin-markdown )
Updates `@types/node` from 26.2.0 to 26.4.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
---
updated-dependencies:
- dependency-name: "@biomejs/biome"
dependency-version: 2.5.10
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: library-bumps
- dependency-name: lint-staged
dependency-version: 17.4.1
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: library-bumps
- dependency-name: turbo
dependency-version: 2.10.12
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: library-bumps
- dependency-name: typedoc-plugin-markdown
dependency-version: 4.13.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: library-bumps
- dependency-name: "@types/node"
dependency-version: 26.4.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: library-bumps
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update biome.jsonc
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <fleny113@outlook.com >
2026-08-30 17:22:45 +02:00
Link
6cb8d7ce25
chore: Bump version to v22-beta.2 ( #5364 )
2026-08-28 05:33:04 -07:00
dependabot[bot] and Fleny
72914db0b6
build(deps-dev): bump the library-bumps group with 3 updates ( #5355 )
...
* build(deps-dev): bump the library-bumps group with 3 updates
Bumps the library-bumps group with 3 updates: [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome ), [turbo](https://github.com/vercel/turborepo ) and [@swc/core](https://github.com/swc-project/swc/tree/HEAD/packages/core ).
Updates `@biomejs/biome` from 2.5.8 to 2.5.9
- [Release notes](https://github.com/biomejs/biome/releases )
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md )
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.5.9/packages/@biomejs/biome )
Updates `turbo` from 2.10.9 to 2.10.11
- [Release notes](https://github.com/vercel/turborepo/releases )
- [Changelog](https://github.com/vercel/turborepo/blob/main/RELEASE.md )
- [Commits](https://github.com/vercel/turborepo/compare/v2.10.9...v2.10.11 )
Updates `@swc/core` from 1.15.47 to 1.16.1
- [Release notes](https://github.com/swc-project/swc/releases )
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md )
- [Commits](https://github.com/swc-project/swc/commits/v1.16.1/packages/core )
---
updated-dependencies:
- dependency-name: "@biomejs/biome"
dependency-version: 2.5.9
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: library-bumps
- dependency-name: turbo
dependency-version: 2.10.11
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: library-bumps
- dependency-name: "@swc/core"
dependency-version: 1.16.1
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: library-bumps
...
Signed-off-by: dependabot[bot] <support@github.com >
* bump biome schema version
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <fleny113@outlook.com >
2026-08-24 10:29:38 +02:00
dependabot[bot] and Fleny
a9a2561a40
build(deps-dev): bump the library-bumps group across 1 directory with 8 updates ( #5320 )
...
* build(deps-dev): bump the library-bumps group across 1 directory with 8 updates
Bumps the library-bumps group with 8 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome ) | `2.5.7` | `2.5.8` |
| [lint-staged](https://github.com/lint-staged/lint-staged ) | `17.2.0` | `17.3.0` |
| [turbo](https://github.com/vercel/turborepo ) | `2.10.7` | `2.10.9` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) | `26.1.2` | `26.2.0` |
| [sinon](https://github.com/sinonjs/sinon ) | `22.0.0` | `22.1.0` |
| [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon ) | `21.0.1` | `22.0.0` |
| [tsx](https://github.com/privatenumber/tsx ) | `4.23.9` | `4.23.12` |
| [ws](https://github.com/websockets/ws ) | `8.21.2` | `8.21.3` |
Updates `@biomejs/biome` from 2.5.7 to 2.5.8
- [Release notes](https://github.com/biomejs/biome/releases )
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md )
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.5.8/packages/@biomejs/biome )
Updates `lint-staged` from 17.2.0 to 17.3.0
- [Release notes](https://github.com/lint-staged/lint-staged/releases )
- [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md )
- [Commits](https://github.com/lint-staged/lint-staged/compare/v17.2.0...v17.3.0 )
Updates `turbo` from 2.10.7 to 2.10.9
- [Release notes](https://github.com/vercel/turborepo/releases )
- [Changelog](https://github.com/vercel/turborepo/blob/main/RELEASE.md )
- [Commits](https://github.com/vercel/turborepo/compare/v2.10.7...v2.10.9 )
Updates `@types/node` from 26.1.2 to 26.2.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `sinon` from 22.0.0 to 22.1.0
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/main/CHANGES.md )
- [Commits](https://github.com/sinonjs/sinon/compare/v22.0.0...v22.1.0 )
Updates `@types/sinon` from 21.0.1 to 22.0.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon )
Updates `tsx` from 4.23.9 to 4.23.12
- [Release notes](https://github.com/privatenumber/tsx/releases )
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs )
- [Commits](https://github.com/privatenumber/tsx/compare/v4.23.9...v4.23.12 )
Updates `ws` from 8.21.2 to 8.21.3
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/compare/8.21.2...8.21.3 )
---
updated-dependencies:
- dependency-name: "@biomejs/biome"
dependency-version: 2.5.8
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: library-bumps
- dependency-name: lint-staged
dependency-version: 17.3.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: library-bumps
- dependency-name: turbo
dependency-version: 2.10.9
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: library-bumps
- dependency-name: "@types/node"
dependency-version: 26.2.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: library-bumps
- dependency-name: sinon
dependency-version: 22.1.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: library-bumps
- dependency-name: "@types/sinon"
dependency-version: 22.0.0
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: library-bumps
- dependency-name: tsx
dependency-version: 4.23.12
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: library-bumps
- dependency-name: ws
dependency-version: 8.21.3
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: library-bumps
...
Signed-off-by: dependabot[bot] <support@github.com >
* bump biome.jsonc schema
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <fleny113@outlook.com >
2026-08-15 19:23:00 +02:00
Fleny
8a66a76b2a
fix!: Accept only raw data uri schemes in rest ( #5317 )
...
Some endpoints allowed for URLs to be passed in and converted to base64 data uri schemes.
Now the user should call urlToBase64 if they were using this
2026-08-15 18:43:33 +05:30
Fleny and Awesome Stickz
f20c2b7300
feat: Add file type filtering for modals & / commands ( #5236 )
...
* feat: Add file type filtering for modals & / commands
* Add fileTypes to ApplicationCommandOption
* update comments
---------
Co-authored-by: Awesome Stickz <38146668+AwesomeStickz@users.noreply.github.com >
2026-08-14 22:19:09 +05:30
dependabot[bot] and Fleny
f8834c0955
build(deps-dev): bump mocha from 11.7.6 to 11.8.0 ( #5282 )
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 11.7.6 to 11.8.0.
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/v11.8.0/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v11.7.6...v11.8.0 )
---
updated-dependencies:
- dependency-name: mocha
dependency-version: 11.8.0
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <Fleny113@outlook.com >
2026-08-09 18:04:17 +02:00
dependabot[bot] and Fleny
e35218708b
build(deps-dev): bump tsx from 4.23.5 to 4.23.9 ( #5284 )
...
Bumps [tsx](https://github.com/privatenumber/tsx ) from 4.23.5 to 4.23.9.
- [Release notes](https://github.com/privatenumber/tsx/releases )
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs )
- [Commits](https://github.com/privatenumber/tsx/compare/v4.23.5...v4.23.9 )
---
updated-dependencies:
- dependency-name: tsx
dependency-version: 4.23.9
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <Fleny113@outlook.com >
2026-08-09 17:58:19 +02:00
dependabot[bot] and Fleny
ab59534fd2
build(deps-dev): bump ws from 8.21.1 to 8.21.2 ( #5287 )
...
Bumps [ws](https://github.com/websockets/ws ) from 8.21.1 to 8.21.2.
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/compare/8.21.1...8.21.2 )
---
updated-dependencies:
- dependency-name: ws
dependency-version: 8.21.2
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <Fleny113@outlook.com >
2026-08-09 17:55:25 +02:00
dependabot[bot] and Fleny
47027293d0
build(deps-dev): bump @biomejs/biome from 2.5.6 to 2.5.7 ( #5286 )
...
* build(deps-dev): bump @biomejs/biome from 2.5.6 to 2.5.7
Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome ) from 2.5.6 to 2.5.7.
- [Release notes](https://github.com/biomejs/biome/releases )
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md )
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.5.7/packages/@biomejs/biome )
---
updated-dependencies:
- dependency-name: "@biomejs/biome"
dependency-version: 2.5.7
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* build(deps-dev): bump @biomejs/biome from 2.5.6 to 2.5.7 in /website (#5285 )
Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome ) from 2.5.6 to 2.5.7.
- [Release notes](https://github.com/biomejs/biome/releases )
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md )
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.5.7/packages/@biomejs/biome )
---
updated-dependencies:
- dependency-name: "@biomejs/biome"
dependency-version: 2.5.7
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update biome.jsonc
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <fleny113@outlook.com >
2026-08-09 17:46:30 +02:00
Fleny
5f7a06ccc5
feat: Add VR client status support ( #5270 )
2026-08-04 20:55:22 +05:30
Fleny
04eba2ba1e
feat: Add stream request activity type ( #5271 )
2026-08-04 20:48:41 +05:30
74f93eda6d
feat(rest): add signal to makeRequest and stop re-sending proxied requests by default ( #5158 )
...
* fix(rest): don't resend timed out requests when proxied
When a request to a rest proxy hits requestTimeout, only our side of the
connection gets aborted - the proxy keeps processing the request (often
it's just queued behind a rate limit) and it can still reach Discord.
Resending it executes non-idempotent requests twice. We hit this in
production: a single ticket action created several empty channels because
the channel create kept being resent while the original was waiting out a
rate limit on the proxy.
Timeouts now fail immediately in proxy mode. Only attempts that never
reached the proxy at all (connection refused/reset) are retried, with a
small backoff so a proxy that's restarting isn't hammered in a tight
loop. Direct-to-Discord behavior is unchanged.
Follow-up to #5085 .
* feat(rest): support aborting requests that are still queued
* fix(rest): let fetch handle the abort signal
Combine the caller signal with the timeout via AbortSignal.any like
review suggested, so aborting also cancels an attempt already in
flight. Same as nirn - the discord request inherits the incoming
request context, so a disconnect cancels it mid flight too. Dropped
the dispatched flag, not needed anymore. Also wired the signal into
the bigbot rest example off the close event.
* fix(rest): drop redundant abort check, fetch already does it
* tests: Fix broken tests due to sinon fake timers and Node.js v22 microtask behavior
* feat(rest): let users opt into retrying timed out proxied requests
* fix(rest): cap proxy connection retries and reuse the error format
Retrying a request that never reached the proxy was bound by maxRetryCount,
which is Infinity by default, so a proxy that stays down kept every request
alive forever. Cap it at 3 attempts instead.
The proxied path also threw the raw fetch error, so proxy users got a
different error shape than everyone else. Both paths now build the error
through the same helper.
* fix(rest): make the proxy connection retry count configurable
Re-sending a request that never reached the proxy is now bound by
rest.maxProxyConnectionRetryCount (3 by default, and by maxRetryCount when
that one is lower) instead of a hardcoded limit.
Also moves the error builder and the error prototype out of
createRestManager since neither depends on anything in it.
* fix(rest): don't re-send proxied requests that already reached the proxy
A timed out attempt only aborts our side of the connection, the proxy
keeps processing the request and it can still reach Discord, so re-sending
it executes non-idempotent requests twice. proxy.retryOnTimeout opts back
in for setups that deduplicate requests. Connection failures reject right
away, same as a failed fetch does when talking to Discord directly.
Moves the error building into rest.createRequestError so a proxied request
fails with the same message and cause as a direct one.
* fix(rest): re-send proxied requests that never reached the proxy
A failed fetch is only safe to send again when it failed while connecting,
the proxy restarting being the usual case. A socket that dies once the
request is on the wire may have been forwarded to Discord already, so those
keep rejecting right away.
Bound by maxProxyConnectionRetryCount, 3 by default, since maxRetryCount is
Infinity and a proxy that stays down would keep every request alive.
* fix(rest): recognize connect failures on Deno too
Deno puts no code on the errors fetch throws, the only place the phase the
request failed in shows up is the message, so match on that as well.
* fix(rest): go off the phase a request failed in, not the error code
Node.js names the syscall that failed, so matching on that covers every
reason a connection could not be established (refused, host or network
unreachable, dns) instead of the few codes that were listed, and it is
read or write once the request is on the wire. Bun reports a code of its
own and Deno only says it in the message, so those two keep their own
check.
* fix(rest): never re-send once an error says the request went out
A connection that dies while it is carrying the request is reported in
terms of that request, and a runtime can wrap that in the wording for a
failure to connect, which used to read as never having sent anything.
Looking for it first, and over the whole chain, settles those.
Also drops the codes and wordings that were guesses. What is left is what
node, bun and deno were seen to report, with the node ones kept as a
fallback for a runtime that borrows the code without the syscall.
* fix(rest): release cancelled requests and gate proxy re-sends behind one option
Cancelling a request only settled the caller. The entry stayed in the queue,
spent a rate limit slot and reached fetch with an aborted signal. The waiter is
spliced out of `waiting` now, `Queue.makeRequest` stops before pushing to
`pending` when the signal fired while it waited for a slot, and `processPending`
drops an entry whose caller gave up before anything is spent on it.
`processWaiting` cleans up when its loop ends, otherwise a queue whose waiters
were all cancelled never schedules its own deletion.
In proxy mode an abort landing while the response body was being read was
swallowed by the `null` fallback and came back as a successful empty response. A
read the abort killed rejects now, one that finished is still returned, the same
way the queued path keeps a result that arrived before the signal fired.
`proxy.retryOnTimeout` becomes `proxy.retryRequests` and covers every attempt
that failed without producing a response. Telling a failure to connect apart
from a connection that died carrying the request meant reading syscalls, error
codes and error text from three runtimes, and it could never be more than a
guess: fetch does not say which phase a failure happened in, and a wrong guess
re-sends a request the proxy already has. So that block is gone and the caller
decides, the same way it already did for timeouts. One `retryCount` bounded by
`maxRetryCount` and `maxProxyRetryCount`, so alternating failures can no longer
hand out more re-sends than the cap allows.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
* fix(rest): give a proxy that is restarting time to come back
Three re-sends 250ms apart is 750ms of patience, which is sized for a blip
rather than for the case it was added for. A container being restarted or
redeployed is not back in that time, so the budget ran out before the proxy was
reachable again.
Each further attempt now waits 250ms longer than the one before it, and the
default count is 15, so the ladder spans about 30 seconds. Stepping up rather
than doubling keeps the gaps small enough to notice the proxy coming back
instead of sleeping well past it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
* refactor(rest): move the proxy re-send delay onto the manager
It was a module level constant sitting next to maxProxyRetryCount's own limit, so it is a manager field now like the counts it goes with, and the tests set it to 0 instead of really waiting out the backoff.
* Update packages/rest/tests/unit/manager.spec.ts
Co-authored-by: Fleny <Fleny113@outlook.com >
* Run biome
---------
Co-authored-by: Fleny <fleny113@outlook.com >
Co-authored-by: Awesome Stickz <38146668+AwesomeStickz@users.noreply.github.com >
Co-authored-by: Claude Opus 5 <noreply@anthropic.com >
2026-08-04 20:44:22 +05:30
Fleny
fca3cbba5e
build(dev-deps): Replace ts-node with tsx ( #5261 )
...
ts-node hasn't been maintained for a long time now and breaks with TS 7 due to the removal of varius APIs
2026-08-03 13:55:10 +05:30
dependabot[bot] and Fleny
0016560de5
build(deps-dev): bump @swc/core from 1.15.46 to 1.15.47 ( #5260 )
...
Bumps [@swc/core](https://github.com/swc-project/swc/tree/HEAD/packages/core ) from 1.15.46 to 1.15.47.
- [Release notes](https://github.com/swc-project/swc/releases )
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md )
- [Commits](https://github.com/swc-project/swc/commits/v1.15.47/packages/core )
---
updated-dependencies:
- dependency-name: "@swc/core"
dependency-version: 1.15.47
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <Fleny113@outlook.com >
2026-08-02 15:07:14 +02:00
dependabot[bot] and Fleny
302a5bb577
build(deps-dev): bump @types/node from 26.1.1 to 26.1.2 ( #5255 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 26.1.1 to 26.1.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-version: 26.1.2
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <Fleny113@outlook.com >
2026-08-02 14:58:31 +02:00
dependabot[bot] and Fleny
a275bc51d0
build(deps-dev): bump @biomejs/biome from 2.5.5 to 2.5.6 ( #5253 )
...
* build(deps-dev): bump @biomejs/biome from 2.5.5 to 2.5.6
Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome ) from 2.5.5 to 2.5.6.
- [Release notes](https://github.com/biomejs/biome/releases )
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md )
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.5.6/packages/@biomejs/biome )
---
updated-dependencies:
- dependency-name: "@biomejs/biome"
dependency-version: 2.5.6
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* build(deps-dev): bump @biomejs/biome from 2.5.5 to 2.5.6 in /website (#5259 )
Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome ) from 2.5.5 to 2.5.6.
- [Release notes](https://github.com/biomejs/biome/releases )
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md )
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.5.6/packages/@biomejs/biome )
---
updated-dependencies:
- dependency-name: "@biomejs/biome"
dependency-version: 2.5.6
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update biome.jsonc
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <fleny113@outlook.com >
2026-08-02 14:52:53 +02:00
a6b940677e
feat(rest): add guild message search support ( #5233 )
...
* feat(rest): add guild message search support
* fix(types): address guild message search review feedback
* Update packages/rest/src/routes.ts
Co-authored-by: Awesome Stickz <38146668+AwesomeStickz@users.noreply.github.com >
* Update packages/types/src/discord/message.ts
Co-authored-by: Awesome Stickz <38146668+AwesomeStickz@users.noreply.github.com >
* Update packages/rest/src/routes.ts
Co-authored-by: Awesome Stickz <38146668+AwesomeStickz@users.noreply.github.com >
* apply requested changes
---------
Co-authored-by: Fleny <Fleny113@outlook.com >
Co-authored-by: Awesome Stickz <38146668+AwesomeStickz@users.noreply.github.com >
2026-08-02 10:25:05 +02:00
Awesome Stickz
4c9522f14d
fix(types): structure typo in discord docs link ( #5245 )
2026-08-01 08:32:19 +02:00
Fleny and Link
4581222cf4
feat(transformers)!: Partial transformers ( #4436 )
...
* refactor(bot)!: setup desired properties for all transformers
SetupDesiredProps when is given an object that does not corrispond to a transformer object that supports desired properties will behave like TransformProperty on the entire object as when it tries to get the properties for said object it will find `never` as the props and for `IsKeyDesired` a props of `never` means that all props are desired.
* feat(transformers)!: Handle partials in transformers
* Add expiresAt to invite create event
* Use Equals helper, clean up a bit the code
* Explicit the IsKeyDesired TProps never behavior
* Fix type errors
* format
* Add all trasformer objects to bot.transformers.$inferredTypes
* Use transfromerInformations for bot.transformers.$inferredTypes
* code review
* code review
* fix component transformer
* fix
* Update packages/bot/src/transformers/types.ts
* Fixes from Tri (+ GPT sol) code review
---------
Co-authored-by: Link <link20050703@gmail.com >
2026-07-31 15:12:15 +05:30
Fleny and stickz
eb4cdaa0f5
fix: Add missing collectibles field to guild member ( #5197 )
...
* fix: Add missing collectibles field to guild member
* Update packages/bot/src/transformers/types.ts
Co-authored-by: stickz <38146668+AwesomeStickz@users.noreply.github.com >
2026-07-30 12:42:05 +05:30
Fleny and stickz
5fc932f473
feat!: Document more attachment flags and fields ( #5234 )
...
* feat: Document more attachment flags and fields
* Update packages/types/src/discord/message.ts
Co-authored-by: stickz <38146668+AwesomeStickz@users.noreply.github.com >
* fix!: Add missing optionals, remove EmbedThumbnail
2026-07-30 12:39:32 +05:30
Fleny and Awesome Stickz
15511d2ddf
feat: shared client theme ( #5195 )
...
* feat: shared client theme
* fix missing ? and comment in CreateMessageOptions
* Apply suggestions from code review
Co-authored-by: Awesome Stickz <38146668+AwesomeStickz@users.noreply.github.com >
* replace message transformer CRLF with LF
* fix type error
2026-07-29 17:47:43 +05:30
Fleny
45ff89ca9e
feat: Document attachment editing and is_spoiler param ( #5235 )
2026-07-29 17:16:29 +05:30
Fleny and Awesome Stickz
ce2272e359
feat: Add lobby messages and lobby invites ( #5232 )
...
* feat: Add lobby messages and lobby invites
* Update packages/bot/src/transformers/lobby.ts
Co-authored-by: Awesome Stickz <38146668+AwesomeStickz@users.noreply.github.com >
2026-07-29 17:13:11 +05:30
Fleny
ec8852740d
feat: Add bulk update lobby members endpoint ( #5231 )
2026-07-29 11:36:23 +05:30
Fleny
fa338e6447
feat: Add deleteCurrentUserApplicationRoleConnection endpoint ( #5230 )
2026-07-29 11:30:08 +05:30
Fleny
57c1a0191a
feat: Add channelType to DiscordMessageCreateExtra ( #5202 )
2026-07-29 11:27:11 +05:30
Fleny
3bdc792c25
feat: server-side lobby message moderation metadata API ( #5191 )
2026-07-29 11:24:17 +05:30
Fleny
b481d0a96e
feat: add app_permissions to channel resolved data ( #5185 )
2026-07-29 11:21:22 +05:30
Fleny
451894ce7c
fix: Add missing optional modifier to event_webhooks_status in DiscordApplication interface ( #5198 )
2026-07-29 11:15:37 +05:30
Fleny
a0fb820e8a
fix: Update comment on CreateApplicationCommand.handler ( #5187 )
...
The comment change to InteractionCallbackOptions is included as it looks like there was a mistake as "create-guild-application-command-json-params" does not have a with_response parameter
2026-07-29 11:12:44 +05:30
Fleny and Awesome Stickz
ad26db8c98
feat: document modify guild channel positions parent_id and permissions restrictions ( #5184 )
...
* feat: document modify guild channel positions parent_id and permissions restrictions
* Update opcode name
Co-authored-by: Awesome Stickz <38146668+AwesomeStickz@users.noreply.github.com >
2026-07-26 22:03:18 +05:30
Fleny and Awesome Stickz
b0b27a2aab
fix: Add notes for min_values requirement for required components ( #5199 )
...
* fix: Add notes for min_values requirement for required components
* Apply suggestions from code review
Co-authored-by: Awesome Stickz <38146668+AwesomeStickz@users.noreply.github.com >
2026-07-26 21:54:36 +05:30
Fleny
4a28ac4ff0
feat: Add IdentifyPremium scope to OAuth2Scope enum ( #5183 )
2026-07-26 06:16:17 +05:30
Fleny
98f87b9bf7
fix!: Match the Activity and DiscordActivity structure ( #5180 )
2026-07-26 06:08:51 +05:30
Fleny
b202faf3f4
fix: update approval required oauth2 scopes wording ( #5181 )
2026-07-26 06:00:31 +05:30
Fleny
2b90d29f68
fix!: Use "age-restricted" terminology instead of "nsfw" ( #5189 )
2026-07-26 05:57:19 +05:30
Fleny
4f5ed276f2
fix!: Update SDK DM Message/Passthrough Message model ( #5190 )
2026-07-26 05:54:36 +05:30
Fleny
834f4fa718
fix: unit of bitrate fields in bits per second ( #5194 )
2026-07-26 05:49:22 +05:30
Fleny
9afac8d291
build(dev): Remove dotenv, use process.loadEnvFile instead ( #5223 )
2026-07-26 05:46:14 +05:30
Fleny
aa5dd155cf
fix: user global_name description for bots ( #5196 )
2026-07-26 05:42:51 +05:30
Fleny
422b572777
fix: update attachments description to clarify components & embeds behavior ( #5200 )
2026-07-26 05:39:20 +05:30
Fleny
fb46470862
fix: check for the GUILD_MEMBERS intent when requesting members ( #5229 )
2026-07-26 05:32:20 +05:30
Fleny
8df275c8ec
feat: add CannotForwardUnreadableMessage error code ( #5201 )
2026-07-26 05:28:53 +05:30
Fleny
c0a149f7a3
fix: Add missing banner in reverse member transformer ( #5203 )
2026-07-26 05:23:27 +05:30
Fleny
00ac3989c6
fix: Add missing type in route channels.reactions.message ( #5228 )
2026-07-26 05:18:11 +05:30
Fleny
dac284a01e
fix: make scope optional in createOAuth2Link ( #5182 )
2026-07-25 00:22:16 +05:30