Fleny
ef5cf54c66
fix(bot): Use an object to present desired properties errors ( #4208 )
...
* Use DesiredPropertiesError instead of strings
Using an object allows typescript to error in more cases as with strings
if the original propriety was a string it would not error for stuff like
`.endsWith(...)`
We use a symbol to make sure the type doesn't actually become a generic
object, but instead is a specific type that can be checked against.
* Update docs
2025-06-01 08:20:16 +02:00
Awesome Stickz
5b97b217a7
fix(bot): role.name property missing because of empty role names ( #4207 )
2025-05-29 23:52:16 +05:30
Fleny and Awesome Stickz
cafc5713ab
fix(types, bot): Clarify interaction.message comment ( #4201 )
...
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2025-05-24 03:45:23 +05:30
Fleny
17dc876a9e
fix(bot): Add entitlements to interactions ( #4198 )
...
* Add entitlements to interactions
* fix type error
2025-05-24 03:24:21 +05:30
Fleny and Awesome Stickz
059c6a9797
fix(bot): don't override flags when isPrivate ( #4191 )
...
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2025-05-10 21:21:00 +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
LTS (Link) and Fleny
5c38883bbc
feat(types,bot)!: Add desiredProperties for components ( #4179 )
...
- feat(bot): Add desiredProperties for components, as well as media gallery items and unfurled media items
- fix(types)!: Rename the following types to match the newly updated discord docs:
- InputText to TextInput
- SelectMenu to StringSelect
- SelectMenuUsers to UserSelect
- SelectMenuRoles to RoleSelect
- SelectMenuMentionable to MentionableSelect
- SelectMenuChannels to ChannelSelect
- Update some JSDOC comments to match the new discord docs
Co-authored-by: Fleny <Fleny113@outlook.com >
2025-05-01 11:18:48 +02:00
LTS (Link) and Fleny
11c6d043e3
Fix(utils): Remove redundant comparison & bitwise operation ( #4178 )
...
Co-authored-by: Fleny <Fleny113@outlook.com >
2025-05-01 11:03:53 +02:00
NotDemonix
f227b11a8c
Improve consistency for snowflakeToTimestamp ( #4177 )
2025-05-01 10:49:19 +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
3d90d816e7
feat(types,bot)!: Components V2 ( #4080 )
...
* UI
* change component names to match Discord's names
* add divider prop to separator component
* rename thumbnail component image property to media
* Rename MessageFlags.IsUiKit to IsComponentsV2
* Rename FileDisplay component to File component
* Added container component
* add id to container component transformers
* add id to all components
* SectionComponent.accessory now accepts ButtonComponent as well
* Update description for FileComponent.file
* fix bad merge
* Change Component.accessory to ButtonComponent | ThumbnailComponent
* Add section to reverse, fix Component#accessory
* remove type cast on section transform
* Add docs link for CreateGuildChannel
Co-authored-by: LTS (Link) <lts20050703@gmail.com >
* Update comments & split components
* fix type errors
* Really fix CI
* transform UnfurledMediaItem
* Apply suggestions from code review
Co-authored-by: LTS (Link) <lts20050703@gmail.com >
* change DiscordInputTextComponent to DiscordTextInputComponent
* fix order in Transformers.customizers
* Fix missing transformers
* update action row components type
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
Co-authored-by: LTS (Link) <lts20050703@gmail.com >
2025-04-26 08:35:06 +02:00
Fleny and LTS
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
f0e0bd0aef
Update Slash Command Name regex ( #4102 )
...
* Update Slash Command Command Name regex
* Update comments to reflect the change
* Use the correct apostrophe in the regex
While the docs use the regular ', discord accepts
the unicode apostrophe ʼ.
2025-04-25 21:21:27 +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
77fc516a64
feat(types,bot): Add the attachmentSizeLimit prop to interactions ( #4163 )
...
* Add the attachmentSizeLimit prop to interactions
* Fix type error
2025-04-23 19:48:40 +05:30
Fleny
806380a25d
Fix triple-n typos in types.ts and application.ts ( #4164 )
2025-04-23 19:39:18 +05:30
Fleny and Awesome Stickz
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
Fleny and Awesome Stickz
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
LonelyDeathVGX
f135fd871c
fix(types): use Localization instead of Record<Locales, string> ( #4143 )
2025-03-01 19:18:31 +01:00
Awesome Stickz
47b31622e4
fix(types): add ThreadMember.member ( #4139 )
2025-02-24 01:17:20 +05:30
Awesome Stickz and Fleny
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
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 and LTS
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
f4f4665b89
Use desired properties in InteractionResolvedXYZ ( #4099 )
2025-01-24 21:23:24 -05: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
Awesome Stickz
7fc1f12e4c
feat(bot): add botBannerURL option to helpers.editBotProfile() ( #4094 )
2025-01-15 22:24:47 +05:30
Fleny
27808bea7d
test(bot,gateway): Fix Bot E2E and Gateway Integration tests ( #4084 )
...
* Fix bot e2e, refactor gateway integration tests
* use debug for bot e2e log
* Discard changes to packages/bot/src/bot.ts
2025-01-06 04:04:12 -05:00
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
dependabot[bot]
c569805249
build(deps-dev): bump @swc/core from 1.10.2 to 1.10.4 ( #4079 )
...
Bumps [@swc/core](https://github.com/swc-project/swc ) from 1.10.2 to 1.10.4.
- [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.2...v1.10.4 )
---
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-12-30 16:09:42 -08:00
dependabot[bot]
efc15e1488
build(deps-dev): bump c8 from 10.1.2 to 10.1.3 ( #4071 )
...
Bumps [c8](https://github.com/bcoe/c8 ) from 10.1.2 to 10.1.3.
- [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/v10.1.2...v10.1.3 )
---
updated-dependencies:
- dependency-name: c8
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-12-30 16:09:11 -08:00
dependabot[bot]
4f43b505d5
build(deps-dev): bump mocha from 10.8.2 to 11.0.1 ( #4070 )
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 10.8.2 to 11.0.1.
- [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.8.2...v11.0.1 )
---
updated-dependencies:
- dependency-name: mocha
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-12-30 11:05:00 -08:00
dependabot[bot]
86a446efba
build(deps-dev): bump @swc/cli from 0.5.1 to 0.5.2 ( #4068 )
...
Bumps [@swc/cli](https://github.com/swc-project/pkgs ) from 0.5.1 to 0.5.2.
- [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-12-30 11:04:49 -08:00
Fleny
afb9e3a453
chore: Bump to v21 ( #4062 )
2024-12-28 21:51:59 +01:00
dependabot[bot] and Fleny
f0b8cd4691
build(deps-dev): bump typescript and typedoc ( #4031 )
...
* build(deps-dev): bump typescript and typedoc
Bumps [typescript](https://github.com/microsoft/TypeScript ) and [typedoc](https://github.com/TypeStrong/TypeDoc ). These dependencies needed to be updated together.
Updates `typescript` from 5.6.3 to 5.7.2
- [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.6.3...v5.7.2 )
Updates `typedoc` from 0.26.11 to 0.27.1
- [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.11...v0.27.1 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-minor
- dependency-name: typedoc
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update typedoc-plugin-markdown
* Update website/yarn.lock
* Bump typedoc & typedoc-plugin-markdown
---------
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-12-28 20:40:31 +01:00
dependabot[bot]
96f4b9bd7b
build(deps-dev): bump @types/node from 22.9.1 to 22.10.2 ( #4047 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 22.9.1 to 22.10.2.
- [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-12-28 20:39:34 +01:00
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
Fleny and Awesome Stickz
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
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
41c614c31e
Dates are nullable not optional in Entitilement ( #4042 )
2024-12-05 09:21:12 +05:30
Fleny
58fccd8d14
Update package.json(s) for v20 ( #4030 )
2024-11-28 19:29:59 +01:00
Fleny
87de1ac16d
Remove withAtLeast, a & { ... } is the same thing ( #4028 )
2024-11-28 10:26:48 -06: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
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