Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
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)
cobaltt7 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
e20d86c
chore(changelogs): reset changelogs to simplify merge
ErwanGit Jun 27, 2024
0efde82
Merge branch 'main' of github.com:discordjs/discord.js into discordjs…
ErwanGit Jun 28, 2024
2dc9572
Merge branch 'discordjs-main' into v14.15.x
ErwanGit Jun 28, 2024
0978ee0
fix: fix pnpm lock
ErwanGit Jun 28, 2024
9cecb4e
fix(polls): fix package import
ErwanGit Jun 28, 2024
cfce2d4
fix(guide): fix lint
ErwanGit Jun 28, 2024
833635d
fix(rest): fix lint
ErwanGit Jun 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .commitlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"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
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
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/01-package_bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ body:
- GuildScheduledEvents
- AutoModerationConfiguration
- AutoModerationExecution
- GuildMessagePolls
- DirectMessagePolls
multiple: true
validations:
required: true
Expand Down
120 changes: 80 additions & 40 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,60 +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:
- packages/api-extractor/*
- packages/api-extractor/**/*
- changed-files:
- any-glob-to-any-file:
- packages/api-extractor/*
- packages/api-extractor/**/*
packages:api-extractor-model:
- packages/api-extractor-model/*
- 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/**/*
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cleanup caches
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
if: github.repository_owner == 'discordjs'
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: Install dependencies
uses: ./packages/actions/src/pnpmCache
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deprecate-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
if: github.repository_owner == 'discordjs'
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: Install dependencies
uses: ./packages/actions/src/pnpmCache
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ jobs:
if: github.repository_owner == 'discordjs'
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || '' }}

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

- name: Install dependencies
uses: ./packages/actions/src/pnpmCache
Expand All @@ -53,7 +53,7 @@ jobs:

- name: Checkout main repository
if: ${{ inputs.ref && inputs.ref != 'main' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'main'

Expand All @@ -75,7 +75,7 @@ jobs:

- name: Apply tag to api-extractor config
if: ${{ env.REF_TYPE == 'tag' && !inputs.ref }}
run: sed -i 's!https://github.com/discordjs/discord.js/tree/main!https://github.com/discordjs/discord.js/tree/${{ steps.extract-tag.outputs.semver }}!' "packages/${{ steps.extract-tag.outputs.package}}/"
run: sed -i 's!https://github.com/discordjs/discord.js/tree/main!https://github.com/discordjs/discord.js/tree/${{ steps.extract-tag.outputs.semver }}!' "packages/${{ steps.extract-tag.outputs.package}}/api-extractor.json"

- name: Build docs
run: pnpm run docs
Expand All @@ -93,7 +93,7 @@ jobs:
done

- name: Checkout docs repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'discordjs/docs'
token: ${{ secrets.DJS_DOCS }}
Expand Down Expand Up @@ -211,12 +211,12 @@ jobs:
if: github.repository_owner == 'discordjs'
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: Install dependencies
uses: ./packages/actions/src/pnpmCache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
issue-triage:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v3.2
- uses: github/issue-labeler@v3.4
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
configuration-path: .github/issue-labeler.yml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/label-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
if: github.repository_owner == 'discordjs'
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Label sync
uses: crazy-max/ghaction-github-labeler@v4
uses: crazy-max/ghaction-github-labeler@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
permissions:
issues: write
steps:
- uses: dessant/lock-threads@v4
- uses: dessant/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-inactive-days: 365
Expand Down
30 changes: 26 additions & 4 deletions .github/workflows/pr-triage.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,35 @@
name: 'PR Triage'
on:
pull_request_target:
types:
- opened
- edited
- reopened
- synchronize
jobs:
pr-triage:
name: PR Triage
label:
name: Label
if: github.event.action != 'edited'
runs-on: ubuntu-latest
steps:
- name: Automatically label PR
uses: actions/labeler@v4
- name: Label pull request
uses: actions/labeler@v5
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
sync-labels: true
validate-title:
name: Validate title
if: github.event.action != 'synchronize'
runs-on: ubuntu-latest
steps:
- name: Validate pull request title
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
REGEX="^(revert: )?(feat|fix|docs|style|refactor|perf|test|build|ci|chore|types)(\\(.+\\))?: .{1,72}$"

echo "Title: \"$TITLE\""

if [[ ! "$TITLE" =~ $REGEX ]]; then
exit 1
fi
10 changes: 5 additions & 5 deletions .github/workflows/publish-dev-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ jobs:
if: github.repository_owner == 'discordjs'
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

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

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

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
run: echo ${{ secrets.DOCKER_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ jobs:
if: github.repository_owner == 'discordjs'
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install node.js v18
uses: actions/setup-node@v3
- name: Install Node.js v20
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Check the current development version
Expand Down
Loading