Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from discordjs:main #113

Open
wants to merge 464 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
464 commits
Select commit Hold shift + click to select a range
b79351b
fix(website): misc improvements (#9940)
Qjuh Nov 13, 2023
516be87
fix: properly display all versions in selector
iCrawl Nov 13, 2023
978a39f
chore: disable prefetch
iCrawl Nov 13, 2023
356cadb
chore: enable prefetch
iCrawl Nov 13, 2023
8d04cbc
chore: add loading page for suspense
iCrawl Nov 13, 2023
7c935dc
feat: docs for mixin methods, examples (#9960)
Qjuh Nov 13, 2023
bc8f833
feat: reintroduce outline navigation
iCrawl Nov 13, 2023
81a892e
fix: properly create index
iCrawl Nov 13, 2023
b150d4a
fix: provide full path for pre-gen
iCrawl Nov 13, 2023
d4ebc36
fix: dont cache nextjs cache
iCrawl Nov 13, 2023
9a81100
fix: cache nextjs cache output with turbo
iCrawl Nov 13, 2023
c4767ba
refactor: switch to vercel pg
iCrawl Nov 13, 2023
25d552b
fix: missing on conflict clause
iCrawl Nov 13, 2023
69c949a
fix: properly switch versions
iCrawl Nov 13, 2023
0063dae
fix: use correct pkg variable
iCrawl Nov 13, 2023
1d2d01e
ci: dont set the ci to failed on fail to upload docs
iCrawl Nov 13, 2023
ffc3ea5
fix: hardcode redirect for main lib for now
iCrawl Nov 13, 2023
01c63d2
refactor: switch to vercel blob for docs
iCrawl Nov 13, 2023
75fc7f2
ci: include secret
iCrawl Nov 13, 2023
8f43240
build: multi-config build and dep update
iCrawl Nov 14, 2023
0006391
fix: conflict resolution
iCrawl Nov 14, 2023
75137ba
refactor: don't prebuild on preview builds
iCrawl Nov 14, 2023
f9177be
fix: don't hardcode discordjs special case
iCrawl Nov 14, 2023
4b88306
fix: minify mainlib docs json (#9963)
Qjuh Nov 14, 2023
cab6014
fix: type mapping for docgen methods/props (#9969)
Qjuh Nov 14, 2023
0aa7dc1
fix: replace Object< with Record< (#9970)
Qjuh Nov 15, 2023
6df233d
feat: present x-ratelimit-scope for 429s hit (#9973)
vladfrangu Nov 16, 2023
9868772
docs: fix links in @deprecated tags (#9976)
Qjuh Nov 17, 2023
492f86a
refactor: minify api.json by shortening keys (#9971)
Qjuh Nov 17, 2023
55be1c9
ci: properly extract name from minified docs files
iCrawl Nov 17, 2023
5da5be2
fix(route): Conditionally prefix package names (#9975)
Jiralite Nov 17, 2023
ae58053
chore: release @discordjs/rest@2.2.0 & @discordjs/core@1.1.1 (#9978)
vladfrangu Nov 18, 2023
5a71570
fix(website): search index generation (#9980)
Qjuh Nov 18, 2023
802ec63
fix(website): cross package deprecated links (#9981)
Qjuh Nov 18, 2023
ce0be39
fix(Bun): Fix typo for Bun template (#9987)
BlankParticle Nov 18, 2023
3d1c884
refactor(website): remove unneccessary addPackageToModel function (#9…
Qjuh Nov 21, 2023
e9ff991
docs: Remove hyphen after `@returns` (#9989)
Jiralite Nov 21, 2023
57c414b
fix(website): discord-api-types links, URL links and some minor doc i…
Qjuh Nov 22, 2023
9fdbf0a
fix(website): doc links to other packages (#9994)
Qjuh Nov 22, 2023
bc2ecef
fix: cross package links again (#9995)
Qjuh Nov 24, 2023
d0aa8d2
ci: fix deploy-website
iCrawl Nov 24, 2023
fe90487
ci: fix documentation manual dispatch run on tag (#10007)
Qjuh Nov 30, 2023
cbbbfb9
fix(website): serialize methods with overload index (#10005)
brynpttrsn Nov 30, 2023
30f6a5f
types(InteractionWebhook): Add `client` (#9997)
Jiralite Nov 30, 2023
e412a22
fix: export "ESM" types when discord.js is imported in ESM land (#10009)
vladfrangu Nov 30, 2023
179af38
refactor(ThreadMemberManager): #remove accepts UserResolvable (#10000)
Renegade334 Dec 1, 2023
1ec2901
feat(website): type parameters on methods and overloads (#9998)
Qjuh Dec 1, 2023
b229240
ci: documentation.yml refactor branch/tag check to one place only (#1…
Qjuh Dec 1, 2023
a44ada6
feat(website): show union members of type aliases (#10001)
Qjuh Dec 1, 2023
17a6f5d
types: omit unnecessary methods from <ContextMenuCommandInteraction>.…
Qjuh Dec 1, 2023
b992019
docs(PermissionOverwriteManager): `PermissionsFlagsBit` typo (#10004)
sdanialraza Dec 1, 2023
54453b0
chore(uploadDocumentation): Expose full error (#10012)
Jiralite Dec 2, 2023
941642a
fix: replace internal calls to Emoji#url (#10025)
monbrey Dec 3, 2023
62e31cb
fix(InteractionResponses): check if ephemeral message flag is used (#…
sdanialraza Dec 4, 2023
2b8ac35
refactor: Document relevant types as `@internal` (#9974)
Jiralite Dec 5, 2023
e245a39
docs(resolvePartialEmoji): Add `@internal` to all overloads (#10033)
Jiralite Dec 5, 2023
8ace6fa
docs(CategoryCreateChannelOptions): Update reference (#10031)
Jiralite Dec 5, 2023
319ef9a
feat: use globally available WebSocket client in runtimes that have i…
vladfrangu Dec 10, 2023
651ffc2
feat(website): more builtin docs links (#10030)
Qjuh Dec 10, 2023
f2138bb
ci: always generate docs with latest main ae (#10037)
Qjuh Dec 13, 2023
adfd9cd
refactor: use interfaces for AsyncEventEmitter event maps (#10044)
Qjuh Dec 14, 2023
18c2dcc
feat: Utilise create-discord-bot (#10013)
Jiralite Dec 14, 2023
1acc9ab
types: change Awaitable<void> to void (#10017)
advaith1 Dec 17, 2023
461948c
fix: deprecate `underscore` in favor of `underline` (#10054)
sdanialraza Dec 17, 2023
e43f96c
ci: always use the workflows from main branch (#10048)
Qjuh Dec 18, 2023
6cd6e3b
chore: use string values in vs code settings (#10028)
sdanialraza Dec 18, 2023
a000df6
chore: use double quotes for globs in scripts (#10032)
almeidx Dec 18, 2023
db56324
types(DirectoryChannel): Ensure directory channels cannot contain use…
Jiralite Dec 18, 2023
171cb18
chore: deps
iCrawl Dec 19, 2023
d869d9b
style: fix up lint
iCrawl Dec 19, 2023
7b5c31b
refactor: fetch versions on the client
iCrawl Dec 20, 2023
891a67a
fix: use proper api endpoint
iCrawl Dec 20, 2023
1c3211a
fix: remove ppr from website for now
iCrawl Dec 21, 2023
520d6f6
fix: nextjs unreliable params in route
iCrawl Dec 21, 2023
c4fcee3
feat: premium application subscriptions (#9907)
almeidx Dec 24, 2023
0f1e02b
fix(escape*): dont escape urls (#9958)
almeidx Dec 24, 2023
4824ac1
docs(ThreadMember): fix docblock async return type (#10058)
Renegade334 Dec 28, 2023
ce84d3e
fix(Gateway): Export interface (#10060)
sdanialraza Dec 30, 2023
136c66c
build: Bump versions (#9986)
Jiralite Dec 30, 2023
7b8e0de
refactor(formatters): Add support for object and name param in `forma…
Jan 13, 2024
7e12bee
docs: remove utf-8-validate (#10059)
Zamiell Jan 13, 2024
33674be
feat(Webhook): allow setting `appliedTags` on `send()` (#10027)
almeidx Jan 15, 2024
1431c18
fix(website): search hanging on complex types (#10095)
Qjuh Jan 21, 2024
f48787e
docs(BaseInteraction): correct return type of `member` (#10096)
sdanialraza Jan 22, 2024
fed7f34
Skip sweeping if the guild is not available (#10070)
JMTK Jan 22, 2024
a0c83a2
refactor: make builders types great again (#10026)
Qjuh Jan 22, 2024
bfc7bb5
docs: convert comment into private remark (#10097)
almeidx Jan 22, 2024
fc1f8ae
refactor(Messages): Improve `ColorConvert` error (#10108)
Jiralite Jan 30, 2024
278396e
feat(REST): dynamic rate limit offsets (#10099)
didinele Jan 30, 2024
b16647e
fix(BaseClient): Fall back to `userAgentAppendix` (#10113)
Jiralite Feb 2, 2024
d4472f8
refactor(resolveColor): Prioritise number type check (#10116)
Jiralite Feb 3, 2024
f691658
fix(website): cmdk duplicate values (#10100)
brynpttrsn Feb 3, 2024
42bc5d2
fix: invert deletable message types list (#10093)
almeidx Feb 3, 2024
9f8d7fe
build: Update husky to v9 (#10102)
vinayakkulkarni Feb 3, 2024
56943a7
fix(website): resolve linkTags in meta description (#10088)
brynpttrsn Feb 3, 2024
bc9b487
fix(website): always link in TypeAlias (#10105)
Qjuh Feb 4, 2024
ef83bc3
fix(api-extractor): link to enum types on inherited properties (#10085)
Qjuh Feb 4, 2024
bff1cae
fix(website): move function header into switcher (#10077)
brynpttrsn Feb 4, 2024
f401cff
fix: Correct testing local changes in `CONTRIBUTING.md` (#10066)
suneettipirneni Feb 4, 2024
c878b65
refactor(WebSocketShard): payload sending (#10098)
didinele Feb 5, 2024
3755e66
fix(resolveColor): Address case for numbers (#10115)
Jiralite Feb 5, 2024
ae57d7f
chore: deps
iCrawl Feb 6, 2024
597340f
docs: split docs.api.json into multiple json files
iCrawl Feb 6, 2024
36db77f
fix(docs): use ts types for inherited properties instead of jsdoc (#1…
Qjuh Feb 10, 2024
ce6b2b7
fix(docs): remove spaces in type parameter brackets (#10127)
Qjuh Feb 11, 2024
54106db
types: replace Mixins with interface merging (#10094)
Qjuh Feb 11, 2024
f48cb2a
refactor: remove usage of mixin on error classes (#10128)
almeidx Feb 13, 2024
543d617
feat: add support for `using` keyword on discord.js `Client` and `Web…
suneettipirneni Feb 13, 2024
e9d6547
docs(ApplicationCommandPermissionsManager): remove incorrect comment …
sdanialraza Feb 17, 2024
992aa67
feat(MessageCreateOptions): add `enforceNonce` (#10129)
sdanialraza Feb 17, 2024
c89c343
types(InteractionReplyOptions): allow setting `MessageFlags.SuppressN…
almeidx Feb 20, 2024
906ade9
refactor(oauth2): remove unnecessary dependency on 'node:url' (#10141)
mattrubin Feb 21, 2024
1d56544
refactor: improve structure validation with zod (#10103)
sdanialraza Feb 21, 2024
8c2abab
feat(guild): Add `with_counts` to getting guilds (#10143)
Jiralite Feb 21, 2024
bcd4c2c
types: use readonly array / collection types for user input (#10045)
almeidx Feb 23, 2024
f67da74
docs(ActionRow): fix deprecated message (#10130)
sdanialraza Feb 23, 2024
c8bbdb7
fix(ReadonlyCollection): omit `clear` method (#10148)
almeidx Feb 23, 2024
bfbd62e
types(Builder.from): fix wrong types (#10071)
Syjalo Feb 23, 2024
efa3cac
types: Update accessibility modifiers on constructors (#10147)
Jiralite Feb 23, 2024
0f9017e
fix(Faces): Escape backslash in `Shrug` (#10156)
RedGuy12 Feb 27, 2024
18cce83
refactor: docs (#10126)
iCrawl Feb 29, 2024
71bba54
refactor: docs ordering
iCrawl Mar 2, 2024
59f4db3
ci: update split upload
iCrawl Mar 2, 2024
d6bf0fe
ci: logging for ci
iCrawl Mar 2, 2024
e401841
ci: more logging
iCrawl Mar 2, 2024
34936a0
chore: never cache doc generation
iCrawl Mar 2, 2024
3fd36f7
ci: remove debug logging
iCrawl Mar 2, 2024
2848591
fix: switch out syntax highlighter themes
iCrawl Mar 2, 2024
79fbda3
feat: local and preview detection
iCrawl Mar 3, 2024
9fa115d
fix: can't use node internals on edge
iCrawl Mar 3, 2024
0efd1be
fix: anchor link for events
iCrawl Mar 3, 2024
8de8371
chore(gitattributes): mark `pnpm-lock.yaml` as generated (#10159)
SuperchupuDev Mar 3, 2024
a1010c6
types: fix duplicate props in merged interfaces (#10160)
Qjuh Mar 4, 2024
a66fc65
ci: enable npm provenance (#10164)
SuperchupuDev Mar 4, 2024
5f2095b
ci: use correct github tag in docs source links (#10163)
Qjuh Mar 9, 2024
0d4c26b
chore: deps
iCrawl Mar 11, 2024
93c174b
chore: fix test type import
iCrawl Mar 11, 2024
6cc5fa2
fix(types): Export `ReadonlyCollection` (#10184)
RedGuy12 Mar 20, 2024
f500ad6
refactor(ThreadChannel): use single thread member endpoint (#10136)
sdanialraza Mar 24, 2024
ddc927f
fix(Embed): address `equals` method issue (#10152)
sdanialraza Mar 24, 2024
a1a3a95
feat: allow RestOrArray for command option builders (#10175)
LeCarbonator Mar 24, 2024
654f1a4
chore: remove ws dependency (#10180)
Qjuh Mar 31, 2024
980a2b7
types: generic for Webhook type (#10188)
Qjuh Mar 31, 2024
ba6476d
build: bump discord-api-types to 0.37.78 (#10201)
almeidx Apr 1, 2024
b6bdd57
feat(GuildBanManager): Add `bulkCreate()` method (#10182)
Apr 2, 2024
26af386
docs: remove duplicated words (#10178)
avoidaway Apr 4, 2024
f1f2683
docs: remove unused `Locale` typedef (#10191)
N1ckPro Apr 4, 2024
bfc3b10
feat(GuildsAPI): bulk ban users (#10202)
almeidx Apr 6, 2024
464d627
ci: Ensure reviews in progress label do not merge (#10208)
Jiralite Apr 7, 2024
de14c92
feat(ClientUser): Add support for setting bot banner (#10176)
MinerPL Apr 9, 2024
7dc5bdf
ci: fix call to generateSplitDocumentation if run on tag (#10209)
Qjuh Apr 10, 2024
afb97fb
fix(website): use correct version for cross-package links (#10193)
Qjuh Apr 11, 2024
7baa9e4
feat(website): add type field to search index to sort by (#10212)
Qjuh Apr 14, 2024
1c5de21
feat(api-extractor): support `export * as ___` syntax (#10173)
Qjuh Apr 16, 2024
c6721d9
fix(api-extractor): link class in docs if interface merging happened …
Qjuh Apr 16, 2024
6759f5b
chore: deps
iCrawl Apr 16, 2024
4ad2858
perf(Presence): prefer boolean client status comparison before activi…
JMTK Apr 20, 2024
dae897b
ci: optimize tests (#10231)
Syjalo Apr 27, 2024
b79b706
fix(api-extractor-model): resolve doc reference for classes with merg…
Qjuh Apr 27, 2024
dc8f149
test: skip flaky rest test (#10234)
almeidx Apr 27, 2024
c2e68ce
build: bump discord-api-types to 0.37.82 (#10226)
almeidx Apr 27, 2024
14f9ff7
chore: Add funding field to package.json (#10230)
Syjalo Apr 27, 2024
798f28c
fix(actions): always emit message create for own messages (#10211)
didinele Apr 27, 2024
7ea3638
fix: don't mutate user provided array (#10014)
imranbarbhuiya Apr 30, 2024
c7adce3
build: bump discord-api-types to 0.37.83 (#10238)
almeidx Apr 30, 2024
a1aeaeb
feat: polls (#10185)
almeidx Apr 30, 2024
9978870
feat: consumable entitlements (#10235)
almeidx May 1, 2024
6cf094c
feat(MessageManager): poll methods (#10239)
almeidx May 2, 2024
728164e
feat(ws): support for custom worker messaging (#10241)
didinele May 3, 2024
96169ad
docs: Remove duplicate word in comment (#10244)
May 4, 2024
cb961f5
types: add `Poll` to `Message` (#10245)
JMTK May 4, 2024
a6b9f1b
fix(Message): not crosspostable if has a poll (#10246)
almeidx May 4, 2024
5d61197
chore(brokers): release @discordjs/brokers@0.3.0
vladfrangu May 4, 2024
23ed447
chore(collection): release @discordjs/collection@2.1.0
vladfrangu May 4, 2024
35f2b3a
chore(create-discord-bot): release create-discord-bot@0.3.0
vladfrangu May 4, 2024
92501ae
chore(formatters): release @discordjs/formatters@0.4.0
vladfrangu May 4, 2024
6239f24
chore(util): release @discordjs/util@1.1.0
vladfrangu May 4, 2024
16df4f3
chore(voice): release @discordjs/voice@0.17.0
vladfrangu May 4, 2024
7dc51aa
chore(builders): release @discordjs/builders@1.8.0
vladfrangu May 4, 2024
7b913b6
chore(rest): release @discordjs/rest@2.3.0
vladfrangu May 4, 2024
6f98688
chore(proxy): release @discordjs/proxy@2.1.0
vladfrangu May 4, 2024
e9d560f
chore(ws): release @discordjs/ws@1.1.0
vladfrangu May 4, 2024
b66c067
chore(core): release @discordjs/core@1.2.0
vladfrangu May 4, 2024
a840861
chore(discord.js): release discord.js@14.15.0
vladfrangu May 4, 2024
840dc56
chore: update templates for create-discord-bot
vladfrangu May 4, 2024
903a7d3
chore: fix duplicated voice changelog
vladfrangu May 4, 2024
1d27b3b
chore: fix duplicated discord.js changelog
vladfrangu May 4, 2024
d92695c
chore: brother why
vladfrangu May 4, 2024
c91d03c
ci: fix documentation workflow (#10248)
almeidx May 4, 2024
0474a43
fix(MessageManager): poll methods don't need a channel id (#10249)
didinele May 4, 2024
f2794e1
chore(discord.js): release discord.js@14.15.1 (#10250)
vladfrangu May 4, 2024
30d79e8
fix(PollAnswer): fetchVoters route changed to MessageManager (#10251)
XCraftTM May 4, 2024
07c1210
fix: slashcommand builder type split (#10253)
Qjuh May 5, 2024
12deea8
chore(builders): release @discordjs/builders@1.8.1
vladfrangu May 5, 2024
c05244a
chore(discord.js): release discord.js@14.15.2
vladfrangu May 5, 2024
776880d
chore: fix changelogs
vladfrangu May 5, 2024
e673b3c
fix: add inherited properties to search index (#10257)
Qjuh May 6, 2024
5498e18
fix(website): links to builtin documentation not showing in summary (…
Qjuh May 10, 2024
7816ec2
fix(actions): Handle missing poll object (#10266)
Jiralite May 11, 2024
20258f9
refactor: native zlib support (#10243)
didinele May 11, 2024
393ded4
refactor(brokers): make option props more correct (#10242)
didinele May 11, 2024
914cc4b
fix(docs): some link tags didn't resolve correctly (#10269)
Qjuh May 13, 2024
c78af13
ci: Update versions of actions (#10270)
Jiralite May 13, 2024
3640fe7
ci: Fix labels action (#10272)
Jiralite May 13, 2024
616208b
fix: deno compat (#10271)
didinele May 13, 2024
c2432d5
types: Add `defaultValues` to respective select menu components data …
fronkdev May 13, 2024
29fd89f
fix(SlashCommandBuilder): add missing shared properties (#10255)
TAEMBO May 15, 2024
35207b0
types: Forum starter messages do not support polls (#10276)
RedGuy12 May 15, 2024
92c1a51
fix(Action): Ensure all properties on `getChannel()` are passed (#10278)
Jiralite May 16, 2024
555961b
refactor(GuildChannelManager): improve addFollower errors (#10277)
Renegade334 May 17, 2024
bb884fc
chore: react compiler
iCrawl May 19, 2024
b36ec98
feat: add `reason` to `followAnnouncements` method (#10275)
sdanialraza May 19, 2024
f9ba11e
chore: update nextjs
iCrawl May 23, 2024
f5dd687
chore: /ui react type dep
iCrawl May 23, 2024
7f467ed
feat: error handling
iCrawl May 23, 2024
a35d760
fix: prerender bailout
iCrawl May 24, 2024
27d0659
fix(ThreadChannel): invalid owner fetch option (#10292)
ducktrshessami May 24, 2024
638b896
fix: Throw error on no message id for `Message#fetchReference()` (#10…
Jiralite May 24, 2024
a468ae8
fix(Message): properly compare `attachments` and `embeds` (#10282)
sdanialraza May 24, 2024
d22b55f
fix: restore 404 page
iCrawl May 26, 2024
29a50bb
docs(MappedComponentTypes): fix "inpiut" typo (#10306)
CodeGoat-dev May 30, 2024
38a37b5
refactor(brokers): re-design API to make groups a constructor option …
nizans Jun 2, 2024
c1e6890
docs(TextInputBuilder): correct constructor documentation (#10308)
CodeGoat-dev Jun 2, 2024
9b07036
fix(OAuth2API): enable token exchange without token (#10312)
Gravitonic Jun 2, 2024
aae2faf
docs(SelectMenuBuilder): correct grammatical errors (#10309)
CodeGoat-dev Jun 2, 2024
4ea73bb
revert: refactor: native zlib support (#10314)
Jiralite Jun 2, 2024
311aaf2
chore(release): @discordjs/builders 1.8.2, @discordjs/ws 1.1.1, and d…
Jiralite Jun 2, 2024
3b5c600
feat(User): add `avatarDecorationData` (#9888)
almeidx Jun 2, 2024
17d4c78
feat(Invite): add `type` (#10280)
sdanialraza Jun 2, 2024
94cc02a
refactor: native zlib support (#10316)
sdanialraza Jun 2, 2024
346d1be
build: Bump dependencies (#10322)
Jiralite Jun 5, 2024
4f174c6
ci: fix coverage upload (#10331)
ckohen Jun 7, 2024
885defb
fix: Update config file to address labeller file changes (#10332)
Jiralite Jun 7, 2024
7f60a8f
docs(stageInstances): Correct reference for stage instance creation (…
amirfarzamnia Jun 7, 2024
599ad3e
fix: Correct base path for GIF stickers (#10330)
Jiralite Jun 7, 2024
757bed0
docs: Update rule trigger types (#9708)
Jiralite Jun 7, 2024
3cdddbe
ci: Check pull request titles for the commit convention format (#10334)
Jiralite Jun 8, 2024
6803121
feat(Message): add `call` (#10283)
sdanialraza Jun 8, 2024
02d1964
ci(pr-triage): Split job up (#10341)
Jiralite Jun 9, 2024
c5d40d3
fix(website): remove merged interface from sitemap (#10343)
Qjuh Jun 9, 2024
38c699b
fix: Consistent debug log spacing (#10349)
Jiralite Jun 13, 2024
e723230
fix(website): link tags with explicit URL showed undefined (#10350)
Qjuh Jun 16, 2024
b0e5712
fix(website): link tags to events named same as methods (#10351)
Qjuh Jun 17, 2024
9c8784f
fix: package gen script (#10352)
didinele Jun 18, 2024
a76b1b6
ci: Reference title via environment variable (#10342)
AdnaneKhan Jun 18, 2024
1502199
build: Bump discord-api-types to 0.37.90 (#10354)
Jiralite Jun 18, 2024
ba0cb66
chore: Remove "typings", "wip", and "workflow" scope (#10340)
Jiralite Jun 18, 2024
b8397b2
types(ApplicationCommandManager): `Snowflake` fetch (#10366)
Jiralite Jun 27, 2024
9c76bbe
feat: add user-installable apps support (#10348)
TAEMBO Jun 27, 2024
ab8bf0f
fix(GuildMemberManager): Fix data type check for `add()` method (#10338)
Jiralite Jun 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"$schema": "https://json.schemastore.org/commitlintrc.json",
"extends": ["@commitlint/config-angular"],
"rules": {
"type-enum": [
2,
"always",
["chore", "build", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test", "types", "typings"]
["chore", "build", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test", "types"]
],
"scope-case": [0]
}
Expand Down
11 changes: 0 additions & 11 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto eol=lf
pnpm-lock.yaml linguist-generated=true text=auto eol=lf
2 changes: 1 addition & 1 deletion .github/.kodiak.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version = 1

[merge]
require_automerge_label = false
blocking_labels = ['blocked']
blocking_labels = ['blocked', 'in review']
method = 'squash'

[merge.message]
Expand Down
2 changes: 1 addition & 1 deletion .github/COMMIT_CONVENTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Messages must be matched by the following regex:

```js
/^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|types|wip)(\(.+\))?: .{1,72}/;
/^(revert: )?(feat|fix|docs|style|refactor|perf|test|build|ci|chore|types)(\(.+\))?: .{1,72}/;
```

#### Examples
Expand Down
27 changes: 14 additions & 13 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,39 @@ is a great boon to your development process.
To get ready to work on the codebase, please do the following:

1. Fork & clone the repository, and make sure you're on the **main** branch
2. Run `yarn --immutable` ([install](https://yarnpkg.com/getting-started/install))
3. Run `yarn build` to build local packages
2. Run `pnpm install --frozen-lockfile` ([install](https://pnpm.io/installation))
3. Run `pnpm run build` to build local packages
4. Code your heart out!
5. Run `yarn test` to run ESLint and ensure any JSDoc changes are valid
5. Run `pnpm run test` to run ESLint and ensure any JSDoc changes are valid
6. [Submit a pull request](https://github.com/discordjs/discord.js/compare) (Make sure you follow the [conventional commit format](https://github.com/discordjs/discord.js/blob/main/.github/COMMIT_CONVENTION.md))

## Testing changes locally

If you want to test changes you've made locally, you can do so by using `yarn link`. This will create a symlink to your local copy of the discord.js libraries.
If you want to test changes you've made locally, you can do so by using `pnpm link <package-you-want-to-link-to-your-current-package>`. This will create a symlink to your local copy of the discord.js libraries.

1. Create a new directory `mkdir discordjs-test` and move into it `cd discordjs-test`
2. Initialize a new yarn 3 project `yarn init -2`
3. Disable pnp `yarn config set nodeLinker node-modules`
4. Now link the local discord.js project you cloned earlier `yarn link -A {PATH_TO_DISCORDJS_REPO}`
5. Install packages you'd like to test locally `yarn add discord.js@latest`, `yarn add @discordjs/rest@latest`, etc. **Note: Make sure you use `latest` tag or else yarn will try to install the remote package from npm**
6. Import the package in your source code and test them out!
2. Initialize a new pnpm project `pnpm init`
3. Now link the discord.js package from the directory you cloned earlier `pnpm link {PATH_TO_DISCORDJS_REPO}/packages/<package>`. (e.g. `pnpm link ~/discord.js/packages/rest`)
4. Import the package in your source code and test them out!

### Working with TypeScript packages

When testing local changes, you may notice you need to manually recompile TypeScript projects on every change in order to get the latest code changes to test locally.

To avoid this you can use the `--watch` parameter in the package build script to automatically recompile the project when changes are detected.

For example, to automatically recompile the `@discordjs/rest` project when changes are detected, run `yarn turbo run build --filter=@discordjs/rest -- --watch` in the root folder of where you cloned the discord.js repo.
For example, to automatically recompile the `@discordjs/rest` project when changes are detected, run `pnpm turbo run build --filter='@discordjs/rest' -- --watch` in the root folder of where you cloned the discord.js repo.

## Adding new packages

If you'd like to create another package under the `@discordjs` organization run the following command:

```sh
yarn create-package <package-name> [package-description]
pnpm run create-package <package-name> [package-description]
```

This will create new package directory under `packages/` with the required configuration files. You can
begin to make changes within the `src/` directory. It may also be required to update the CODEOWNERS file.
This will create new package directory under `packages/` with the required configuration files. You may begin
to make changes within the `src/` directory. You may also need to:

- Update workflows that utilize packages
- Update the CODEOWNERS file
8 changes: 5 additions & 3 deletions .github/ISSUE_TEMPLATE/01-package_bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ body:
label: Versions
description: List necessary versions here. This includes your package version, runtime version, operating system etc.
placeholder: |
- discord.js 14.9.0 (`npm ls discord.js` or another package)
- Node.js 16.9.0 (`node --version`)
- TypeScript 5.0.4 (`npm ls typescript` if you use it)
- discord.js 14.12.1 (`npm ls discord.js` or another package)
- Node.js 16.11.0 (`node --version`)
- TypeScript 5.1.6 (`npm ls typescript` if you use it)
- macOS Ventura 13.3.1
validations:
required: true
Expand Down Expand Up @@ -123,6 +123,8 @@ body:
- GuildScheduledEvents
- AutoModerationConfiguration
- AutoModerationExecution
- GuildMessagePolls
- DirectMessagePolls
multiple: true
validations:
required: true
Expand Down
118 changes: 82 additions & 36 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,100 @@
apps:guide:
- apps/guide/*
- apps/guide/**/*
- changed-files:
- any-glob-to-any-file:
- apps/guide/*
- apps/guide/**/*
apps:website:
- apps/website/*
- apps/website/**/*
- changed-files:
- any-glob-to-any-file:
- apps/website/*
- apps/website/**/*
packages:api-extractor:
- changed-files:
- any-glob-to-any-file:
- packages/api-extractor/*
- packages/api-extractor/**/*
packages:api-extractor-model:
- changed-files:
- any-glob-to-any-file:
- packages/api-extractor-model/*
- packages/api-extractor-model/**/*
packages:brokers:
- packages/brokers/*
- packages/brokers/**/*
- changed-files:
- any-glob-to-any-file:
- packages/brokers/*
- packages/brokers/**/*
packages:builders:
- packages/builders/*
- packages/builders/**/*
- changed-files:
- any-glob-to-any-file:
- packages/builders/*
- packages/builders/**/*
packages:collection:
- packages/collection/*
- packages/collection/**/*
- changed-files:
- any-glob-to-any-file:
- packages/collection/*
- packages/collection/**/*
packages:core:
- packages/core/*
- packages/core/**/*
- changed-files:
- any-glob-to-any-file:
- packages/core/*
- packages/core/**/*
packages:create-discord-bot:
- packages/create-discord-bot/*
- packages/create-discord-bot/**/*
- changed-files:
- any-glob-to-any-file:
- packages/create-discord-bot/*
- packages/create-discord-bot/**/*
packages:discord.js:
- packages/discord.js/*
- packages/discord.js/**/*
- changed-files:
- any-glob-to-any-file:
- packages/discord.js/*
- packages/discord.js/**/*
packages:docgen:
- packages/docgen/*
- packages/docgen/**/*
- changed-files:
- any-glob-to-any-file:
- packages/docgen/*
- packages/docgen/**/*
packages:formatters:
- packages/formatters/*
- packages/formatters/**/*
- changed-files:
- any-glob-to-any-file:
- packages/formatters/*
- packages/formatters/**/*
packages:next:
- packages/next/*
- packages/next/**/*
- changed-files:
- any-glob-to-any-file:
- packages/next/*
- packages/next/**/*
packages:proxy:
- packages/proxy/*
- packages/proxy/**/*
- changed-files:
- any-glob-to-any-file:
- packages/proxy/*
- packages/proxy/**/*
packages:proxy-container:
- packages/proxy-container/*
- packages/proxy-container/**/*
- changed-files:
- any-glob-to-any-file:
- packages/proxy-container/*
- packages/proxy-container/**/*
packages:rest:
- packages/rest/*
- packages/rest/**/*
- changed-files:
- any-glob-to-any-file:
- packages/rest/*
- packages/rest/**/*
packages:ui:
- packages/ui/*
- packages/ui/**/*
- changed-files:
- any-glob-to-any-file:
- packages/ui/*
- packages/ui/**/*
packages:util:
- packages/util/*
- packages/util/**/*
- changed-files:
- any-glob-to-any-file:
- packages/util/*
- packages/util/**/*
packages:voice:
- packages/voice/*
- packages/voice/**/*
- changed-files:
- any-glob-to-any-file:
- packages/voice/*
- packages/voice/**/*
packages:ws:
- packages/ws/*
- packages/ws/**/*
- changed-files:
- any-glob-to-any-file:
- packages/ws/*
- packages/ws/**/*
12 changes: 8 additions & 4 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- name: api changes
color: 5663e9
color: '5663e9'
- name: api support
color: 5663e9
color: '5663e9'
- name: apps:guide
color: fbca04
- name: apps:website
Expand All @@ -23,7 +23,7 @@
- name: dependencies
color: 276bd1
- name: discord
color: 5663e9
color: '5663e9'
- name: discussion
color: b6b1f9
- name: documentation
Expand All @@ -41,7 +41,7 @@
- name: has PR
color: 4b1f8e
- name: help wanted
color: 008672
color: '008672'
- name: in progress
color: ffccd7
- name: in review
Expand All @@ -52,6 +52,10 @@
color: e4e669
- name: need repro
color: c66037
- name: packages:api-extractor
color: fbca04
- name: packages:api-extractor-model
color: fbca04
- name: packages:brokers
color: fbca04
- name: packages:builders
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/cleanup-cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
name: Cleanup caches
on:
pull_request:
types:
- closed
workflow_dispatch:
jobs:
cleanup:
name: Cleanup caches
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Cleanup caches
run: |
gh extension install actions/gh-actions-cache

REPO=${{ github.repository }}
BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge"

echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 )

## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy website
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
deploy-website:
name: Deploy website
runs-on: ubuntu-latest
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
if: github.repository_owner == 'discordjs'
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Node.js v20
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
uses: ./packages/actions/src/pnpmCache

- name: Pull vercel production environment
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Build website artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy website artifacts to vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
Loading
Loading