Commit Graph
366 Commits
Author SHA1 Message Date
FlenyandSkillz4Killz 49ce2e44df feat(bot,rest,types): Add burst (super reaction) informations on events & DiscordReactionType (#3615)
* Add GetReactions#type & DiscordReactionType

* Add burst and burstColors to reaction add/remove events

The reaction remove event only has burst, not burstColors

* Add type to message reaction add/remove

* Fix type error

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2024-07-07 10:26:35 -05:00
b16e9b70a0 fix(types): Update max poll duration and defaults for creating a poll (#3694)
* Change the max duration of poll from 7 days to 32

* Update default values for poll creation (#3701)

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-07 10:25:56 -05:00
FlenyandAwesome Stickz b20e12ded4 feat(rest,types)!: User apps GA (#3696)
* User apps GA

* Apply code-review suggettions

Without some re-wording of the already confusing Discord usage of context/type term

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-07 20:42:02 +05:30
FlenyandSkillz4Killz 48bc543e09 Add avatarDecorationData to guildMemberUpdate (#3679)
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2024-07-07 00:56:16 -05:00
FlenyandSkillz4Killz a1af1ff910 Adds premium interaction (#3680)
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2024-07-06 17:04:05 -05:00
Fleny a2d8afb462 Document the position behavior for duplicate position values (#3690) 2024-07-06 16:30:19 -05:00
Fleny 9cea65f761 Add invite type (#3614) 2024-07-06 16:30:05 -05:00
Fleny 9cca689688 Add Attachment title (#3691) 2024-07-06 16:19:06 -05:00
Fleny f57e2e962f Add guildId to guildStickersUpdate event (#3706) 2024-07-06 16:08:25 -05:00
Fleny e12142daf6 Use %20 instead of ' ' for joining scopes (#3709) 2024-07-06 15:56:48 -05:00
Fleny 39b18a1682 Use bot.transformers.emoji in handleGuildEmojisUpdate (#3704) 2024-07-06 19:12:54 +00:00
dependabot[bot] a7c53516bf build(deps-dev): bump chai from 5.0.3 to 5.1.1 (#3556)
Bumps [chai](https://github.com/chaijs/chai) from 5.0.3 to 5.1.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.0.3...v5.1.1)

---
updated-dependencies:
- dependency-name: chai
  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-07-06 13:52:35 -05:00
dependabot[bot] 4d1e9154a6 build(deps-dev): bump mocha and @types/mocha (#3685)
Bumps [mocha](https://github.com/mochajs/mocha) and [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha). These dependencies needed to be updated together.

Updates `mocha` from 10.3.0 to 10.5.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.3.0...v10.5.1)

Updates `@types/mocha` from 10.0.6 to 10.0.7
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-minor
- 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-07-06 13:51:19 -05:00
dependabot[bot] 893639c9cc build(deps): bump ws from 8.16.0 to 8.18.0 (#3707)
Bumps [ws](https://github.com/websockets/ws) from 8.16.0 to 8.18.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.16.0...8.18.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
  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-07-06 13:50:54 -05:00
dependabot[bot] 0d9c4dada6 build(deps-dev): bump @typescript-eslint/parser from 7.0.2 to 7.15.0 (#3710)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.0.2 to 7.15.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.15.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  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-07-06 13:07:21 -05:00
FlenyandSkillz4Killz 5cccaeaf06 fix(rest)!: Fix Basic OAuth2 queues and add method for updating the queues and ratelimit paths after a refresh (#3185)
* fix basic auth requested

* Change queue keys to "{auth}{url}"

* add updateTokenQueues method

* Fix unit tests

* removed interval check for queue clear | needs testing

* hide tokens in debug logs

* Fix 429 & 401 requests, rename queueBaseKey to requestAuthorization

* fix unit tests

* Add proxy.updateBearerTokenEndpoint option

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2024-07-06 17:30:03 +00:00
Fleny 92bf16645a PurchaseNotification message type (#3656) 2024-06-12 15:39:06 +00:00
Fleny f6a42b966a Add USE_EXTERNAL_APPS permission (#3658) 2024-06-12 15:38:17 +00:00
dependabot[bot] 2b177719e5 build(deps-dev): bump typescript from 5.3.3 to 5.4.5 (#3534)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.3.3 to 5.4.5.
- [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.3.3...v5.4.5)

---
updated-dependencies:
- dependency-name: typescript
  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-06-11 17:02:24 +00:00
FlenyandAwesome Stickz ad7e74c4cd feat(bot,types)!: Replace userId with User object in interactionMetadata (#3627)
* Replace userId with User object in interactionMetadata

* Fix type error

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-05-26 19:36:48 +00:00
FlenyandAwesome Stickz 5290078044 fix(bot,types,utils)!: change avatar decoration url link (#3621)
* Change the avatarDecorationUrl link

* Add User#avatarDecorationData & Member#avatarDecorationData

* Fix type error

* Fix format error

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-05-26 19:14:11 +00:00
Fleny 226e3de43e Add auditlog events for onboarding (#3616) 2024-05-26 19:05:53 +00:00
Fleny 7a0d730b1b docs(types): Update some documentation of the options for slash commands (#3619)
* Update some documentation of the options for slash commands

* Update comments
2024-05-26 19:00:46 +00:00
Fleny c6ca749a4f Add botBannerURL to edit current bot banner (#3620) 2024-05-26 18:58:17 +00:00
Fleny f8f976acf4 Add reason to followAnnouncement (#3622) 2024-05-26 18:51:00 +00:00
FlenyandAwesome Stickz 163cebdcd0 Add the poll object to the message transformer (#3624)
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-05-26 18:49:05 +00:00
Fleny e33b44e5e5 Add domain connection service type (#3623) 2024-05-26 18:41:11 +00:00
Fleny c570a881cf fix(utils): Use media.discordapp.net for gif stickers (#3625)
* Use media.discordapp.net for gif stickers

And add Gif to StickerFromatTypes as it was missing

* remove return undefined, use return
2024-05-26 18:39:42 +00:00
47d0cea664 feat(bot,rest,types): Add support for one-time entitlements (#3626)
* Add support for one-time entitlements

* Add comment to consumeEntitlement route

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

* Check for undefined instead of falsy values in consumed for entitlements

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

---------

Co-authored-by: LTS20050703 <lts20050703@gmail.com>
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-05-26 18:38:48 +00:00
FlenyandLTS20050703 541dc3b0cf feat(bot,types): Add MessageCall (#3628)
* Add message#call

* Update message transformer for message calls

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

---------

Co-authored-by: LTS20050703 <lts20050703@gmail.com>
2024-05-26 18:07:45 +00:00
Kane Wang d69e537ead fix getPollAnswerVoters return type (#3561) 2024-05-19 10:36:14 +00:00
Fleny d0d810dfb5 Remove bot token from the shards logs (#3558) 2024-05-11 14:44:17 +00:00
Fleny a361a53d57 Add poll transformer export (#3550)
& fix a typedoc warning for the oauth2 func
2024-05-06 07:40:08 +00:00
FlenyandMatt Hatcher 687c29dd7a feat(bot,rest,types,utils): Support User-Installed apps, Interaction contexts and install types (#3502)
* Support integrationTypesConfig in Application

* Add support for commands with integrationTypes and contexts

And deprecate the dmPermission boolean, it is being replaced by contexts

* Update contexts comment to make it more clear

* User-Installed apps

* Add integrationType oauth parameter

fixes #3517

* Add null to contexts

closes #3523

* Mark oauth2 install params as nullable

closes #3525

* Fix typescript errors

* Add preview notices

---------

Co-authored-by: Matt Hatcher <3768988+MatthewSH@users.noreply.github.com>
2024-04-29 15:36:29 +00:00
FlenyandLTS20050703 6ad4e1d2e8 feat(bot,rest,types): Add polls support (#3542)
* Add polls support

* Add default for limit on GetPollAnswerVotes

* Apply code rewiew suggestion

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

---------

Co-authored-by: LTS20050703 <lts20050703@gmail.com>
2024-04-28 11:42:19 +00:00
Fleny 75332eecda Add bulk ban (#3543) 2024-04-28 10:50:02 +00:00
Fleny dfa1514577 Update comment for permissions needed when pruning members (#3503) 2024-04-18 09:24:43 +00:00
Fleny 3e99aba7e9 Add bungie discord connection (#3526) 2024-04-18 09:19:02 +00:00
Fleny efe56fbe06 feat(bot, rest, gateway, utils): Add support for custom loggers (#3383)
* Add support for custom loggers

* update docs for loggerFactory

* Use union for names in the bot logger factory

* Fix formaating errors
2024-03-17 11:22:45 +00:00
Fleny 2002a2bd6e feat(rest): Improve rest errors (#3382)
* Improve rest errors

* formatting
2024-03-08 04:42:49 +00:00
FlenyandMatt Hatcher edbb134efa docs: Update contributing docs (#3386)
* Update docusaurus typescript setup for v3

And fix lint-staged and eslint

* Enable automatic JSX runtime

* Remove babel config and dependencies

* update yarn.lock

* add typecheck to site workflow

* update typedoc config

* downgrade docusaurus packages

* Update site.yml

* Type context and options in webpack-docusaurus-plugin.ts

* Update contributing docs

remove howToUseTurborepo.md
update devcontainer
update task to remove error matcher
remove useless packages/rest/src/README.md
remove readme.hbs

* Add notice for the clean build

---------

Co-authored-by: Matt Hatcher <3768988+MatthewSH@users.noreply.github.com>
2024-03-08 04:40:27 +00:00
Dorian Oszczęda 05a20c3bf8 refactor(bot, gateway, rest)!: Improve the interface of the createBot() function. (#3422)
* misc: Make the token a required property on the rest manager.

* refactor: Make unnecessarily required properties optional.

* misc: Improve interface for `createBot()` and allow passing in `transformers`/`handlers`.

* fix: Test made redundant by changes still being included.

* fix: Missing non-null assertions.

* fix: Benchmarks failing.

* misc: Remove `cache.requestMembers.pending` as an exposed option.

* style: Switch back to interface approach.
2024-03-07 22:39:48 -06:00
Fleny 46c93385c1 Update interaction helpers (#3465) 2024-03-07 22:35:55 -06:00
dependabot[bot] 866d622eb3 build(deps): bump dotenv from 16.3.1 to 16.4.5 (#3456)
Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.3.1 to 16.4.5.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v16.3.1...v16.4.5)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:production
  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-03-07 22:34:22 -06:00
dependabot[bot] fdc86c2107 build(deps-dev): bump @typescript-eslint/eslint-plugin (#3472)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.21.0 to 7.1.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.1/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  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-03-07 22:32:30 -06:00
dependabot[bot] 5612d5d09b build(deps-dev): bump @types/node from 20.11.15 to 20.11.25 (#3475)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.15 to 20.11.25.
- [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>
2024-03-07 22:30:41 -06:00
dependabot[bot] 376277355a build(deps-dev): bump mocha from 10.2.0 to 10.3.0 (#3458)
Bumps [mocha](https://github.com/mochajs/mocha) from 10.2.0 to 10.3.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.2.0...v10.3.0)

---
updated-dependencies:
- dependency-name: mocha
  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-03-01 18:00:25 +00:00
dependabot[bot] e6192440a3 build(deps-dev): bump eslint from 8.56.0 to 8.57.0 (#3459)
Bumps [eslint](https://github.com/eslint/eslint) from 8.56.0 to 8.57.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.56.0...v8.57.0)

---
updated-dependencies:
- dependency-name: eslint
  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-03-01 18:00:08 +00:00
dependabot[bot]andFleny 23ba7274e0 build(deps-dev): bump @swc/cli from 0.1.63 to 0.3.9 (#3418)
* build(deps-dev): bump @swc/cli from 0.1.63 to 0.3.9

Dependabot couldn't find the original pull request head commit, e5e8fe736bb5b72b9622fbb362d85f67cc867c60.

* add --strip-leading-paths to swc

---------

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <fleny113@outlook.com>
2024-02-25 11:21:34 +00:00
Matt Hatcher 6b5d8094df fix(rest): remove has_message from forum route (#3384) 2024-02-25 01:40:09 +00:00