Commit Graph
5080 Commits
Author SHA1 Message Date
Jonathan Ho 97be09d65f Revert "Fix the TS error in transformers benchmark (#3261)" (#3268)
This reverts commit 721b8a82f6.
2023-12-07 02:29:16 +00:00
Jonathan Ho 79cc362c22 feat: add site back to website (temp) (#3267)
* feat: add site back to website

* refactor: use same sidebar

* fix: delete generated docs
2023-12-07 01:00:20 +00:00
Fleny 721b8a82f6 Fix the TS error in transformers benchmark (#3261) 2023-12-07 00:28:38 +00:00
Fleny 0af084d932 feat: api docs catchup part 2 (#3266)
* add guild safety | closes #3020

* Adds approx guild count | closes #3078

* Team member permissions | closes #3105

According to current documentation DiscordTeamMemberRole#Owner does not have a value anymore, in this commit it still had so it is included to be changed by a later commit

* Default thread ratelimit | closes #3216

* Entitlements and SKUs | closes #3219

The entitlements events needs testing for the typing

* Typing endpoint docs update | closes #3222

* Add guildScheduledEventId to CreateStageInstance | closes #3228

* Add listSkus helper

I did forget it in the commit before

* Update Application Endpoints | closes #3230

* Update documentation | closes #3233

* fix starting a thread in forum | closes #3234 & closes #3036

* Add fired events on get widget endpoint | closes #3235

* Add fired events on get widget endpoint pt2 | closes #3236

* Update SKU and Entitlement fields | closes #3238

* Split permissions for expressions and events | closes #3249

* Make GetEntitlements#excludeEnded more specific | closes #3251

* Fix thread/forum channel docs regression | closes #3252

* Another description change for GetEntitlements#excludeEnded | closes #3253

* Document applied_tags on Execute Webhook | closes #3265

* Fix entitlement event types
2023-12-06 16:18:29 +00:00
Jonathan Ho 81586743f7 refactor: try faster docusaurus build (#3263)
* refactor: try esbuild-loader time

* refactor: try swc-loader time

* refactor: try switch minifiers and disable cache

* refactor: try switch minifiers and compress cache

* refactor: try switch minifiers and disable cache with swc

* refactor: change back to switch minifiers and disable cache with esbuild

* chore(deps): update caniuse-lite
2023-12-06 15:57:22 +00:00
Jonathan Ho 2138da531e chore(deps): update docusaurus to v3 (#3264)
* chore(deps): update docusaurus to v3

* chore(deps): update all deps in site
2023-12-05 02:09:58 +00:00
Fleny fb947f5672 feat(bot,rest,types): Add support for guild onboarding (#3260)
* Add types from api-docs-commit related to #2930

* Add rest from api-docs-commit related to #2930

* Add types from api-docs-commit related to #3072

* Add rest from api-docs-commit related to #3072

* Add types from api-docs-commit related to #3247

* Add transformers and helpers
2023-12-04 22:16:33 +00:00
Matthew HatcherandFleny e47242a9e0 feat: api docs catchup part 1 (#3257)
* feat: add voice message support

Closes #3009

* fix: pre-commit hook EACCESS npx issue

* feat: add channel to interaction

Closes #2979

* feat: add role flags

Closes #3070

* feat: adds creator monetization, message flagged, and member timeout audit log event

Closes #3075

* feat: add attachment flags

Closes #3071

* feat: add avatar decorations

Closes #3081

* feat: update description for guild and channel permissions

Closes #3106

* feat: rename Nitro sticker packs to just sticker packs

Closes #3107

* feat: add integration type to audit log entry

Closes #3108

* feat: make position optional on modify guild channel position

Closes #3086

* feat: add guild media channel type and associated flag

Closes #3093

* feat: update remark for activities.write scope

Closes  #3213

* feat: add support for super reactions

Closes #3113

* fix: attempt to fix benchmarks

* fix: benchmark attempt #2

---------

Co-authored-by: Fleny <Fleny113@outlook.com>
2023-12-04 21:54:39 +00:00
Fleny c56bb063cb Add missing image url function (#3259)
Exceptions:
- Achievement Icon and Store Page Asset - Game SDK
- Guild Member Banner - Doesn't have documented the banner asset hash
- User Avatar Decoration - Already included in #3257
2023-12-04 19:12:34 +00:00
Fleny 53d2bb6675 Fix resolution error for prettier (#3258) 2023-12-04 14:09:05 +00:00
Matthew Hatcher a62f06c3e8 chore(deps)!: upgrade all deps to new major versions (#3195)
* chore(deps): upgrade deps to latest in range

* feat: upgrade node engine minimum

Closes #3173

* fix: typing errors after dep upgrade

* chore(deps): upgrade benchmark typescript version

* feat: upgrade eslint, lint staged, and es version

* fix: lint-staged failures

* style: formatting

* chore(deps): major version upgrades

* chore(deps): upgrade yarn to 4.0

* fix: lock typescript to 5.2.2 until ts-node/mocha fix

bug: https://github.com/mochajs/mocha/issues/5031

* chore: remove old Deno file

Went through history and can't find any reference to this after Deno rewrite

* chore(deps): more dep updates

* feat: typedoc config upgrade

* fix: temporarily reset docusaurus to main

* chore(deps): minor range upgrades

* chore(deps)!: docusaurus major upgrade

* revert: go back to original 2.x docusaurus
2023-12-04 13:57:15 +00:00
Jonathan Ho e7d32e4be6 fix: cjs extensions for require (#3256) 2023-12-03 23:13:52 +00:00
Matthew Hatcher 8b3bc4bad7 feat: only require one guild delete event (#3194) 2023-12-02 11:30:25 +00:00
Matthew Hatcher c1f1ac1527 feat: add individuals to codeowners (#3201)
* feat: add DD team with DD core to codeowners

* fix: revert back to Skillz and Itoh directly for now

core team is missing write permissions

* feat: only allow Skillz and Itoh to make CODEOWNER changes

* feat: add H0, Fleny, and Matt to CODEOWNERS
2023-12-01 21:50:02 +00:00
Fleny b567c1317d Update stale action config (#3198)
Exclude issues that have the `api-docs-commit`  or the `[HELP WANTED] good first issue` label and run the action once a week
2023-12-01 20:57:37 +00:00
Jonathan Ho 1974834b20 feat: all cjs export (#3189)
* feat: all cjs export

* test: fix deno test

* style: fix error  Expected space or tab before '*/' in comment  spaced-comment

* fix: deno import map

* fix: sneak in a fix for yarn
2023-11-27 01:17:54 +00:00
Matthew Hatcher 887596125e fix: add no daemon to turbo commands (#3184) 2023-11-27 01:00:20 +00:00
rosefighter 7aed376d40 adding document use of external sounds permission (#3187) 2023-11-19 18:29:42 +00:00
Fleny c22a67b588 Explitly sort the code actions (#3183) 2023-11-19 18:24:57 +00:00
2c2ae61066 fix(website): beginner how to get token & add link to fork in contributing (#3164)
* fixing guides

* Deleting fmt and lint from contributing.md

* adding/linking VSCode as the recommended editor

* adding install node.js to contributing md.

---------

Co-authored-by: rosefighter <rosefighter@gmail.com>
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2023-11-19 18:24:22 +00:00
Awesome Stickz 0af7b2919f chore(website): update community feedback bots' guild counts and logo (#3182) 2023-11-19 14:32:50 +00:00
Matthew HatcherandITOH 1545f01da4 feat(.github): new issue templates (#3166)
* feat: new issue templates

* feat: add config yaml

* feat: adding better example code

* feat: add labels

* Update .github/ISSUE_TEMPLATE/bug_report.yml

* Update .github/ISSUE_TEMPLATE/bug_report.yml

---------

Co-authored-by: ITOH <to@itoh.at>
2023-10-30 21:36:16 +00:00
Matthew HatcherandSkillz4Killz a26c7c00a4 feat: add extensions and updating settings (#3167)
* feat: add extensions and updating settings

* fix(eslint-config): add prettier plugin and upgrade prettier

* feat: add eslint extension to the recommendations

* feat: major upgrade to VSCode settings

* feat: more settings changes

* feat: add background watcher task to always build the project

* fix: various background task issues

* style: eslint

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2023-10-30 07:40:31 -05:00
Matthew Hatcher a3e0c155ac fix(website): header terminology, copyright year, edit links, and blog post times (#3180)
* feat: matching terminology to homepage header

* fix: copyright year

* fix: edit url now links to DD repo

Closes #3177

* fix: adds ISO8601 date to blog posts

Fixes #3178
2023-10-29 14:46:39 +00:00
Matthew Hatcher dea4310e9f feat: add after install script (#3161)
* feat: upgrade yarn to latest 3.x

* feat: adding plugin and after install script

* fix: husky mode

* feat: adding post merge hook

* style: alphabetically organizing scripts

* fix: yarn lock
2023-10-29 14:37:09 +00:00
Skillz4Killz c460c88a84 Create stale.yml (#3160) 2023-10-28 21:22:54 +00:00
Skillz4Killz 38fb58dbb9 why is this dumb thing needed 2023-10-28 16:54:41 +00:00
Skillz4Killz ad67540e89 reroute in contributing md 2023-10-28 16:30:24 +00:00
Skillz4Killz 25ad834cac fix: contribution guide 2023-10-28 16:21:35 +00:00
Skillz4Killz 3e64b22874 update guild count values of bots using dd 2023-10-28 14:51:26 +00:00
Skillz4Killz 9df1252eb4 perma cactus logo 2023-10-28 14:45:07 +00:00
Skillz4Killz 0b93eed6bd Merge branch 'main' of https://github.com/discordeno/discordeno 2023-10-28 13:32:28 +00:00
Skillz4Killz ea9dc10589 craete bot prop 2023-10-28 13:28:35 +00:00
Skillz4Killz 59631f2fac format 2023-10-28 13:25:09 +00:00
Skillz4Killz ea9fca102a fix: add option to enable all desire props 2023-10-28 13:25:02 +00:00
Skillz4KillzandH01001000 914dc30396 test: bun test (#2798)
* test: bun test

* Update package.json

* ci: update bun version

* Update package.json

* Update package.json

* test

* ci: update bun

* chore(ci): update bun version

---------

Co-authored-by: H01001000 <heiheiho000@gmail.com>
2023-10-28 12:52:58 +00:00
dependabot[bot]andSkillz4Killz 1bd75d5914 build(deps): bump @babel/traverse from 7.21.4 to 7.23.2 in /website (#3156)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.4 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

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>
2023-10-28 12:52:08 +00:00
Fleny eb6dd978ed fix LeakyBucket to handle refills, queue process (#3159) 2023-10-28 12:51:06 +00:00
Jonathan Ho 8f2daff769 feat(ci): add cache for deno (#3158)
* feat(ci): add cache for deno

* refactor(ci): per package cache
2023-10-28 12:50:19 +00:00
Skillz4Killz eec2927285 fix: start a code philosophy section 2023-10-19 00:38:29 +00:00
Fleny c0615a2983 refactor(gateway)!: Remove guildMemberChunk shard event (#3151)
* Remove guildMemberChunk shard event

* use DiscordMemberWithUser for requestMembers
2023-10-18 22:21:46 +00:00
Fleny 895b482a02 Add option for the header of auth on rest proxy (#3153) 2023-10-18 22:21:22 +00:00
Fleny f98bb9bf75 fix(rest)!: Update OAuth2 to use the Basic authentication (#3150)
* update exchangeToken and revokeToken to use header

* update helpers file for the new signature
2023-10-15 04:32:04 +00:00
Fleny a8f9e5ec1b feat: allow for custom function to send the payload to shards (#3149)
* Initial work for sendPayload

* fix docs comment
2023-10-15 04:30:58 +00:00
Awesome Stickz 4a38f1a6e4 refactor: ignore handlers if events for an handler isnt provided (#3148)
* refactor: ignore handlers if events for an handler isnt provided

* style: use !event instead of event === undefined check

* fix: handleGuildDelete check
2023-10-15 04:27:55 +00:00
dependabot[bot] dc78446a59 build(deps): bump postcss from 8.4.21 to 8.4.31 in /website (#3147)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.21 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.21...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-15 04:26:40 +00:00
Jonathan Ho 6a55a6ff6f feat(cli): add cli (#3037)
* feat(bot): add cli

* refactor: move to discordeno package

* refactor(cli): blank state
2023-10-15 04:25:08 +00:00
Fleny 730ad9a3dc Add interactionDataOptions customizer (#3146) 2023-10-06 03:54:48 +00:00
Matthew Hatcher 9f5e3ab9ff feat(utils): add embed builder (#3145)
* feat: add embed builder

* feat: account for if a parsed color is NaN

* feat: add code doc

* feat: add example to JSDoc

* feat: add ability to override the current embed index

* style: remove extra whitespace

* feat: add validate method logic

* feat: finish remaining todo

* fix: account for length value in the setCurrentEmbed call

* feat: removing custom error and throw generic

* feat: add initial tests

* feat: add builder object with embeds function

* feat: changing to a method instead of object

* feat: add more tests

* style: lint
2023-10-06 03:54:11 +00:00
Fleny 832df1697a feat: add support for more customizers (#3139)
* feat: add support for customizers

* Fixing typescript build errors

* add customers for transformGatewayBot

and transformThreadMemberGuildCreate customizers and transformer
2023-10-01 17:03:08 +00:00