Fleny
2d02c3246c
fix(website): Fix docusaurus build/typedoc warnings ( #3929 )
...
* Fix docusaurus build/typedoc warnings
* include the jsdoc fixes
2024-10-22 16:48:06 +02:00
Fleny
b85c6d54bd
Add missing comments on DiscordInteractionCallback ( #3945 )
2024-10-21 10:59:11 +02:00
dependabot[bot]
76ad81d88f
build(deps-dev): bump @types/node from 22.1.0 to 22.7.4 ( #3927 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 22.1.0 to 22.7.4.
- [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-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-06 23:45:58 -05:00
dependabot[bot]
1f142aadc4
build(deps-dev): bump @swc/core from 1.7.3 to 1.7.28 ( #3923 )
...
Bumps [@swc/core](https://github.com/swc-project/swc ) from 1.7.3 to 1.7.28.
- [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.28 )
---
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-10-06 23:45:47 -05:00
Fleny
df5d8630c6
Add null to application urls ( #3908 )
2024-10-06 23:44:49 -05:00
Fleny
6098d68a9a
Add the poll object to InteractionCallbackData ( #3905 )
2024-10-06 23:40:27 -05:00
Fleny
6f601f0d50
feat(types)!: Action rows are not always the top-level ( #3904 )
...
* Action rows are not always the top-level
* Update packages/types/src/discordeno.ts
Co-authored-by: LTS (Link) <lts20050703@gmail.com >
---------
Co-authored-by: LTS (Link) <lts20050703@gmail.com >
2024-10-06 23:40:15 -05:00
Fleny
6ff0c9aae8
Add amazon music connection ( #3903 )
2024-10-06 23:39:55 -05:00
Fleny
b9200cfd39
Entry Point commands and Interactions updates ( #3883 )
2024-10-06 23:38:14 -05:00
Fleny
a749905740
update DiscordAuditLogChange to be less manual ( #3823 )
2024-10-06 23:37:17 -05:00
dependabot[bot]
92d717b83a
build(deps-dev): bump mocha and @types/mocha ( #3928 )
...
Bumps [mocha](https://github.com/mochajs/mocha ) and [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha ). These dependencies needed to be updated together.
Updates `mocha` from 10.7.0 to 10.7.3
- [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/v10.7.0...v10.7.3 )
Updates `@types/mocha` from 10.0.7 to 10.0.8
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha )
---
updated-dependencies:
- dependency-name: mocha
dependency-type: direct:development
update-type: version-update:semver-patch
- dependency-name: "@types/mocha"
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-10-06 23:35:54 -05:00
Fleny
2c6ad258f0
chore(gateway): Refactor gateway integration test ( #3850 )
2024-10-05 19:55:05 +02:00
Fleny
7303a20d7a
feat(gateway): Add transport compression support ( #3815 )
...
* Add zlib-stream transport-compression support
* remove external buffer, add the url param
this also fixes the CI Deno error
* use a queue and promises
instead of calling handleDiscordPacket from the callback of inflate.on('data')
* Add zstd support
* Re-add payload compression, set fzstd as optional, refactor
* add comment for decompressionPromisesQueue
* fix comment for isCompressed
* Don't create a new Uint8Array if the input is a Buffer
* Use a Uint8Array buffer instead of parsing incomplete JSON chunks
* remove old commented code
* Change ts expect error message
* use type import for ShardGatewayConfig
* Apply suggestions from code review
Co-authored-by: LTS (Link) <lts20050703@gmail.com >
---------
Co-authored-by: LTS (Link) <lts20050703@gmail.com >
2024-10-05 19:48:05 +02:00
Fleny
57fa3d4d22
Add new fields to message snapshots ( #3897 )
2024-09-07 08:40:42 +02:00
Fleny
48902bcb8e
Add new member flags ( #3896 )
2024-09-07 08:27:40 +02:00
Fleny
45bfa059b5
feat(bot,rest,types): Add get activity instance endpoint ( #3891 )
...
* Add get activity instance endpoint
* Add ActivityInstance & ActivityLocation transformers
2024-09-07 08:21:14 +02:00
Fleny
b1bfe94b7d
Use atob instead of node:buffer for getBotIdFromToken ( #3893 )
2024-09-02 15:12:09 +02:00
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
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
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
Fleny
62b3122e89
Add recurrence rule to scheduled event ( #3834 )
2024-08-10 19:34:55 -05:00
Fleny
ab2930ce34
Add attachments to CreateMessageOptions ( #3830 )
2024-08-07 01:21:49 -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
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]
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
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
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