Commit Graph
753 Commits
Author SHA1 Message Date
dependabot[bot]andFleny a6c1a5d7a4 build(deps-dev): bump @biomejs/biome from 2.3.1 to 2.3.4 (#4573)
* build(deps-dev): bump @biomejs/biome from 2.3.1 to 2.3.4

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

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-version: 2.3.4
  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.3.1 to 2.3.4 in /website (#4575)

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

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-version: 2.3.4
  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>

* Update 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>
2025-11-15 18:32:32 +01:00
dependabot[bot]andFleny 0be64f49dd build(deps-dev): bump @types/node from 24.9.1 to 24.10.0 (#4558)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.9.1 to 24.10.0.
- [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: 24.10.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>
2025-11-15 18:26:33 +01:00
dependabot[bot] e5063e1b7f build(deps-dev): bump @swc/core from 1.13.5 to 1.15.1 (#4574)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.13.5 to 1.15.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/compare/v1.13.5...v1.15.1)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-version: 1.15.1
  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>
2025-11-15 18:09:10 +01:00
dependabot[bot]andFleny a7adc8105a build(deps-dev): bump @swc/cli from 0.7.8 to 0.7.9 (#4572)
Bumps [@swc/cli](https://github.com/swc-project/pkgs) from 0.7.8 to 0.7.9.
- [Commits](https://github.com/swc-project/pkgs/commits)

---
updated-dependencies:
- dependency-name: "@swc/cli"
  dependency-version: 0.7.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>
2025-11-15 18:02:05 +01:00
Fleny 5867d11415 feat(components): File upload component for modals (#4468)
* feat(components): File upload component for modals

* Update comments

upstream has been merged into the file uploads pr

* reverse transform, comment typo fix
2025-10-28 20:26:07 +01:00
FlenyandAwesome Stickz 3d2ff13e4d feat(oauth2): PKCE support (#4425)
* feat(utils): Add base64url encoding

RFC 7636 (Proof Key for Code Exchange by OAuth Public Clients) requires to encode the data with base64url encoding.

We don't support decoding as we don't need it for PKCE.

* feat(oauth2): Add PKCE support

* make PKCE code verifier optional, fixup comments

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2025-10-27 19:43:55 +01:00
FlenyandAwesome Stickz d8fc6ec02d feat(bot)!: make desiredProperties generic in transformers (#4469)
Updated desiredProperties in transformers to be generic so that it can be used to retrive the bot desired properties, and removed the option from `CreateBotOptions.transformers.desiredProperties` as that would cause the typings for the bot to be incorrect

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2025-10-27 19:35:27 +01:00
FlenyandAwesome Stickz bd4e6f148c api-docs!: Modal Selects (#4467)
* api-docs!: Modal Selects

* Fix transformer to handle the new response types

* Remove `Component` for consistency

Other interaction response types do not have `Component` in their names, so neither should the TextDisplay and Label interaction response types.

* Fix type errors in component transformers

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2025-10-27 19:32:00 +01:00
dependabot[bot]andFleny 33af3d41c4 build(deps-dev): bump @types/chai from 5.2.2 to 5.2.3 (#4548)
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai)

---
updated-dependencies:
- dependency-name: "@types/chai"
  dependency-version: 5.2.3
  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-10-27 17:58:46 +01:00
dependabot[bot]andFleny 767a84cfdc build(deps-dev): bump @types/node from 24.8.1 to 24.9.1 (#4547)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.8.1 to 24.9.1.
- [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: 24.9.1
  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>
2025-10-27 17:51:56 +01:00
dependabot[bot]andFleny 895b27518f build(deps-dev): bump @biomejs/biome from 2.2.6 to 2.3.1 (#4550)
* build(deps-dev): bump @biomejs/biome from 2.2.6 to 2.3.1

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

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

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

* build(deps-dev): bump @biomejs/biome from 2.2.6 to 2.3.1 in /website (#4549)

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

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-version: 2.3.1
  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>

* biome migrate --write

---------

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-10-27 17:36:58 +01:00
Fleny fdf94c379d api-docs: Add invite_cover_image to activity assets (#4537) 2025-10-25 16:20:43 +02:00
FlenyandLink bbdd2d1183 fix(types): update message.resolved description (#4511)
Co-authored-by: Link <link20050703@gmail.com>
2025-10-21 14:57:00 -07:00
dependabot[bot] 0ce93e4acb build(deps-dev): bump @types/node from 24.7.2 to 24.8.1 (#4538)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.7.2 to 24.8.1.
- [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: 24.8.1
  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>
2025-10-20 19:02:14 +02:00
dependabot[bot]andFleny 780f212f90 build(deps-dev): bump @types/node from 24.7.0 to 24.7.2 (#4523)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.7.0 to 24.7.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: 24.7.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>
2025-10-14 19:48:06 +02:00
dependabot[bot]andFleny 7aa915595a build(deps-dev): bump mocha from 11.7.2 to 11.7.4 (#4525)
Bumps [mocha](https://github.com/mochajs/mocha) from 11.7.2 to 11.7.4.
- [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.7.2...v11.7.4)

---
updated-dependencies:
- dependency-name: mocha
  dependency-version: 11.7.4
  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-10-14 19:40:06 +02:00
dependabot[bot]andFleny 9562607deb build(deps-dev): bump @biomejs/biome from 2.2.5 to 2.2.6 (#4527)
* build(deps-dev): bump @biomejs/biome from 2.2.5 to 2.2.6

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

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

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

* Update schema version in 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>
2025-10-14 19:32:04 +02:00
dependabot[bot]andFleny 93931683a3 build(deps-dev): bump typescript from 5.9.2 to 5.9.3 (#4517)
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.2 to 5.9.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.9.2...v5.9.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 5.9.3
  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-10-06 18:46:31 +02:00
dependabot[bot]andFleny 53a2048d17 build(deps-dev): bump chai from 6.0.1 to 6.2.0 (#4519)
Bumps [chai](https://github.com/chaijs/chai) from 6.0.1 to 6.2.0.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/main/History.md)
- [Commits](https://github.com/chaijs/chai/compare/v6.0.1...v6.2.0)

---
updated-dependencies:
- dependency-name: chai
  dependency-version: 6.2.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>
2025-10-06 18:39:20 +02:00
dependabot[bot]andFleny 2e5ed91468 build(deps-dev): bump @types/node from 24.6.1 to 24.7.0 (#4515)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.6.1 to 24.7.0.
- [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: 24.7.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>
2025-10-06 18:30:49 +02:00
dependabot[bot]andFleny 299c7830fe build(deps-dev): bump dotenv from 17.2.1 to 17.2.3 (#4514)
Bumps [dotenv](https://github.com/motdotla/dotenv) from 17.2.1 to 17.2.3.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v17.2.1...v17.2.3)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-version: 17.2.3
  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-10-06 18:23:45 +02:00
Fleny cc9b97220b fix(types): Fix bounds for ApplicationCommandOptionTypes.Integer (#4512) 2025-10-06 18:19:28 +02:00
Fleny df8cc46882 fix(types,bot): Update channel.permissions description (#4513) 2025-10-06 18:16:22 +02:00
dependabot[bot]andFleny 66db044ad0 build(deps-dev): bump @biomejs/biome from 2.2.4 to 2.2.5 in /website (#4499)
* build(deps-dev): bump @biomejs/biome from 2.2.4 to 2.2.5 in /website

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

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

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

* Update other biome packages as well

---------

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-10-02 21:58:08 +02:00
Fleny 2545bff5a6 Remove benchmarks page & package (#4479)
* Remove benchmarks package and page

* Remove benchmarks CI
2025-10-02 21:30:06 +02:00
dependabot[bot]andFleny 4e4bc481cf build(deps-dev): bump @biomejs/biome from 2.2.2 to 2.2.4 (#4486)
* build(deps-dev): bump @biomejs/biome from 2.2.2 to 2.2.4

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

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

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

* update config files and website biome

---------

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-10-01 21:33:51 +02:00
dependabot[bot]andFleny 6f721c7c2e build(deps-dev): bump @types/node from 24.3.0 to 24.6.1 (#4484)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.3.0 to 24.6.1.
- [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: 24.6.1
  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>
2025-10-01 21:23:19 +02:00
FlenyandAwesome Stickz b294cca654 fix(transformers): Always set customId for InputText components (#4472)
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2025-09-23 05:52:33 +02:00
FlenyandAwesome Stickz df1658d923 build(packages): Remove swc --delete-dir-on-start (#4433)
Since we build the .js files and the .d.ts files in 2 different steps, you could run the tsc build and then the swc one, making swc delete the tsc build.

This is somewhat mitigated if you ran the tsc build with turbo as it will restore the cache, but it is annoying + the TS server in vscode for example will someone require you to restart it as it did not found the declration files for the package while it was building.

I did not find any good reason for this flag to be present, as while it will preserve files that no longer have a source, this matters only for local builds, as CI will always cleanly build the packages (and this issue exists with type declration as well anyway)

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2025-09-18 00:58:00 +05:30
FlenyandAwesome Stickz 87d16dd9ba feat(types,bot): Add Label component and new modal stuff (#4304)
* feat(types,bot): Add Label component and new modal stuff

Since now there are some fields that are only in responses the types got a bit more complicated

* Add char limits to label label & desc

* update comments

* fix format

* Move Require to shared.ts

* code review

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2025-09-18 00:50:59 +05:30
FlenyandAwesome Stickz 35133a1575 api-docs: Fix some stuff in interactions (#4457)
* api-docs: Fix some stuff in interactions

* Apply and fix code review suggestions

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2025-09-17 00:56:50 +05:30
FlenyandAwesome Stickz 0d4f17472f api-docs: banner, avatar, and bio on modify current member (#4458)
* api-docs: banner, avatar, and bio on modify current member

* Update packages/types/src/discordeno/guild.ts

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2025-09-16 21:03:39 +05:30
Fleny 3a99a7e085 api-docs: Social SDK webhook events (#4459) 2025-09-15 15:45:11 +05:30
FlenyandAwesome Stickz d8dbcda383 api-docs!: Remove stage_instance, add expires_at to invites (#4445)
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2025-09-11 17:29:27 +05:30
FlenyandAwesome Stickz 9aec72df44 test(mocha): Update mocha to 11.7.2 and remove patch (#4429)
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2025-09-11 17:26:22 +05:30
Fleny 11c5147d6f refactor(bot)!: Remove debug event (#4437) 2025-09-08 17:23:17 +02:00
Awesome Stickz 8e8ffa6a54 chore(types): rename MessageFlags.IsComponentV2 to IsComponentsV2 to match docs (#4439) 2025-09-08 04:14:55 +05:30
Fleny 96fa6e3a3f chore(gateway)!: Remove Shard forwardToBot (#4431)
forwardToBot has been removed in favor of directly using the events.message.

the default implementation for forwardToBot used to camelize the packet, however in most cases you want to preserve the snake_case, and for those that need camelCase it can be easly done in the message event function.

This also removes the gateway.preferSnakeCase option as it no longer has a use
2025-09-05 08:28:48 +02:00
Fleny 4e08703eab feat(types): Add JSON error code 400001 (#4426) 2025-09-04 08:52:13 +02:00
Fleny 0832500f01 docs(rest): Update documentation for get invites endpoint (#4427) 2025-09-04 08:47:45 +02:00
dependabot[bot]andFleny ea88819eea build(deps-dev): bump @types/node from 24.2.1 to 24.3.0 (#4417)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.2.1 to 24.3.0.
- [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: 24.3.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>
2025-09-02 18:21:02 +02:00
dependabot[bot] b6fc7271b4 build(deps-dev): bump chai from 5.2.1 to 6.0.1 (#4411)
Bumps [chai](https://github.com/chaijs/chai) from 5.2.1 to 6.0.1.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/main/History.md)
- [Commits](https://github.com/chaijs/chai/compare/v5.2.1...v6.0.1)

---
updated-dependencies:
- dependency-name: chai
  dependency-version: 6.0.1
  dependency-type: direct:development
  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>
2025-09-02 09:52:29 +02:00
dependabot[bot]andFleny dea32e8779 build(deps-dev): bump chai-as-promised from 8.0.1 to 8.0.2 (#4414)
Bumps [chai-as-promised](https://github.com/chaijs/chai-as-promised) from 8.0.1 to 8.0.2.
- [Release notes](https://github.com/chaijs/chai-as-promised/releases)
- [Commits](https://github.com/chaijs/chai-as-promised/compare/v8.0.1...v8.0.2)

---
updated-dependencies:
- dependency-name: chai-as-promised
  dependency-version: 8.0.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>
2025-09-02 09:47:39 +02:00
dependabot[bot]andFleny 7c2b5effd1 build(deps-dev): bump @swc/core from 1.13.3 to 1.13.5 (#4413)
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:41:50 +02:00
dependabot[bot]andFleny 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
FlenyandLink 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
FlenyandLink b7db305dee refactor: Use TransformerFunction to define transformers (#4402)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-26 10:56:43 -07:00