dependabot[bot]
e06f46eb2b
build(deps-dev): bump @swc/core from 1.9.2 to 1.10.2 ( #4055 )
...
Bumps [@swc/core](https://github.com/swc-project/swc ) from 1.9.2 to 1.10.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.9.2...v1.10.2 )
---
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-12-28 20:39:11 +01:00
Dominik Koch
d478e679db
chore: use DISCORDENO_VERSION from utils for docs and rest manager ( #4059 )
...
* docs: update header to v20
* Update to upcoming version instead
* Use the new DISCORDENO_VERSION
* Use the new DISCORDENO_VERSION
* Update website/docs/bigbot/step-2-rest.md
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
Co-authored-by: Fleny <Fleny113@outlook.com >
2024-12-29 01:05:13 +05:30
Awesome Stickz
3fd075a80f
feat(utils): add an export for DISCORDENO_VERSION ( #4060 )
2024-12-29 00:43:34 +05:30
Fleny
41219d5417
feat(bot): Remove some clutter from desired proprerties intellisense ( #4050 )
...
* Remove TBot, Use SetupDesiredProps
* Remove even more clutter from intellisense
* Use type instead of interfaces for some types
This avoids the need for mapped types in Bot
* docs: add info about removing ts clutter to desired props guide
* docs: improve ts clutter section in desired props guide more
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2024-12-28 23:08:15 +05:30
Awesome Stickz
6abf453319
fix(gateway): set a nonce if none is provided for gateway.requestMembers ( #4057 )
...
* fix(gateway): set a nonce if none is provided for gateway.requestMembers
* chore: update comment for gateway.requestMembers to clarify about gateway.cache.requestMembers.enabled
* chore: make the comment better
* fix: add node:crypto import to deno import map
2024-12-27 20:43:01 +05:30
Fleny
01638a075f
Add renewalSkuIds to subscription ( #4049 )
2024-12-26 12:47:54 +01:00
Flash
6ca797bf4d
Allow edit and deferEdit on modal submit interaction ( #4053 )
2024-12-24 10:17:56 +01:00
Fleny
bee999b001
Add bluesky and mastodon to the connections ( #4051 )
2024-12-23 00:16:04 +05:30
Fleny
618d8dd108
fix(gateway): close not resolving in some cases ( #4046 )
...
* Fix close not resolving in some cases
* update some logging in close()
2024-12-10 11:01:51 +05:30
Fleny
41c614c31e
Dates are nullable not optional in Entitilement ( #4042 )
2024-12-05 09:21:12 +05:30
Fleny
848285968c
Use the correct name for files ( #4037 )
2024-12-04 16:47:06 +05:30
Fleny
58fccd8d14
Update package.json(s) for v20 ( #4030 )
2024-11-28 19:29:59 +01:00
Fleny
f137efa539
Add the crunchyroll connection ( #4029 )
2024-11-28 23:23:21 +05:30
Fleny
87de1ac16d
Remove withAtLeast, a & { ... } is the same thing ( #4028 )
2024-11-28 10:26:48 -06:00
Awesome Stickz
91b5b196bd
fix(gateway): shard.resume() ending in a loop of constant resumes ( #4017 )
...
* fix(gateway): shard.resume() ending in a loop of constant resumes
* refactor(gateway): change shard.close() to async and move resolve logic to shard.close()
* refactor: wait for shard.close() promise in gateway.shutdown()
* Fix integration test
---------
Co-authored-by: Fleny <fleny113@outlook.com >
2024-11-27 13:24:07 +01:00
Fleny
ffdef6c74e
feat(types,rest,bot): Document new entitlement endpoint behavior ( #4021 )
...
* Add getEntitlement endpoint
* use camelCase for excludeDeleted
2024-11-27 05:37:42 +05:30
Awesome Stickz
e8391e8724
fix(rest): errors returned from makeRequest() doesn't provide more info rest is proxied ( #4012 )
2024-11-23 14:54:18 -06:00
dependabot[bot]
7e117b14b4
build(deps-dev): bump @types/mocha from 10.0.9 to 10.0.10 ( #4003 )
...
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha ) from 10.0.9 to 10.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha )
---
updated-dependencies:
- 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-11-23 14:50:32 -06:00
Fleny
cdf0be41b6
fix(bot)!: fix type errors when using commandOptionsParser ( #3994 )
...
* Fix type errors when using commandOptionsParser
* remove export from TransformProperty
* use TransformProperty in InteractionResolvedData
* Fix CI
* Remove the union on GetErrorWhenUndesired
2024-11-23 14:50:16 -06:00
Fleny
078036f626
fix: add breaks to component transformer switch ( #4009 )
2024-11-22 21:31:02 +05:30
Awesome Stickz
19b3d0978e
refactor(bot): export base objects with getters from transformers ( #4007 )
2024-11-22 16:06:22 +01:00
Fleny
376b29db47
fix(utils): Fix broken urlToBase64 test ( #4002 )
...
* Rework the test for urlToBase64.
Currently urlToBase64 used the website logo however with #3990 the test
started failing as the logo changed so the base64 of it changed.
The test now mocks fetch() to return 8 empty bytes and checks for that
base64 string instead
* test: explicity import beforeeach and aftereach
* test: stub depend on runtime
* test: use try catch instead
* test: try itoh typeof
---------
Co-authored-by: H01001000 <heiheiho000@gmail.com >
2024-11-20 21:44:56 +01:00
dependabot[bot]
c5a9a6483e
build(deps-dev): bump @types/node from 22.9.0 to 22.9.1 ( #4001 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 22.9.0 to 22.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-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-11-20 07:41:27 -06:00
dependabot[bot]
a3ab41d390
build(deps-dev): bump @swc/cli from 0.5.0 to 0.5.1 ( #3996 )
...
Bumps [@swc/cli](https://github.com/swc-project/pkgs ) from 0.5.0 to 0.5.1.
- [Commits](https://github.com/swc-project/pkgs/commits )
---
updated-dependencies:
- dependency-name: "@swc/cli"
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-11-19 16:44:11 -06:00
Fleny
4939822434
docs: Update desired properties docs ( #3940 )
...
* Update docs for desired properties
* Update examples to use createBot desiredProperties
The BigBot and reaction roles examples use the Discordeno CLI
* Migrate examples to v19 stable
* Docs work
2024-11-19 16:40:01 -06:00
Fleny
1e8873b3cb
ci: Release v19 ( #3988 )
...
* Bump to 19.0.0, Add conditions for CI release
* Use next tag instead
2024-11-17 11:25:37 -06:00
dependabot[bot]
a6b9bad6ea
build(deps-dev): bump @types/node from 22.7.4 to 22.9.0 ( #3983 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 22.7.4 to 22.9.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-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-17 08:41:55 -06:00
dependabot[bot]
3b69f22ed1
build(deps-dev): bump @swc/core from 1.7.28 to 1.9.2 ( #3982 )
...
Bumps [@swc/core](https://github.com/swc-project/swc ) from 1.7.28 to 1.9.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.28...v1.9.2 )
---
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-11-17 08:39:45 -06:00
Fleny
2762b483ec
chore(discordeno)!: Remove CLI ( #3980 )
...
* Remove the CLI
* Update lockfile
* Fix CI
2024-11-17 08:39:18 -06:00
Fleny
f40da4c1cf
feat(bot)!: Add type helpers for type-level based desired props ( #3954 )
...
* Add type helpers for typeLevel based desired props
This also fixes / added a few stuff that was missing in exiting
types & transformers, however due to this a few transformers got a
breaking change due to the need to pass down the shardId
* Fix benchmark type error
* Add the generics to createBot / Bot / ..
This caused a lot of breaking changed due to the required generics on a
bunch of types
* Fix benchmark type error?
* Fix benchmarks type error
* Fix E2E test type error
* remove defaultDesiredPropertiesValue
* Remove `internal` jsdoc from CompleteDesiredProprieties
* Add tests for createDesiredPropertiesObject
* Fix interaction.bot type
* Remove Capitalize type helper
It is already built-in into typescript as an intrinsic
* Fix typo
* Update message on missing desired properties
* Fix CI
* Move infer types to 'transformers.$inferredTypes'
* Fix CI
* Fix CI, again
* Use GatewayHandlers in params of create function
* change default behavior to remove key
* Fix CI
* fix types for e2e test
2024-11-17 08:37:41 -06:00
Fleny
5f1ee0f42c
Fix incorrect type in interaction.respond ( #3979 )
...
This also changes the way we type our base structures, as using as was
suppressing errors such as the one fixed in this pr
2024-11-10 19:53:34 +05:30
8au
1e6de1d5e8
fix(bot): role.color being undefined when value is 0 ( #3976 )
...
* fix: the 'color' type on role is set to 'undefined' when its value is '0'
* fix: ensure role color is correctly assigned when value is 0
* fix: revert color type change
2024-11-10 00:47:54 +01:00
Awesome Stickz
4e4655b0a2
refactor(rest): make proxy.authorization optional in CreateRestManagerOptions ( #3977 )
...
* fix(rest): sending wrong auth header if proxied and no proxy auth is provided
* make proxy.authorization optional in CreateRestManagerOptions instead
2024-11-10 00:28:39 +05:30
Fleny
cfdf77027a
refactor(types,utils,rest,bot)!: Cleanup types & files ( #3951 )
...
* Cleanup some un-used & sort types, split files
* Remove commented code from reverse/component.ts
* Fix type error on the bot E2E test
* Add comment, remove DiscordInteractionResponse
* Remove camel.ts
* Error on unusedImport, refactor type imports
* Run biome check
* fix: typo
* Update comments for skuId and defaultValues
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2024-11-09 17:27:55 +01:00
dependabot[bot]
dbf4fda455
build(deps): bump typescript from 5.5.4 to 5.6.3 ( #3968 )
...
Bumps [typescript](https://github.com/microsoft/TypeScript ) from 5.5.4 to 5.6.3.
- [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.4...v5.6.3 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:production
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-11-09 09:00:33 -06:00
dependabot[bot]
0a9f9ee745
build(deps-dev): bump @types/ws from 8.5.12 to 8.5.13 ( #3969 )
...
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws ) from 8.5.12 to 8.5.13.
- [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-11-09 09:00:06 -06:00
dependabot[bot]
afb1fa5eef
build(deps-dev): bump mocha and @types/mocha ( #3967 )
...
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.3 to 10.8.2
- [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.3...v10.8.2 )
Updates `@types/mocha` from 10.0.8 to 10.0.9
- [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-minor
- 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-11-09 08:59:45 -06:00
dependabot[bot]
59fa35da9d
build(deps-dev): bump @swc/cli from 0.4.0 to 0.5.0 ( #3971 )
...
Bumps [@swc/cli](https://github.com/swc-project/pkgs ) from 0.4.0 to 0.5.0.
- [Commits](https://github.com/swc-project/pkgs/commits )
---
updated-dependencies:
- dependency-name: "@swc/cli"
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-11-09 08:59:09 -06:00
Fleny
61acc5781f
fix(gateway): Fix shard reconnecting in a loop ( #3907 )
...
* Attempt to fix shard reconnecting in a loop
* Add a bit of logging on READY & RESUMED
* Fix integration tests
* Revert turbo.json change
* Pass down the logger to LeakyBucket on HELLO
* Update some logs
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2024-11-08 19:46:10 +05:30
Fleny
dfa7ff4045
feat(bot,rest,gateway,utils,types)!: Add soundboard support ( #3919 )
...
* Add soundboard support
* Add rest endpoints
* add comment to gateway requestSoundboardSounds
* Apply suggestions from code review
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
* Update for discord/discord-api-docs#7207
* Update discord.ts
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
Co-authored-by: ITOH <to@itoh.at >
2024-11-05 19:44:37 +05:30
Fleny
87e6cd0c2e
feat(bot,rest,types): Add subscriptions ( #3892 )
...
* Add subscriptions
* Apply suggestions from code review
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2024-11-05 13:38:33 +01:00
Fleny
b1036b24cf
feat(types,bot): Add banners to members ( #3949 )
...
* Add banners to members
* Fix comments on Member and DiscordMember
2024-11-05 13:17:45 +01:00
Fleny
b42de2ebf7
Fix the remark on getWebhook ( #3950 )
2024-11-05 13:17:30 +01:00
Fleny
7cf2ad3862
Use numbers in the template partial source guild ( #3952 )
2024-11-05 13:17:15 +01:00
Fleny
81b3b28e0e
feat(bot,types): Add webhook events types ( #3953 )
...
* Add webhook events types
We will not support all the signing part for the handling of http
requests, however we do still provide the types for these requests
* Apply suggestions from code review
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
* Use union on DiscordEventWebhookEventBody data
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2024-11-05 13:16:56 +01:00
Fleny
d58de64704
Add command target to interaction response messages ( #3959 )
2024-11-05 13:16:41 +01:00
Fleny
84d20a2648
FIx error when transforming a partial message ( #3961 )
2024-11-05 13:16:10 +01:00
Fleny
eb20050745
Always include the message content if desired ( #3965 )
2024-11-05 13:15:46 +01:00
dependabot[bot]
33ec4d115e
build(deps-dev): bump sinon from 18.0.0 to 19.0.2 ( #3931 )
...
Bumps [sinon](https://github.com/sinonjs/sinon ) from 18.0.0 to 19.0.2.
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md )
- [Commits](https://github.com/sinonjs/sinon/compare/v18.0.0...v19.0.2 )
---
updated-dependencies:
- dependency-name: sinon
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-11-05 13:13:11 +01:00
dependabot[bot]
8bbc61ddf2
build(deps-dev): bump @types/chai-as-promised from 7.1.8 to 8.0.1 ( #3934 )
...
Bumps [@types/chai-as-promised](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai-as-promised ) from 7.1.8 to 8.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai-as-promised )
---
updated-dependencies:
- dependency-name: "@types/chai-as-promised"
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-11-05 13:12:47 +01:00