Fleny
409360a595
Fix some falsy values not in transformed objects ( #4242 )
2025-07-11 19:42:47 +05:30
Fleny
07a094e7e4
feat: role gradient colors ( #4239 )
...
* sort GuildFeatures
* feat: role gradient colors
* Use deprecated jsdoc tag
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2025-07-07 13:06:31 +05:30
Fleny
60c8d3e9ac
Add customizers for colleactibles and nameplate ( #4241 )
...
They exited in the types but didn't in the runtime object causing a runtime error when the code needed to transform a nameplate
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2025-07-07 12:58:04 +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
dependabot[bot]
99c8a2e780
build(deps): bump ws and @types/ws ( #4144 )
...
Bumps [ws](https://github.com/websockets/ws ) and [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws ). These dependencies needed to be updated together.
Updates `ws` from 8.18.0 to 8.18.1
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/compare/8.18.0...8.18.1 )
Updates `@types/ws` from 8.5.13 to 8.5.14
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws )
---
updated-dependencies:
- dependency-name: ws
dependency-type: direct:production
update-type: version-update:semver-patch
- 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>
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2025-06-15 11:24:28 -05:00
Fleny
c4f2fc2b01
feat(types,bot): add user collectibles ( #4225 )
2025-06-14 13:38:58 +05:30
Fleny
f500c00434
feat(bot,types): Add name and size to FileComponent ( #4224 )
...
* feat(bot,types): Add name and size to FileComponent
* fix ci
* more fix ci
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2025-06-13 18:59:53 +05:30
Fleny
2f06b95f37
feat(types,bot): Add attachment_id to UnfurledMediaItem ( #4223 )
...
* feat(types,bot): Add attachment_id to UnfurledMediaItem
* fix ci
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2025-06-13 18:53:59 +05:30
Fleny
adc10e3b28
feat(types,bot): approximate_user_authorization_count ( #4222 )
...
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2025-06-13 18:47:41 +05:30
Fleny
04b53a68c7
fix(types): update InteractionCallbackData flags ( #4221 )
...
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2025-06-13 18:39:11 +05:30
Fleny
4b30c24f8d
Add application deauthorized webhook event ( #4217 )
...
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2025-06-13 18:18:50 +05:30
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
Fleny
f811178f59
Remove default command contexts sentence ( #4210 )
2025-06-01 14:08:17 +05:30
Fleny
90f0507af0
feat(utils): animated webp emojis ( #4199 )
2025-06-01 08:28:27 +02:00
Fleny
b537c06a72
fix(types): Specify that IsComponentV2 is permanent ( #4202 )
2025-06-01 08:24:24 +02:00
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
Awesome Stickz
94040813bb
feat(gateway): add options.spreadShardsInRoundRobin to spread shards in a round-robin manner ( #4204 )
...
* feat(gateway): add options.spreadShardsInRoundRobin to spread shards in a round-robin manner
* fix: forgor to add to gateway
2025-05-26 11:57:48 +05:30
8au
a62fb5e17b
fix(gateway): remove 'offline' status from DiscordUpdatePresence, as Discord only supports 'invisible' and not 'offline' ( #4205 )
...
* 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
* fix(docs): fixed typo in big bot guide
* fix(gateway): fixed an issue which would cause bot status to appear as online if the user used 'offline' as the status
* Update settings.json
* remove offline status in DiscordUpdatePresence.status
* Apply suggestions from code review
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2025-05-26 10:10:11 +05:30
Max Zargov
dff9df5a59
fix: Unexpected TypeError in GatewayManager.requestMembers ( #4197 )
...
* fix: Unexpected TypeError in `GatewayManager.requestMembers` debug message
closes #4196
* refactor: prefer JSON.stringify replacer parameter when serializing
* Order functions in utils.ts
2025-05-24 08:19:51 +02:00
Fleny
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
b0d4309ec5
fix(types): Add missing limits on alts for media ( #4200 )
...
x
2025-05-24 03:38:47 +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
2eace55b9b
Specify when IS_COMPONENT_V2 is valid for flags ( #4195 )
2025-05-19 01:48:16 +05:30
Awesome Stickz
8eeda31769
refactor: set default format to webp instead of jpg in formatImageUrl() ( #4193 )
...
* refactor: set default format to webp instead of jpg in formatImageUrl
* fix: tests
2025-05-12 21:43:50 +05:30
Awesome Stickz
0db0ffe616
fix: CreateMessageOptions.messageReference.failIfNotExists is optional ( #4192 )
2025-05-11 18:19:46 +05:30
Fleny
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
Fleny
83d329c374
Remove shardIsReady ( #4190 )
2025-05-11 00:44:42 +05:30
Fleny
b14328240b
refactor(gateway): Improve request identify flow ( #4126 )
...
* Improve request identify flow
* Use leaky bucket for requestIdentify
* Revert behavior change to identify
* Move approved request identify to requestIdentify
* Apply some suggestions from code review
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
* move request identify to identify
* remove requestIdentify call from manager
* Add flag to skip requestIdentify in shard identify
* Add logs about socket creation
* Update newly added logs
* change "shard" to "Shard"
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev >
2025-05-10 16:46:30 +05:30
Fleny
9afd5cc350
Remove comment limit on number of component ( #4189 )
...
The limit is still in place however it is 40 total,
so it is a bit more complicated to explain and the discord docs
are better at doing so than what we can do with JSDoc
2025-05-05 22:18:19 +05:30
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
Awesome Stickz
5ebe549ada
refactor: don't log about resuming in shard.handleClose ( #4187 )
2025-05-03 13:37:15 +02:00
LTS (Link)
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)
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
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
a584ffc3a3
fix(types): Add missing ContainerComponent to MessageComponent ( #4172 )
2025-04-26 20:00:05 +02:00
Fleny
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
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
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