Fleny
87f62d2a4b
fix(bot,types): guild members flags ( #3617 )
...
* Add flags field to ModifyGuildMember
Also add the GuildMemberFlags enum as that was missing
* Add flags to member object
* Fix type error
* Update member transformer
* Readd flags desired propriety
* Rename enum to MemberFlag for consitency
* Rename to GuildMemberFlags, use number not the enum itself
* Use ToggleBitfield for flags
* Add getters
* Fix build error
* Merge flags in toggles
* change flags getter to return the actual flags
And not our custom toggles values
* Fix reverse transformer
2024-07-13 13:12:02 -05:00
Fleny
919474069d
chore: Migrate ESLint and prettier to Biome ( #3634 )
...
* Migrate eslint and prettier to biomejs
This does NOT include examples/bigbot as it has its own formatter
* Update to biome 1.8.0
* Readd dotenv dev dependency to rest
During a merge it got lost
2024-07-13 13:05:02 -05:00
dependabot[bot]
14d5e2ffb1
build(deps-dev): bump @swc/cli from 0.3.9 to 0.4.0 ( #3729 )
...
Bumps [@swc/cli](https://github.com/swc-project/pkgs ) from 0.3.9 to 0.4.0.
- [Commits](https://github.com/swc-project/pkgs/commits )
---
updated-dependencies:
- dependency-name: "@swc/cli"
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-13 08:52:46 -05:00
Fleny
7836ec393f
Add missing proprieties on channel ( #3736 )
2024-07-13 08:52:05 -05:00
Fleny
727c7104ed
Rename channel.autoArchiveDuration to defaultAutoArchiveDuration ( #3741 )
2024-07-13 08:19:26 -05:00
Fleny
06664ed8bb
fix(website): fix typedoc configuration ( #3733 )
...
* Fix typedoc CI crashse
And adapt the website to its new output
* Revert /tsconfig.json changes
* Update footer
2024-07-13 08:15:19 -05:00
dependabot[bot]
6762bd4476
build(deps-dev): bump sinon from 17.0.1 to 18.0.0 ( #3721 )
...
Bumps [sinon](https://github.com/sinonjs/sinon ) from 17.0.1 to 18.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md )
- [Commits](https://github.com/sinonjs/sinon/compare/v17.0.1...v18.0.0 )
---
updated-dependencies:
- dependency-name: sinon
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-07-09 19:11:09 -05:00
dependabot[bot]
b68af86688
build(deps-dev): bump typescript from 5.4.5 to 5.5.3 ( #3720 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 5.4.5 to 5.5.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.4.5...v5.5.3 )
---
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-07-09 09:25:35 -05:00
dependabot[bot]
02512c9de4
build(deps-dev): bump @types/chai from 4.3.11 to 4.3.16 ( #3722 )
...
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai ) from 4.3.11 to 4.3.16.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai )
---
updated-dependencies:
- dependency-name: "@types/chai"
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-09 09:24:48 -05:00
dependabot[bot]
53649f1fbc
build(deps-dev): bump @types/node from 20.11.25 to 20.14.10 ( #3724 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 20.11.25 to 20.14.10.
- [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-07-09 09:24:08 -05:00
Fleny
3daf71a507
Use bigint for permission flags ( #3726 )
...
Also convert the enum to an object as typescript doesn't like bigint in an enum
2024-07-09 09:23:46 -05:00
Fleny and Skillz4Killz
97a8016041
chore: Code changes & formatting and linting ( #3552 )
...
* Do some code changes & run prettier and eslint
* Fix test:test-type script
* Apply code review suggestions
* update heartbeat interval & add a reason for the specific value
* Fix husky error
* Update to TS 5.5
And use ${configDir}
* Fix test.json tsconfig base
---------
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2024-07-08 15:11:41 -05:00
Fleny and Skillz4Killz
2f89d4da30
Add partial guild to interaction ( #3618 )
...
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2024-07-07 16:32:06 -05:00
Fleny
24ea6f8af8
fix(bot)!: Guild features type ( #3719 )
...
* Fix guild features type, remove useless features des prop
* Add missing guild features
2024-07-07 16:14:13 -05:00
Fleny
aecc55d150
fix(bot)!: Add guild.features to guild transformer ( #3705 )
...
* Add guild.features to guild transformer
* Use a getter on the toggles for features
2024-07-07 10:39:04 -05:00
Fleny
2def050845
feat(types)!: Add flags enums ( #3717 )
...
* Add flags enums
* Remove extra MessageFlags enum from `@discordeno/bot`
This is not a breaking in itself as `@discordeno/types` has this enum
* Fix CI error, remove usage of MessageFlags and SkuFlags
* Revert "remove usage of MessageFlags and SkuFlags"
This reverts part of commit 954b347ebb .
* fix ci error
2024-07-07 10:37:49 -05:00
Fleny and Skillz4Killz
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
Fleny and Skillz4Killz
a1af1ff910
Adds premium interaction ( #3680 )
...
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2024-07-06 17:04:05 -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
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]
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
Fleny and Awesome 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
Fleny and Awesome 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 and Awesome 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
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
Fleny and LTS20050703
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
Fleny
a361a53d57
Add poll transformer export ( #3550 )
...
& fix a typedoc warning for the oauth2 func
2024-05-06 07:40:08 +00:00
Fleny and Matt 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
Fleny and LTS20050703
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
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
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]
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] and Fleny
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
dependabot[bot]
f63018bd47
build(deps-dev): bump @swc/core from 1.4.0 to 1.4.2 ( #3452 )
...
Bumps [@swc/core](https://github.com/swc-project/swc ) from 1.4.0 to 1.4.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.4.0...v1.4.2 )
---
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-02-25 01:05:31 +00:00
Dorian Oszczęda
100039b1bd
feat: Add voice state to the desired properties object. ( #3424 )
...
* feat: Add voice state to the desired properties object.
* chore: Remove unnecessary check.
2024-02-21 14:20:23 +00:00
dependabot[bot]
9b5e080cbb
build(deps-dev): bump @swc/core from 1.3.102 to 1.4.0 ( #3417 )
...
Bumps [@swc/core](https://github.com/swc-project/swc ) from 1.3.102 to 1.4.0.
- [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.3.102...v1.4.0 )
---
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-02-13 02:11:11 +00:00
Fleny and Matt Hatcher
f0ac958903
chore(website): Cleanup docusaurus setup ( #3355 )
...
* 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
---------
Co-authored-by: Matt Hatcher <3768988+MatthewSH@users.noreply.github.com >
2024-02-09 20:34:59 +00:00
dependabot[bot]
74312479b9
build(deps-dev): bump chai from 5.0.0 to 5.0.3 ( #3401 )
...
Bumps [chai](https://github.com/chaijs/chai ) from 5.0.0 to 5.0.3.
- [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.0...v5.0.3 )
---
updated-dependencies:
- dependency-name: chai
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-02-09 18:43:32 +00:00
Fleny
493f4d15e9
Use helpers in interaction methods ( #3395 )
2024-02-09 17:58:13 +00:00
dependabot[bot]
8f60790a81
build(deps-dev): bump @types/node from 20.11.0 to 20.11.15 ( #3411 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 20.11.0 to 20.11.15.
- [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-02-02 03:08:58 +00:00
dependabot[bot]
1e6f22e917
build(deps-dev): bump c8 from 9.0.0 to 9.1.0 ( #3374 )
...
Bumps [c8](https://github.com/bcoe/c8 ) from 9.0.0 to 9.1.0.
- [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/v9.0.0...v9.1.0 )
---
updated-dependencies:
- dependency-name: c8
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-01-25 19:30:47 +00:00
dependabot[bot]
f798f950e7
build(deps-dev): bump @types/node from 20.10.6 to 20.11.0 ( #3366 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 20.10.6 to 20.11.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>
2024-01-12 13:29:00 +00:00