Commit Graph

316 Commits

Author SHA1 Message Date
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
Fleny
9de5d93014 feat(bot): Add guildId to ThreadMember (#4335) 2025-08-14 19:21:22 -07: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
86f8fbd589 fix(bot)!: Remove InternalBot, add messagePin transformer (#4302) 2025-08-14 18:43:34 +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
b70cf76165 feat(bot)!: Remove bot.events.guildUnavailable (#4336)
It is now merged with the guildDelete event
2025-08-13 16:18:03 +05:30
Fleny
f6ea699dfe fix(types)!: Sort & fix guild.ts properties (#4288)
* Sort & fix guild.ts properties

* Fix type errors

* Apply code review suggestions
2025-08-11 18:51:00 +02:00
Fleny
d713d09064 fix(types)!: Fix nullability for DiscordEmoji (#4285)
* Fix nullability for DiscordEmoji

* Fix type errors, use actual DiscordEmoji for partial emojis

* Apply code review suggestions
2025-08-11 18:41:50 +02:00
Fleny
088de8c417 fix(types)!: Sort & fix interactions.ts types (#4290)
* Sort & fix interactions.ts types

* Fix type errors

* Apply suggestions from code review

Co-authored-by: Link <lts20050703@gmail.com>

---------

Co-authored-by: Link <lts20050703@gmail.com>
2025-08-11 18:33:47 +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
8fd277924f fix(bot): ACK the interaction only after a successful response (#4280) 2025-08-04 08:46:47 +02:00
Fleny
278099ae30 fix(types,bot)!: GetChannelPins.items is an array (#4284) 2025-08-03 17:22:12 -07: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
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
f4098d573f api-docs: Add GUILD_TAGS guild feature (#4271) 2025-07-30 17:50:47 +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
a9d4bc346c api-docs: Document AUTOMOD_QUARANTINED_GUILD_TAG member flag (#4265) 2025-07-28 08:28:16 +02:00
Fleny
9f594da614 api-docs: Update the description for identity_enabled to be clearer (#4266)
* Update the description for identity_enabled to be clearer

* Update packages/bot/src/transformers/types.ts

Co-authored-by: Link <lts20050703@gmail.com>

---------

Co-authored-by: Link <lts20050703@gmail.com>
2025-07-28 08:25:22 +02:00
Fleny
1cb60c909c Split extra fields into their own types (#4256)
* Split extra fields into their own types

For now they are added back to the types they belong to to avoid
breaking in this pr

* fix type errors

* Fix typo 1

Co-authored-by: Link <lts20050703@gmail.com>

* Fix typo 2

Co-authored-by: Link <lts20050703@gmail.com>

* Use omit and not partial on guild voice_states

Co-authored-by: Link <lts20050703@gmail.com>

* Remove unused `ts-expect-error`

---------

Co-authored-by: Link <lts20050703@gmail.com>
2025-07-20 18:47:30 +02:00
Fleny
76e64ce748 feat!: Add invite flags for guest invites (#4237)
* sort GuildFeatures

* Add invite flags for guest invites

* fix desired props type error
2025-07-12 09:42:21 +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
cb8176c623 feat: user tags (#4238)
* feat: user tags

* Apply suggestions from code review

Co-authored-by: Link <lts20050703@gmail.com>

---------

Co-authored-by: Link <lts20050703@gmail.com>
2025-07-12 09:25:31 +02:00
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
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
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
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
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
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)
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
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