Commit Graph

5423 Commits

Author SHA1 Message Date
dependabot[bot]
ed604763a2 build(deps-dev): bump @favware/cliff-jumper (#3881)
Bumps [@favware/cliff-jumper](https://github.com/favware/cliff-jumper) from 4.0.3 to 4.1.0.
- [Release notes](https://github.com/favware/cliff-jumper/releases)
- [Changelog](https://github.com/favware/cliff-jumper/blob/main/CHANGELOG.md)
- [Commits](https://github.com/favware/cliff-jumper/compare/@favware/cliff-jumper@4.0.3...@favware/cliff-jumper@4.1.0)

---
updated-dependencies:
- dependency-name: "@favware/cliff-jumper"
  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>
2024-09-07 08:14:47 +02:00
Fleny
b1bfe94b7d Use atob instead of node:buffer for getBotIdFromToken (#3893) 2024-09-02 15:12:09 +02:00
Fleny
6a5f446c06 build(website): Update website deps, remove 1s load time (#3858)
* Update website deps, remove 1s load time

* Run biome migrate

* Test without terser plugin

* Do not always default to MDX

* remove webpack terser plugin

* Add some exclusions to website/tsconfig
2024-08-29 11:22:40 +02:00
Zero-Tools
4ca4c808a5 add .yarnrc.yml to advanced example solution (#3887)
* add .yarnrc.yml to advanced example solution

add .yanrc.yml to advanced example so that it builds correctly

* Create .yarnrc.yml

This file is needed or else when yarn runs in `docker build` will attempt to use PnP

* Create .yarnrc.yml

This file is needed or else when yarn runs in `docker build` will attempt to use PnP

* Create .yarnrc.yml

This file is needed or else when yarn runs in `docker build` will attempt to use PnP

* Update .yarnrc.yml's message to be more accurate

Remove docker reference as it is irrelevant

* Update .yarnrc.yml to be more accurate

Removed reference to docker as it was irrelevant

* Update .yarnrc.yml to be more accurate

Remove reference to docker as it is irrelevant

* Update .yarnrc.yml to be more accurate

Remove reference to docker as it is irrelevant
2024-08-28 23:52:26 +05:30
Fleny
6584a3bf00 set recurrenceRule as nullable in update (#3871) 2024-08-21 22:01:09 +05:30
Fleny
9e516a09da Add poll_result Message/Embed Type (#3870) 2024-08-21 17:40:20 +02:00
Fleny
b3a8c866b4 feat(gateway): Expose makePresence from GatewayManager (#3851)
* Expose makePresence from GatewayManager

* Pass down the makePresence method on resharding shards

* inline makePresence option

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-08-18 18:03:38 +02:00
Fleny
a0510da166 Add voiceChannelEffectSend event (#3869) 2024-08-18 14:44:39 +05:30
Awesome Stickz
a727b7deaa docs: add caching guide (#3859)
* docs: add caching guide

* fix: change "client" to BOT

* change BOT to bot instead

* added a bit more info to important point to note in manual caching
2024-08-18 14:25:29 +05:30
Awesome Stickz
599cc4d1de docs: added example to resharding in big bot guide (#3857) 2024-08-18 09:12:36 +02:00
Fleny
c1b0dc925d fix(bot)!: Remove direct calls to transformers (#3863)
* Remove direct calls to transformers

* Sort transformers by name

* Fix error
2024-08-18 09:04:18 +02:00
Fleny
a80036fc12 Add get guild role endpoint (#3861) 2024-08-18 08:57:22 +02:00
Fleny
03f17ee36a Add commands dir import to examples register commands (#3848) 2024-08-18 08:49:27 +02:00
Fleny
40ad08238a Update description for 4003 close code (#3868)
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-08-17 11:45:09 +05:30
Fleny
943821ff9a use camelCase for body members (#3849) 2024-08-16 20:30:46 +02:00
Awesome Stickz
352887c215 feat(gateway): add resharding options to CreateGatewayManagerOptions (#3856) 2024-08-12 17:21:00 +02:00
Fleny
08a5e4456f fix(gateway): change logLevel for some resharding logs (#3855)
* change logLevel for some resharding logs

* Apply suggestions from code review

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

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-08-12 16:41:36 +02:00
Fleny
b7063580e0 feat(gateway): Make resharding.getSessionInfo optional (#3854)
* Make getSessionInfo optional

* change resharding.getSessionInfo to throw in checkIfReshardingIsNeeded

* Change warn message on spawnShards
2024-08-12 16:32:59 +02:00
Fleny
4899d0aa66 Add approximate_user_install_count (#3845)
And also a few missing values*
The values were not added to the reverse transformers as well, as a few
reverse transformers are missing for it
2024-08-10 19:36:46 -05:00
Fleny
bb6b8df2cf Add get sticker pack endpoint (#3844) 2024-08-10 19:36:29 -05:00
Fleny
895cc17106 Add voice state http endpoints (#3841) 2024-08-10 19:36:15 -05:00
dependabot[bot]
985801c834 build(deps-dev): bump @types/node from 20.14.11 to 22.1.0 (#3839)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.14.11 to 22.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-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>
2024-08-10 19:36:01 -05:00
dependabot[bot]
c4000094c8 build(deps-dev): bump @types/chai from 4.3.16 to 4.3.17 (#3836)
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai) from 4.3.16 to 4.3.17.
- [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-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: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2024-08-10 19:35:35 -05:00
dependabot[bot]
4133485522 build(deps-dev): bump lint-staged from 15.2.7 to 15.2.8 (#3835)
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 15.2.7 to 15.2.8.
- [Release notes](https://github.com/lint-staged/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lint-staged/lint-staged/compare/v15.2.7...v15.2.8)

---
updated-dependencies:
- dependency-name: lint-staged
  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>
2024-08-10 19:35:19 -05:00
Fleny
62b3122e89 Add recurrence rule to scheduled event (#3834) 2024-08-10 19:34:55 -05:00
dependabot[bot]
68c8ab76c9 build(deps-dev): bump turbo from 2.0.9 to 2.0.12 (#3833)
Bumps [turbo](https://github.com/vercel/turbo) from 2.0.9 to 2.0.12.
- [Release notes](https://github.com/vercel/turbo/releases)
- [Changelog](https://github.com/vercel/turbo/blob/main/release.md)
- [Commits](https://github.com/vercel/turbo/compare/v2.0.9...v2.0.12)

---
updated-dependencies:
- dependency-name: turbo
  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>
2024-08-07 01:22:05 -05:00
Fleny
ab2930ce34 Add attachments to CreateMessageOptions (#3830) 2024-08-07 01:21:49 -05:00
dependabot[bot]
469d3d27cf build(deps-dev): bump @swc/core in /docker-apps/rest-passthrough (#3829)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.7.3 to 1.7.6.
- [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.7.3...v1.7.6)

---
updated-dependencies:
- dependency-name: "@swc/core"
  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>
2024-08-07 01:21:01 -05:00
Fleny
304a61c786 Add the propriety if it has _ to the object (#3828) 2024-08-07 01:20:50 -05:00
dependabot[bot]
14b015870d build(deps-dev): bump @types/ws from 8.5.11 to 8.5.12 (#3818)
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 8.5.11 to 8.5.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

---
updated-dependencies:
- dependency-name: "@types/ws"
  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>
2024-08-07 01:17:10 -05:00
Fleny
d6898f2b7b feat(gateway): Use the native WebSocket implementation when available (#3808)
* Use the native WebSocket implementation when available

* merge types.js import in shard

* Apply suggestions from code review

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

* Do not use the WebSocket global on Node

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-08-07 01:16:55 -05:00
dependabot[bot]
8dc6c3f650 build(deps): bump typescript from 5.5.3 to 5.5.4 (#3797)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.5.3 to 5.5.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.5.3...v5.5.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:production
  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>
2024-08-07 01:12:06 -05:00
dependabot[bot]
ce4eb2c28c build(deps-dev): bump c8 from 9.1.0 to 10.1.2 (#3783)
Bumps [c8](https://github.com/bcoe/c8) from 9.1.0 to 10.1.2.
- [Release notes](https://github.com/bcoe/c8/releases)
- [Changelog](https://github.com/bcoe/c8/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bcoe/c8/compare/v9.1.0...v10.1.2)

---
updated-dependencies:
- dependency-name: c8
  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>
2024-08-07 01:11:50 -05:00
dependabot[bot]
759b41a59d build(deps-dev): bump typedoc from 0.26.4 to 0.26.5 (#3782)
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.26.4 to 0.26.5.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.26.4...v0.26.5)

---
updated-dependencies:
- dependency-name: typedoc
  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>
2024-08-07 01:11:39 -05:00
Fleny
746f0a99ac fix(discordeno)!: Fix some errors in DiscordenoConfig (#3824)
* Fix typo, remove RecursivePartial from DiscordenoConfig.desiredProperties.properties

* Fix properties typo

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-08-03 10:26:21 +05:30
Fleny
9e1ada64b8 fix(rest): Use a _ check instead of the manual one on the switch (#3825)
* Use a _ check instead of the manual one on the switch

* invert the check, as the current one is wrong

* move the check to before indexing the object

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-08-03 10:17:26 +05:30
Fleny
22a611761b Make token in rest and gateway for createBot optional (#3820) 2024-08-03 10:10:09 +05:30
dependabot[bot]
6ec6041657 build(deps-dev): bump typedoc-plugin-markdown from 4.2.1 to 4.2.3 (#3801)
Bumps [typedoc-plugin-markdown](https://github.com/typedoc2md/typedoc-plugin-markdown/tree/HEAD/packages/typedoc-plugin-markdown) from 4.2.1 to 4.2.3.
- [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.2.3/packages/typedoc-plugin-markdown)

---
updated-dependencies:
- dependency-name: typedoc-plugin-markdown
  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>
2024-07-30 23:40:31 -05:00
dependabot[bot]
01437ebb50 build(deps-dev): bump @swc/core from 1.4.2 to 1.7.3 (#3811)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.4.2 to 1.7.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.4.2...v1.7.3)

---
updated-dependencies:
- dependency-name: "@swc/core"
  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>
2024-07-30 23:40:19 -05:00
Awesome Stickz
cfafc16e92 docs: remove tutorial section (#3817)
* docs: remove tutorial section

* fix: docusaurus broken links
2024-07-30 23:40:08 -05:00
Fleny
791943a652 fix(rest): ignore snakelized properties in changeToDiscordFormat (#3795)
* fixes #3666

* Update packages/rest/src/manager.ts

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

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-30 23:38:15 -05:00
Fleny
e315ee6d95 fix(bot)!: Remove old unprovided params from event params (#3794)
* Remove oldMessage from messageUpdate params

* Remove oldPresence from presenceUpdate as well
2024-07-30 23:36:26 -05:00
Fleny
658acfb906 fix(gateway): Make heartbeat logging clearer (#3793)
* Make heartbeat logging clearer

* Update packages/gateway/src/Shard.ts

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

---------

Co-authored-by: LTS20050703 <lts20050703@gmail.com>
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-30 23:36:03 -05:00
Fleny
e32c670ab1 fix(ci): Add env to test:e2e turbo task (#3809)
* Add env to test:e2e turbo task

Turbo in v2 does not pass down the environment variables unless manually specified (by default)

* use the correct env name for the test guild
2024-07-30 21:18:07 +02:00
Fleny
ef4cc80c63 fix(bot,gateway): Fix (some) resharding bugs (#3792)
* Improve logging, keep shard collections separated

* revert to erroring in getSessionInfo. Fill the value in createBot

* removed useless if

* remove same number of shards check

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

* Update manager.ts

* revert shard.events.message assignment for the spread

* use new Collection instead of .clear() + for-of

* Use fixed formula and note in the comment the inaccuracy

* Apply suggestions from code review

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

* Add a remark to shardsFullPercentage to let the user know of the inaccuracy

* Update comment and add a clearInterval

The clearInterval is not strictly needed, however it is better to ensure there is always one and only one internal running at a given point

* revert check for all shards online
It was bugged as gateway.resharding.shards gets populated overtime and not instantly

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-30 23:34:32 +05:30
Fleny
e0209cf7f5 Rename game activity type to playing (#3807) 2024-07-30 04:25:53 +05:30
Fleny
faaa8af48a clear offlineSendQueue after resolving all the promises (#3806)
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-30 04:15:21 +05:30
dependabot[bot]
b6333207c8 build(deps-dev): bump @swc/core in /docker-apps/rest-passthrough (#3810)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.7.2 to 1.7.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.7.2...v1.7.3)

---
updated-dependencies:
- dependency-name: "@swc/core"
  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>
2024-07-29 15:01:18 +02:00
dependabot[bot]
a63dfb0b57 build(deps-dev): bump @swc/core in /docker-apps/rest-passthrough (#3802)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.7.0 to 1.7.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/compare/v1.7.0...v1.7.2)

---
updated-dependencies:
- dependency-name: "@swc/core"
  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>
2024-07-29 09:27:54 +02:00
dependabot[bot]
a4cc738264 build(deps-dev): bump @favware/cliff-jumper (#3798)
Bumps [@favware/cliff-jumper](https://github.com/favware/cliff-jumper) from 4.0.2 to 4.0.3.
- [Release notes](https://github.com/favware/cliff-jumper/releases)
- [Changelog](https://github.com/favware/cliff-jumper/blob/main/CHANGELOG.md)
- [Commits](https://github.com/favware/cliff-jumper/compare/@favware/cliff-jumper@4.0.2...@favware/cliff-jumper@4.0.3)

---
updated-dependencies:
- dependency-name: "@favware/cliff-jumper"
  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>
2024-07-29 08:05:18 +02:00