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
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
247fd4b348
fix(rest): Rewrite rest.simplifyUrl ( #4305 )
...
* fix(rest): Rewrite rest.simplifyUrl
* Update packages/rest/src/manager.ts
Co-authored-by: Link <lts20050703@gmail.com >
---------
Co-authored-by: Link <lts20050703@gmail.com >
2025-08-14 20:38:03 +02:00
Fleny
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
51158071ad
api-docs!: remove GetInvite.withExpiration, remove optional from DiscordInvite.expires_at ( #4321 )
2025-08-13 11:09:39 +02:00
Fleny
09d2697d37
api-docs: Update comment on getMessages ( #4306 )
2025-08-11 18:55:41 +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
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
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
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
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
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
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
Fleny
59cdefa2a2
Fix broken e2e (by removing tests) ( #4257 )
2025-07-20 17:50:00 +02:00
Fleny
936a09ec6c
fix(rest): Use .startsWith on the Content-Type check ( #4244 )
...
* fix(rest): Use `.startsWith` on the Content-Type check
* Fix type error
2025-07-13 09:02:20 +02:00
Fleny
612ac26ea7
feat(types,rest,bot): Updated message pin endpoints ( #4228 )
...
* feat: Updated message pin endpoints
* Apply suggestions from code review
Co-authored-by: Link <lts20050703@gmail.com >
---------
Co-authored-by: Link <lts20050703@gmail.com >
2025-07-12 09:30:35 +02:00
Fleny
8e637731e8
feat(rest): use a custom inspect for errors
2025-07-12 11:38:08 +05:30
dependabot[bot]
d44f8619bf
build(deps-dev): bump sinon from 19.0.2 to 21.0.0 ( #4234 )
...
---
updated-dependencies:
- dependency-name: sinon
dependency-version: 21.0.0
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-07-06 19:56:57 -05:00
dependabot[bot]
c842a8a6c5
build(deps-dev): bump typescript from 5.7.3 to 5.8.3 ( #4233 )
...
---
updated-dependencies:
- dependency-name: typescript
dependency-version: 5.8.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-07-05 12:18:47 -05:00
dependabot[bot]
8a7d579c13
build(deps-dev): bump @swc/core from 1.10.12 to 1.12.9 ( #4232 )
...
---
updated-dependencies:
- dependency-name: "@swc/core"
dependency-version: 1.12.9
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-07-05 12:18:34 -05:00
dependabot[bot]
8ad145f480
build(deps-dev): bump chai and @types/chai ( #4231 )
...
---
updated-dependencies:
- dependency-name: chai
dependency-version: 5.2.0
dependency-type: direct:development
update-type: version-update:semver-minor
- dependency-name: "@types/chai"
dependency-version: 5.2.2
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-07-05 12:02:01 -05:00
dependabot[bot]
9ebaed633f
build(deps-dev): bump @types/node from 22.13.0 to 22.15.29 ( #4212 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 22.13.0 to 22.15.29.
- [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: 22.15.29
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-06-15 11:38:32 -05:00
Fleny
70bcd16e8d
chore(website): Update docusarus v3.8, improve build perf ( #4209 )
...
* Update docusaurus to v3.8, improve performance
Docusaurus:
- Update to v3.8.0
- Enable new faster features, rspack bundler cache and worker threads
- Update CI to cache rspack bundler cache
- Update dependencies to latest versions
- Update blog posts to use the truncate tag
- Update caniuse-lite
Removed duplicated type documentation generation for bot package
* Use .jsonc files for typedoc
And use the readme option instead of a custom script
* remvoe typedoc script
---------
Co-authored-by: Jonathan Ho <heiheiho000@gmail.com >
2025-06-02 07:47:19 +02:00
LTS (Link)
4b96d9fe02
fix(bot,types)!: Remove editOriginalWebhookMessage ( #4175 )
...
(and fix editWebhookMessage options type as well)
Fixes: https://github.com/discordeno/discordeno/issues/4174
2025-05-04 09:23:11 +02:00
Fleny
80509a1420
Update manager.ts ( #4176 )
2025-04-28 18:28:55 +02:00
Fleny
b3de175f13
feat(types,rest,bot): Add with_components to webhooks ( #4152 )
...
* Add with_components to webhook execute and edit
* Fix query param building
* update comments
2025-04-27 09:42:51 +02:00
Fleny
24703f13dd
fix(types)!: Remove incorrect, reorder and fixes in channel ( #4151 )
...
* Remove incorrect, reorder and fixes in channel
- Updated comments to be more clear
- Remove `Channel.newly_created`, doesn't seem to exist in the api docs
- Fix nullability for some fields
- Remove DiscordActiveThreads, DiscordArchivedThreads and DiscordListActiveThreads as they don't seem to match anything in the api
* Add back DiscordListActiveThreads but under Guild
and fix type errors
* Update packages/types/src/discord/channel.ts
Co-authored-by: LTS (Link) <lts20050703@gmail.com >
* Revert newly_created removal
* Apply suggestions from code review
Co-authored-by: LTS (Link) <lts20050703@gmail.com >
---------
Co-authored-by: LTS (Link) <lts20050703@gmail.com >
2025-04-26 08:31:01 +02:00
Fleny
22012fc288
feat(types, rest, bot): Add lobby support ( #4158 )
...
* Add lobby support
* Fix CI
Apparently for extends a bot was a LobbyMember since both had
a required id property and even if LobbyMember had other properties
as well that did not matter
* update LobbyMember flags to use ToggleBitfield
2025-04-25 21:15:42 +02:00
Fleny
d063655e56
Deprecate createGuild and createGuildFromTemplate ( #4169 )
...
While discord does not say anything explicit about deprecating the
createGuildFromTemplate endpoint, it is a fair assumption to make that
it is included in this change
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2025-04-23 19:32:39 +05:30
Andrew
1c20b59eb0
fix(docs): update documentation links to point to the new site ( #4166 )
2025-04-09 22:24:08 +05:30
Awesome Stickz
ab7f3705c4
fix(rest): deleteWebhookMessage() and editOriginalInteractionResponse() doesn't require auth ( #4155 )
2025-03-21 18:15:40 +05:30
Fleny
cf8304ccef
fix(types)!: Fix optionals for some props in auto moderation. ( #4150 )
...
* Fix optionals for some props in autoModeration.
Also fix some comments to be more clear
* Fix type error in automodActionExecution
* Fix type error in automod.spec.ts e2e test
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2025-03-04 18:44:14 +05:30
Awesome Stickz
4d3bdf233d
feat!: add missing params to getThreadMember() and getThreadMembers() ( #4135 )
...
* feat: add missing params to getThreadMember() and getThreadMembers()
* add member property from payload in threadMember transformer
* mark guildId as BigString | undefined and pass undefined in threadMember transformer
* fix type of after, limit params of ListThreadMembers
* add tsdoc for GetThreadMember and GetGuildAuditLog
* make options param of getThreadMember() and getThreadMembers() optional
---------
Co-authored-by: Fleny <Fleny113@outlook.com >
2025-02-23 11:50:26 +01:00
Fleny
e7ebbaa31e
feat(rest): Improve error message for rest errors ( #4136 )
...
* Improve error message for rest errors
* Update packages/rest/src/manager.ts
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
* Add new line
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2025-02-23 15:43:28 +05:30
dependabot[bot]
dbf0459067
build(deps-dev): bump typescript from 5.7.2 to 5.7.3 ( #4121 )
...
Bumps [typescript](https://github.com/microsoft/TypeScript ) from 5.7.2 to 5.7.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.7.2...v5.7.3 )
---
updated-dependencies:
- dependency-name: typescript
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-02-19 00:29:25 -06:00
dependabot[bot]
109ba58196
build(deps-dev): bump @types/node from 22.10.3 to 22.13.0 ( #4119 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 22.10.3 to 22.13.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>
2025-02-19 00:28:54 -06:00
dependabot[bot]
32e3230ed4
build(deps-dev): bump @swc/core from 1.10.4 to 1.10.12 ( #4118 )
...
Bumps [@swc/core](https://github.com/swc-project/swc ) from 1.10.4 to 1.10.12.
- [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.10.4...v1.10.12 )
---
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>
2025-02-19 00:28:38 -06:00
Fleny
e387f2cae2
feat(types,rest,bot): Add ApplicationRoleConnectionMetadata types ( #4125 )
...
* add applicationRoleConnectionMetadata types
* Update packages/rest/src/manager.ts
Co-authored-by: LTS (Link) <lts20050703@gmail.com >
* Update packages/rest/src/manager.ts
Co-authored-by: LTS (Link) <lts20050703@gmail.com >
---------
Co-authored-by: LTS (Link) <lts20050703@gmail.com >
2025-02-07 16:42:46 +01:00
Fleny
6b577c3f3d
feat(bot,rest,types): Guild incidents data ( #4123 )
...
* Guild incidents data
* Update comments on ModifyGuildIncidentActions
2025-02-06 17:24:44 +01:00
Fleny
b177eb40f8
chore: Update yarn, refactor packages setup ( #4085 )
...
* Update yarn, refactor packages setup
* Rename some jobs in lib-check.yml
* Update website/yarn.lock
* Revert build-type-and-test job name change
2025-01-16 22:27:10 -06:00
Fleny
d8cfccb914
feat(rest)!: Parse json body when possibile in rest proxy ( #4090 )
...
* Parse json body when possibile in rest proxy
* Fix typo
Co-authored-by: ITOH <to@itoh.at >
---------
Co-authored-by: ITOH <to@itoh.at >
2025-01-16 22:26:54 -06:00
Fleny
cd396cf6bd
Simplify proxy error code ( #4086 )
2025-01-06 14:30:46 +05:30
Fleny
b0c1b9f795
ci: Use mocha for both deno and bun ( #4067 )
...
* Use mocha for both deno and bun
* Use any Bun 1.1
* remove build:type dependency in lib-check.yml
* Pin point 1.1.42
* remove packages/bot/.mocharc.json
2025-01-01 09:59:06 -08:00
dependabot[bot]
f2f7f111fb
build(deps-dev): bump @types/node from 22.10.2 to 22.10.3 ( #4083 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 22.10.2 to 22.10.3.
- [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>
2025-01-01 09:58:55 -08:00