Commit Graph

5698 Commits

Author SHA1 Message Date
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]
6696a8d81f build(deps-dev): bump @swc/core in /docker-apps/rest-passthrough (#4230)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.12.5 to 1.12.9.
- [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.5...v1.12.9)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-version: 1.12.9
  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: Awesome Stickz <awesome@stickz.dev>
2025-07-05 12:01:02 -05:00
dependabot[bot]
ee0c751558 build(deps-dev): bump dotenv in /docker-apps/rest-passthrough (#4229)
Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.5.0 to 17.0.0.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v16.5.0...v17.0.0)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-version: 17.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-02 10:18:55 +05:30
Fleny
c6e4fd9768 Update rest proxy to node v20 and its deps (#4226) 2025-06-21 19:38:11 +02:00
dependabot[bot]
a42ce83ab4 build(deps-dev): bump typedoc from 0.27.6 to 0.28.5 (#4211)
* build(deps-dev): bump typedoc from 0.27.6 to 0.28.5

Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.27.6 to 0.28.5.
- [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.27.6...v0.28.5)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-version: 0.28.5
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update 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>
2025-06-21 11:15:38 -05:00
Fleny
2ae8690faa ci: Use node v20 in CI (#4203)
* Use node v20 in CI

* Revert unit tests to use node 18

* Revert "Revert unit tests to use node 18"

This reverts commit 61dbd272f0.
2025-06-21 11:08:25 -05:00
dependabot[bot]
74050211e0 build(deps-dev): bump lint-staged from 15.3.0 to 16.1.0 (#4213)
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 15.3.0 to 16.1.0.
- [Release notes](https://github.com/lint-staged/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lint-staged/lint-staged/compare/v15.3.0...v16.1.0)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-version: 16.1.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-06-16 21:08:40 -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
dependabot[bot]
430a708b2d build(deps): bump brace-expansion in the npm_and_yarn group (#4219)
Bumps the npm_and_yarn group with 1 update: [brace-expansion](https://github.com/juliangruber/brace-expansion).


Updates `brace-expansion` from 1.1.11 to 1.1.12
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.12
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2025-06-13 18:22:37 +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
Brian Gates
c4d6a0755a fix(website): Grammar fix (#4220) 2025-06-12 16:42:03 +02:00
dependabot[bot]
3d7d43bfb0 build(deps): bump the npm_and_yarn group across 2 directories with 2 updates (#4218)
Bumps the npm_and_yarn group with 2 updates in the /examples/bigbot directory: [brace-expansion](https://github.com/juliangruber/brace-expansion) and [ws](https://github.com/websockets/ws).
Bumps the npm_and_yarn group with 1 update in the /website directory: [brace-expansion](https://github.com/juliangruber/brace-expansion).


Updates `brace-expansion` from 2.0.1 to 2.0.2
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v2.0.1...v2.0.2)

Updates `ws` from 8.18.1 to 8.18.2
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.18.1...8.18.2)

Updates `brace-expansion` from 1.1.11 to 1.1.12
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v2.0.1...v2.0.2)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 2.0.2
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: ws
  dependency-version: 8.18.2
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: brace-expansion
  dependency-version: 1.1.12
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-12 08:22:40 +02:00
dependabot[bot]
ec1d30363e build(deps): bump webpack-dev-server (#4216) 2025-06-05 11:12:23 +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
dependabot[bot]
4b75b11339 build(deps-dev): bump @swc/core in /docker-apps/rest-passthrough (#4215) 2025-06-01 18:44:27 +00:00
dependabot[bot]
8796d1361b build(deps-dev): bump @swc/cli in /docker-apps/rest-passthrough (#4214)
Bumps [@swc/cli](https://github.com/swc-project/pkgs) from 0.7.3 to 0.7.7.
- [Commits](https://github.com/swc-project/pkgs/commits)

---
updated-dependencies:
- dependency-name: "@swc/cli"
  dependency-version: 0.7.7
  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-06-01 20:38:48 +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
Fleny
5cb7c1d1d2 example(bigbot): Spawn one shard at a time (#4127)
* Spawn one shard at a time

* remove useless code in ShardIdentified handling

* update comment on tellWorkerToIdentify

* fix mistake

* Use request identify

This also makes some unrelated changes needed to make the example
comple when using the build from this branch.

* remove debug logs
2025-05-25 14:00:47 +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
dependabot[bot]
d155f27cd8 build(deps): bump the npm_and_yarn group across 1 directory with 2 updates (#4194)
Bumps the npm_and_yarn group with 2 updates in the /website directory: [webpack](https://github.com/webpack/webpack) and [undici](https://github.com/nodejs/undici).


Updates `webpack` from 5.99.4 to 5.99.5
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.99.4...v5.99.5)

Updates `undici` from 6.21.1 to 6.21.3
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.21.1...v6.21.3)

---
updated-dependencies:
- dependency-name: webpack
  dependency-version: 5.99.5
  dependency-type: direct:development
  dependency-group: npm_and_yarn
- dependency-name: undici
  dependency-version: 6.21.3
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-16 11:30:30 +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
31dcf78ec5 docs: add warning for better handling of dispatch events to avoid rate limits (#4188) 2025-05-03 13:56:23 +02:00
Awesome Stickz
5ebe549ada refactor: don't log about resuming in shard.handleClose (#4187) 2025-05-03 13:37:15 +02:00
dependabot[bot]
ad72acef44 build(deps-dev): bump dotenv in /docker-apps/rest-passthrough (#4182)
Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.4.7 to 16.5.0.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v16.4.7...v16.5.0)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-version: 16.5.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-05-02 20:03:02 +02:00
dependabot[bot]
dc19ffbbbd build(deps-dev): bump @swc/cli in /docker-apps/rest-passthrough (#4181)
Bumps [@swc/cli](https://github.com/swc-project/pkgs) from 0.6.0 to 0.7.3.
- [Commits](https://github.com/swc-project/pkgs/commits)

---
updated-dependencies:
- dependency-name: "@swc/cli"
  dependency-version: 0.7.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-05-02 19:57:27 +02:00
dependabot[bot]
9744e91d9a build(deps-dev): bump @swc/core in /docker-apps/rest-passthrough (#4180)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.11.15 to 1.11.24.
- [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.11.15...v1.11.24)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-version: 1.11.24
  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-05-02 19:37:05 +02:00
dependabot[bot]
6faa01dc3c build(deps): bump fastify in /docker-apps/rest-passthrough (#4183)
Bumps [fastify](https://github.com/fastify/fastify) from 4.29.0 to 4.29.1.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.29.0...v4.29.1)

---
updated-dependencies:
- dependency-name: fastify
  dependency-version: 4.29.1
  dependency-type: direct:production
  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-05-02 19:30:17 +02:00