Commit Graph
353 Commits
Author SHA1 Message Date
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
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 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
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
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 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
FlenyandLink 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 590653f572 fix(bot): Remove VOICE_STATE_UPDATE payload check (#4389) 2025-08-22 21:37:26 +02:00
FlenyandLink 269a5bf5f5 chore: Bump version to v22-beta.1 (#4377)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-22 10:55:03 -07:00
FlenyandLink bd37023847 ESM-only build (#4227)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-22 10:48:28 -07:00
FlenyandLink 8996169b9d build(deps-dev): Update typescript & @types/node (#4325)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-22 09:39:52 -07:00
FlenyandLink 52fc7b8c97 build(deps-dev): Update @biomejs/biome (#4327)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-20 20:39:23 -07:00
FlenyandLink 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 d5b2974d9f chore: use biome check instead of separate lint and format commands (#4320) 2025-08-20 16:03:42 -04:00
FlenyandLink 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
FlenyandLink 27e53b801a fix(types)!: Fix discordeno/user.ts (#4365)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-20 11:11:14 -07:00
FlenyandLink fca0b40be5 feat(bot)!: Make desiredProperties required (#4381)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-17 13:01:58 -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
FlenyandLink ed85fe9a5f chore(bot): Remove incorrect joinedAt (#4376)
Co-authored-by: Link <link20050703@gmail.com>
2025-08-17 09:00:37 +02:00
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 84087917ef fix(types)!: Fix discordeno/channel.ts (#4355) 2025-08-15 22:09:56 -04:00
Link 8b41c9fe24 feat(bot,rest,types)!: Remove Discord JSON Params (#4351)
- Remove `createApplicationCommand` reverse transformer (Unused - `createGuildApplicationCommand` and `createGlobalApplicationCommand` use `snakelize`)
- Remove `DiscordModifyChannel`, `DiscordFollowAnnouncementChannel`, `DiscordCreateForumPostWithMessage`, `DiscordCreateGuildEmoji`, `DiscordModifyGuildEmoji`, `DiscordCreateGuildChannel`, `DiscordModifyGuildChannelPositions`, `DiscordCreateApplicationCommand`, `DiscordCreateMessage`, and `DiscordCreateWebhook` (unused)
- Remove `DiscordModifyGuildWelcomeScreen` (and replace it with `ModifyGuildWelcomeScreen`)

Fixes: https://github.com/discordeno/discordeno/issues/4308
2025-08-15 13:35:25 -04:00
Link 8baea8c771 feat(bot,rest,types): Add withLocalization (#4350)
- Add `withLocalization` to `getGlobalApplicationCommands` and `getGuildApplicationCommands`

fixes: https://github.com/discordeno/discordeno/issues/4340
2025-08-15 08:20:29 +02:00
Fleny 9de5d93014 feat(bot): Add guildId to ThreadMember (#4335) 2025-08-14 19:21:22 -07:00
Link af2b0cca2e fix(types)!: Rename CreateEntitlement to CreateTestEntitlement (#4346) 2025-08-14 21:12:16 +02:00
Fleny 6679f2c0e4 chore(bot,utils): Move snowflake utils to @discordeno/utils (#4345) 2025-08-14 12:08:19 -07:00
Fleny 86f8fbd589 fix(bot)!: Remove InternalBot, add messagePin transformer (#4302) 2025-08-14 18:43:34 +02:00
FlenyandLink 65cbe5d1e6 fix(types)!: Split and fix discordeno.ts (#4301)
* fix(types)!: Split and fix discordeno.ts

* fix some mistakes

* remove now not needed @ts-expect-error

* Apply code review suggestions

* Fix test type errors

* Revert "Apply code review suggestions"

This reverts commit 7a0cea84b3.

* Restore some of the changes from the revert

---------

Co-authored-by: Link <lts20050703@gmail.com>
2025-08-14 18:37:52 +02:00
Fleny b70cf76165 feat(bot)!: Remove bot.events.guildUnavailable (#4336)
It is now merged with the guildDelete event
2025-08-13 16:18:03 +05:30
Fleny f6ea699dfe fix(types)!: Sort & fix guild.ts properties (#4288)
* Sort & fix guild.ts properties

* Fix type errors

* Apply code review suggestions
2025-08-11 18:51:00 +02:00
Fleny d713d09064 fix(types)!: Fix nullability for DiscordEmoji (#4285)
* Fix nullability for DiscordEmoji

* Fix type errors, use actual DiscordEmoji for partial emojis

* Apply code review suggestions
2025-08-11 18:41:50 +02:00
FlenyandLink 088de8c417 fix(types)!: Sort & fix interactions.ts types (#4290)
* Sort & fix interactions.ts types

* Fix type errors

* Apply suggestions from code review

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

---------

Co-authored-by: Link <lts20050703@gmail.com>
2025-08-11 18:33:47 +02:00
FlenyandLink f199bbf71c build(dev-deps): Update biome to v2 (#4246)
* update biome to v2

* Run biome check --write

* Update biome.jsonc

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

* Fix config error

* Bump biome version

* Update website/yarn.lock

* Update biome to 2.1.3

---------

Co-authored-by: Link <lts20050703@gmail.com>
2025-08-09 12:45:04 -05:00
Fleny 8fd277924f fix(bot): ACK the interaction only after a successful response (#4280) 2025-08-04 08:46:47 +02:00