Commit Graph

5839 Commits

Author SHA1 Message Date
dependabot[bot]
97b89fcef2 build(deps-dev): bump @swc/core in /docker-apps/rest-passthrough (#4406)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.13.3 to 1.13.5.
- [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/compare/v1.13.3...v1.13.5)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-version: 1.13.5
  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>
2025-09-02 09:38:41 +02:00
dependabot[bot]
ff7c51de0a build(deps): bump actions/checkout from 4 to 5 (#4408)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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>
2025-09-02 09:35:36 +02:00
dependabot[bot]
322331e0e6 build(deps): bump actions/download-artifact from 4 to 5 (#4407)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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>
2025-09-02 09:32:00 +02:00
dependabot[bot]
4bd338ce8c build(deps): bump aquasecurity/trivy-action from 0.32.0 to 0.33.0 (#4409)
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.32.0 to 0.33.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](https://github.com/aquasecurity/trivy-action/compare/0.32.0...0.33.0)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-version: 0.33.0
  dependency-type: direct:production
  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>
2025-09-02 09:27:55 +02:00
dependabot[bot]
724a37ff34 build(deps): bump actions/upload-pages-artifact from 3 to 4 (#4410)
Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-pages-artifact/releases)
- [Commits](https://github.com/actions/upload-pages-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-pages-artifact
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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>
2025-09-02 09:19:09 +02:00
dependabot[bot]
4499cd80ef build(deps-dev): bump @biomejs/biome from 2.1.4 to 2.2.2 (#4415)
* build(deps-dev): bump @biomejs/biome from 2.1.4 to 2.2.2

Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 2.1.4 to 2.2.2.
- [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.2.2/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-version: 2.2.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update biome on the website as well

* Fix messup in previus commit

---------

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>
2025-09-02 09:16:02 +02:00
Fleny
ae650a04d9 refactor(typedoc): update typedoc configuration and mark internal APIs as private (#4405)
The typedoc config is now only in the top-level config file instead of also being one per package
and all internal APIs are now marked as private so typedoc won't generate documentation for them, however we still need to export them to avoid typedoc warnings

The new internal APIs that are exported, since are marked as `@private` can have breaking changes without notices
2025-09-02 08:17:59 +02:00
Fleny
2a7cd9b2a5 refactor(transformers)!: Use type helper to define customizers (#4404)
* refactor(transformers)!: Use type helper to define customizers

This allows us to ensure that customizers always follow the correct types for the transformers and we don't have 2 places to add the types.

* remove outdated comment in transformInteractionDataResolved

* remove not needed cast

* remove not needed cast
2025-09-02 06:54:38 +02:00
Fleny
304aacdba9 feat(bot)!: Camelize the AuditLogEntry changes (#4403)
* feat(bot)!: Camelize the AuditLogEntry changes

* fix type errors
2025-08-29 11:02:33 +02:00
Fleny
e94308c8f2 chore: Imports directly from files instead of index files (#4400)
Currently we import from `index.js` files where we could simply import the actual file(s) or module we need.

This also creates a bit of confusion since it isn't obvious from where stuff is coming from, especially when we are importing types such as `Discord<XYZ>` types both from `@discordeno/types` and a `index.js` in the same file, one such example is `transformers/reverse/component.ts`.

As far as I can tell, this does not have any specific advantage beside readability, maybe something with tree-shaking. (and for us, tree-shaking doesn't really matter)

The only files that still import index.js files are:
- index.js files themself
- bot/src/handlers.js since it does a `import * as handlers from './handlers/index.js'` and the alternative is like 90 lines of imports

Co-authored-by: Link <link20050703@gmail.com>
2025-08-26 20:41:14 +02:00
Fleny
3af54ca144 ci: Use biome ci in lib-check format (#4399)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-26 20:00:36 +02:00
Fleny
b7db305dee refactor: Use TransformerFunction to define transformers (#4402)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-26 10:56:43 -07:00
Fleny
c7074d7837 fix(types): Update which messages can be forwarded (#4398)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-26 10:32:01 -07:00
Samuel Voeller
7f35b34eca fix(types,docs): Update documentation for component Select Menu types to reflect minValue and maxValue of 0-25, max 25 (#4401)
* fix(docs): Update DiscordSelectMenuComponent min_value and max_value

* fix(docs): Update Select Menu Options minValue and maxValue
2025-08-26 18:04:53 +02:00
Fleny
274b5972dd feat(types,bot): Add RATE_LIMITED & RESUMED handler & event (#4391)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-24 14:14:14 -07:00
Fleny
33ea279714 feat(types): Add PIN_MESSAGES permission (#4390) 2025-08-24 14:01:40 -07:00
Fleny
590653f572 fix(bot): Remove VOICE_STATE_UPDATE payload check (#4389) 2025-08-22 21:37:26 +02:00
Link
f274ec665a chore: Release pre-release as beta on NPM (#4388) 22.0.0-beta.1 2025-08-22 12:10:04 -07:00
Fleny
269a5bf5f5 chore: Bump version to v22-beta.1 (#4377)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-22 10:55:03 -07:00
Fleny
bd37023847 ESM-only build (#4227)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-22 10:48:28 -07:00
Awesome Stickz
2d5e2114c7 docs: update info about dd cache proxy in caching guide (#4387)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-22 10:07:44 -07:00
Fleny
8996169b9d build(deps-dev): Update typescript & @types/node (#4325)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-22 09:39:52 -07:00
dependabot[bot]
aea991ae29 build(deps-dev): bump typedoc from 0.28.5 to 0.28.8 (#4279) 2025-08-22 10:26:20 +00:00
Fleny
2ccf3c1437 ci: Fix snyk scan (#4317)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-20 20:44:11 -07:00
Fleny
52fc7b8c97 build(deps-dev): Update @biomejs/biome (#4327)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-20 20:39:23 -07:00
Fleny
b6f2d914b8 ci: Use biome ci in lib-check format (#4319)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-20 20:35:25 -07:00
Fleny
5d0cef5dca build(deps): Update ws & @types/ws (#4332)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-20 20:32:03 -07:00
Fleny
7a97340bdb build(deps-dev): Update lint-staged (#4328)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-20 20:28:46 -07:00
Fleny
9759eba986 ci: Specify permissions for CI (#4338)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-20 19:07:49 -07:00
Fleny
be3e2abd69 build(deps-dev): Update @types/sinon & @types/chai-as-promised (#4331)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-20 18:42:09 -07:00
Fleny
a9cfdcff9a build(deps-dev): Update @swc/cli (#4329) 2025-08-20 16:15:05 -04:00
Fleny
41d58f8d2a build(deps-dev): Update turbo (#4326) 2025-08-20 16:07:22 -04:00
Fleny
d5b2974d9f chore: use biome check instead of separate lint and format commands (#4320) 2025-08-20 16:03:42 -04:00
Fleny
49a8cd1aa6 Double the REST E2E testing timeout (#4318)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-20 12:57:40 -07:00
Fleny
c429ec9c36 feat(bot)!: Use an "extra" params for transformers (#4372)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-20 12:10:35 -07:00
Fleny
27e53b801a fix(types)!: Fix discordeno/user.ts (#4365)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-20 11:11:14 -07:00
Fleny
df3cfebb86 chore(.github): Assign @discordeno/team to most codeowners (#4379)
* chore(.github): Add @discordeno/team to most codeowners

Also removes /.github/sync.yml, that file does not exist

* Remove explit mentions

They are already in the team, so they do get the perms anyway

* Update .github/CODEOWNERS

Co-authored-by: Link <link20050703@gmail.com>

---------

Co-authored-by: Link <link20050703@gmail.com>
2025-08-20 11:52:12 -05:00
TriForMine
1801823fe6 docs(examples): fix typo in Bun usage note (#4382) 2025-08-18 13:22:40 +02:00
Fleny
702b252396 fix(types)!: Fix discordeno/interactions.ts (#4360)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-17 20:20:23 -07:00
Fleny
d79e672f5a feat(gateway): Use node:zlib zstd when available (#4373)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-17 13:38:46 -07:00
Fleny
fca0b40be5 feat(bot)!: Make desiredProperties required (#4381)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-17 13:01:58 -07:00
Fleny
83a075e64b docs: Add desired properties to examples (#4380) 2025-08-17 12:59:11 -07:00
Fleny
b47feae4fa fix(bot): Remove handlers payload checks (#4374)
To remove the check from VOICE_STATE_UPDATE we need to wait for #4372 to get merged
2025-08-17 09:16:03 +02:00
Fleny
0b073a151d chore(rest): Remove todo about GET bodies (#4375)
We do not need to do anythng with GET bodies, fetch() will even throw if a body is passed to a GET
2025-08-17 09:10:46 +02:00
Fleny
ed85fe9a5f chore(bot): Remove incorrect joinedAt (#4376)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-17 09:00:37 +02:00
Fleny
7d09a05ea1 docs: switch bigbot and caching guide position in docs (#4378) 2025-08-16 22:57:19 +05:30
Fleny
825906aed7 fix(bot): Check nullable in transformPresence (#4370)
Despite the type not having the optional, it may get called with an partial object
2025-08-16 20:53:07 +05:30
Fleny
38d1707788 fix(types)!: Fix discordeno/message.ts (#4362) 2025-08-15 22:13:02 -04:00
Fleny
84087917ef fix(types)!: Fix discordeno/channel.ts (#4355) 2025-08-15 22:09:56 -04:00
Fleny
5de802e352 fix(types)!: Fix discordeno/guild.ts (#4357) 2025-08-15 22:06:29 -04:00