Commit Graph

5761 Commits

Author SHA1 Message Date
Fleny
09d2697d37 api-docs: Update comment on getMessages (#4306) 2025-08-11 18:55:41 +02:00
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
485fd1bc67 fix(types)!: Sort & fix sticker.ts types (#4296)
* Sort & fix sticker.ts types

* Update packages/types/src/discord/sticker.ts

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

---------

Co-authored-by: Link <lts20050703@gmail.com>
2025-08-11 18:45:33 +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
Fleny
3e6bf86db0 fix(types)!: Sort & fix user.ts types (#4298)
* Sort & fix user.ts types

* Update packages/types/src/discord/user.ts

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

---------

Co-authored-by: Link <lts20050703@gmail.com>
2025-08-11 18:37:10 +02:00
Fleny
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
Fleny
b30e2ff259 fix(types): Sort & fix gateway.ts properties (#4287) 2025-08-11 09:05:17 +02:00
Fleny
3e325d47e9 fix(types): Sort permissions.ts types (#4294) 2025-08-11 08:58:37 +02:00
Fleny
de000b67b4 fix(types)!: Sort & fix stageInstance.ts types (#4295) 2025-08-11 08:53:31 +02:00
Fleny
12d2cff747 fix(types): Sort voice.ts types (#4299) 2025-08-11 08:43:15 +02:00
Fleny
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
c86c512c60 fix(gateway): Pass down the logger to the buckets leakyBucket (#4303) 2025-08-08 20:55:21 +02:00
Fleny
5201817edc fix(types)!: Sort & fix lobby.ts types (#4292) 2025-08-07 10:56:58 +02:00
Fleny
4d1930599c fix(type): Sort & fix invite.ts types (#4291) 2025-08-07 10:53:51 +02:00
Fleny
6dec4bcedb fix(types)!: Sort & fix guildScheduledEvent.ts properties (#4289) 2025-08-07 10:50:44 +02:00
Fleny
d9831f6dd1 fix(types): Sort properties in DiscordEntitlement (#4286) 2025-08-07 10:47:46 +02:00
Fleny
4792ad2721 feat(rest): Add events (#4245)
* feat(rest): Add events

* Apply suggestions from code review

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

* Remove timeTook, consolidate event types

* Update packages/rest/src/manager.ts

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

* Fix type error

* Apply suggestions from code review

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

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
Co-authored-by: Link <lts20050703@gmail.com>
2025-08-04 19:49:44 +02:00
Fleny
27ab08a61d feat(gateway)!: Resharding with workers (#4206)
* feat(gateway): Rework how shards are resharded

* Make bigbot example use the resharding

* fix reshard doesn't increment the lastShardId

From my testing it works, however i don't know if we should just do
this or is there a better way

* revert createGatewayManager type changes
It breaks if you want to disable resharding, didn't think of that

* Fix typo (#4252)

* Apply suggestions from code review

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

---------

Co-authored-by: NotDemonix <90858555+NotDemonix@users.noreply.github.com>
Co-authored-by: Link <lts20050703@gmail.com>
2025-08-04 19:46:24 +02:00
Fleny
8fd277924f fix(bot): ACK the interaction only after a successful response (#4280) 2025-08-04 08:46:47 +02:00
Fleny
7413dca9f6 test(rest): Don't create as many channel, ensure we delete the resources we create (#4283)
Co-authored-by: Link <lts20050703@gmail.com>
2025-08-04 08:42:50 +02:00
Fleny
278099ae30 fix(types,bot)!: GetChannelPins.items is an array (#4284) 2025-08-03 17:22:12 -07:00
dependabot[bot]
251ad5ce51 build(deps-dev): bump @types/node from 24.0.1 to 24.1.0 (#4275)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.0.1 to 24.1.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.1.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>
2025-08-02 15:58:32 -05:00
dependabot[bot]
97c657c6c1 build(deps-dev): bump @swc/core from 1.12.9 to 1.13.3 (#4276)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.12.9 to 1.13.3.
- [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.12.9...v1.13.3)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-version: 1.13.3
  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-08-02 15:41:41 -05:00
dependabot[bot]
802ad61bba build(deps-dev): bump chai from 5.2.0 to 5.2.1 (#4277)
Bumps [chai](https://github.com/chaijs/chai) from 5.2.0 to 5.2.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.0...v5.2.1)

---
updated-dependencies:
- dependency-name: chai
  dependency-version: 5.2.1
  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>
2025-08-02 15:41:10 -05:00
dependabot[bot]
444fa0d19a build(deps-dev): bump dotenv from 16.4.7 to 17.2.1 (#4278)
Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.4.7 to 17.2.1.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v16.4.7...v17.2.1)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-version: 17.2.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-08-02 14:50:38 -05:00
dependabot[bot]
c48ae2573c build(deps-dev): bump @swc/core in /docker-apps/rest-passthrough (#4274)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.12.9 to 1.13.3.
- [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.12.9...v1.13.3)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-version: 1.13.3
  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-08-01 15:41:39 +02:00
dependabot[bot]
c8d0059a10 build(deps-dev): bump dotenv in /docker-apps/rest-passthrough (#4273)
Bumps [dotenv](https://github.com/motdotla/dotenv) from 17.0.0 to 17.2.1.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v17.0.0...v17.2.1)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-version: 17.2.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-08-01 15:37:15 +02:00
dependabot[bot]
d3c553aa9b build(deps-dev): bump @swc/cli in /docker-apps/rest-passthrough (#4272)
Bumps [@swc/cli](https://github.com/swc-project/pkgs) from 0.7.7 to 0.7.8.
- [Commits](https://github.com/swc-project/pkgs/commits)

---
updated-dependencies:
- dependency-name: "@swc/cli"
  dependency-version: 0.7.8
  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>
2025-08-01 15:33:09 +02:00
Fleny
068ecf897b api-docs!: Remove deleteGuild & EditGuild.ownerId (#4269)
* Remove deleteGuild & EditGuild.ownerId

* Change E2E test
2025-07-31 21:05:31 +02:00
Fleny
f4098d573f api-docs: Add GUILD_TAGS guild feature (#4271) 2025-07-30 17:50:47 +02:00
Fleny
5983af8c9b api-docs!: remove editGuildMFA (#4270) 2025-07-30 17:47:51 +02:00
Fleny
979f1a248c api-docs!: Remove createGuild and createGuildFromTemplate (#4268) 2025-07-30 17:45:01 +02:00
Fleny
b6bfaa38a8 fix(types): Add missing trigger metadata values (#4260)
* Add missing triggerMetadata

* Add link for EditAutoModerationRuleOptions

* Update TriggerMetadata comments

* Apply suggestions from code review

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2025-07-28 08:41:51 +02:00
Fleny
39279466ce api-docs: Add max of 512 chars on button links (#4262)
* Add max of 512 chars for button urls

* Update packages/types/src/discordeno.ts

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

---------

Co-authored-by: Link <lts20050703@gmail.com>
2025-07-28 08:38:51 +02:00
Fleny
e162543cec api-docs: Add IS_VOICE_MESSAGE to CreateMessageOptions (#4263)
* Add IS_VOICE_MESSAGE to CreateMessageOptions

* Update packages/types/src/discordeno.ts

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

---------

Co-authored-by: Link <lts20050703@gmail.com>
2025-07-28 08:36:01 +02:00
Fleny
929b1ba550 api-docs: Document automod quarantine audit log action type (#4264) 2025-07-28 08:31:04 +02:00
Fleny
a9d4bc346c api-docs: Document AUTOMOD_QUARANTINED_GUILD_TAG member flag (#4265) 2025-07-28 08:28:16 +02:00
Fleny
9f594da614 api-docs: Update the description for identity_enabled to be clearer (#4266)
* Update the description for identity_enabled to be clearer

* Update packages/bot/src/transformers/types.ts

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

---------

Co-authored-by: Link <lts20050703@gmail.com>
2025-07-28 08:25:22 +02:00
Fleny
ca9f4fec10 docs: Include notice of strictNullChecks being required (#4267)
And also update deno example to use v21
2025-07-28 08:21:51 +02:00
Seren_Modz 21
0ab543d02e docs(env): update dotenv install command (#4261) 2025-07-24 10:53:34 +05:30
Fleny
3b4cdf6b69 test(rest): Restore the E2E tests (#4259)
* guild.spec.ts

* automod.spec.ts

* emoji.spec.ts

* member.spec.ts

* message.spec.ts

* misc.spec.ts

* role.spec.ts

* stickers.spec.ts

* user.spec.ts

* webhook.spec.ts

* delete dd-test-emoji role
2025-07-22 19:19:14 +02:00
Seren_Modz 21
f9be7988f2 refactor: use dotenv/config instead of calling the function manually (#4258)
Signed-off-by: Seren_Modz 21 <seren@kings-world.net>
2025-07-20 18:53:43 +02:00
Fleny
1cb60c909c Split extra fields into their own types (#4256)
* Split extra fields into their own types

For now they are added back to the types they belong to to avoid
breaking in this pr

* fix type errors

* Fix typo 1

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

* Fix typo 2

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

* Use omit and not partial on guild voice_states

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

* Remove unused `ts-expect-error`

---------

Co-authored-by: Link <lts20050703@gmail.com>
2025-07-20 18:47:30 +02:00
Fleny
08a47e6872 feat(types): Add new rich presence url & status display type fields (#4255)
* feat(types): Add new rich presence url & status display type fields

* Update packages/types/src/discord/gateway.ts

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

* Use examples in DiscordStatusDisplayType

---------

Co-authored-by: Link <lts20050703@gmail.com>
2025-07-20 18:44:10 +02:00
Fleny
59cdefa2a2 Fix broken e2e (by removing tests) (#4257) 2025-07-20 17:50:00 +02:00
Fleny
4e25c94fdf Add readme to discordeno package (#4254) 2025-07-18 20:53:26 +02:00
dependabot[bot]
db9f2359ab build(deps-dev): bump webpack (#4250)
---
updated-dependencies:
- dependency-name: webpack
  dependency-version: 5.100.0
  dependency-type: direct:development
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-18 05:49:28 +02:00
Fleny
aa5982ae26 fix(types): Add GuildScheduledEvent to DiscordAuditLogChange (#4249) 2025-07-13 23:58:16 +05:30
Fleny
2e0cf1f2ee fix(types): Avoid adding undefined to DiscordAuditLogChange (#4248) 2025-07-13 18:26:49 +05:30
Fleny
5f8f6db9fa fix(types): Add missing props to ExecuteWebhook (#4247)
And sort them to match the table on the discord docs
2025-07-13 18:15:38 +05:30