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

gh 8689 v13 #8702

Closed
wants to merge 127 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
2dabd82
fix(sweepers): provide default for object param (#7182)
ckohen Jan 7, 2022
ac8c122
chore(release): version
iCrawl Jan 7, 2022
233084a
feat: add Locales to Interactions (#7131)
suneettipirneni Jan 11, 2022
1f4e633
docs(interaction): add locale list link (#7261)
ImRodry Jan 13, 2022
988a51b
chore(release): version
iCrawl Jan 13, 2022
5bcca8b
feat(commands): attachment options (#7441)
monbrey Feb 13, 2022
bc5ddc3
fix(MessageEmbed): set footer to undefined (#7358)
imranbarbhuiya Feb 13, 2022
77b8e01
fix(Shard): V13 EventEmitter listener warning (#7479)
Jiralite Feb 17, 2022
0b54089
types: V13 channel create overloads fix (#7480)
Jiralite Feb 20, 2022
2b3db73
feat(thread): v13 add `newlyCreated` to `threadCreate` event (#7481)
Jiralite Feb 20, 2022
30baff7
fix(MessagePayload): v13 don't set reply flags to target flags (#7515)
ckohen Feb 23, 2022
f096069
fix(typings): sweepStageInstances typo (#7521)
EhsanFox Feb 23, 2022
2fcf8af
feat(scheduledevents): add image option (v13) (#7549)
BenjammingKirby Feb 26, 2022
ee1698d
feat: Backport `sweepStickers` method (#7558)
Jiralite Mar 2, 2022
5f621c1
fix: Backport `MessageReaction#me` being incorrectly `false` (#7553)
Jiralite Mar 2, 2022
69ba067
docs: Backport version 13 fixes (#7552)
Jiralite Mar 2, 2022
215dfe0
feat(GuildPreview): Add stickers to version 13 (#7554)
Jiralite Mar 2, 2022
49397c0
fix(ThreadChannel): Require `sendable` for `unarchivable` (#7555)
Jiralite Mar 2, 2022
b231bec
feat: Backport `reason` on `pin` and `unpin` (#7556)
Jiralite Mar 2, 2022
679b87c
feat: Add custom image support to version 13 (#7557)
Jiralite Mar 2, 2022
1d97dcf
feat(ThreadChannel): Backport creation timestamp (#7559)
Jiralite Mar 2, 2022
29d42ed
feat: Backport sending message flags (#7560)
Jiralite Mar 2, 2022
611d3a7
feat: Backport cache types resolving to `never` (#7561)
Jiralite Mar 2, 2022
93cdb2f
feat: Backport `MessageMentions` channel type fixes (#7562)
Jiralite Mar 2, 2022
13dd82d
fix: check if member has admininistrator on `moderatable` (v13) (#7578)
BenjammingKirby Mar 2, 2022
7a52785
fix(messagementions): fix `has` method for v13 (#7591)
ImRodry Mar 6, 2022
a7535a2
feat(scheduledevents): Event cover images for v13 (#7613)
BenjammingKirby Mar 7, 2022
7814074
types(InteractionCollector): Fix guild and channel types (#7624)
Jiralite Mar 10, 2022
dfea9c2
fix(GuildScheduledEvent): handle missing `image` for v13 (#7627)
almeidx Mar 24, 2022
b9c5676
refactor: remove non-breaking stuff (#7636)
Jiralite Apr 9, 2022
8e7d15e
feat: Add `premiumSubscriptionCount` to `InviteGuild` (#7629)
Jiralite Apr 9, 2022
9f09702
feat: add methods to managers for v13 (#7611)
ImRodry Apr 9, 2022
5e8162a
feat: Backport `Interaction#isRepliable` (#7563)
Jiralite Apr 9, 2022
e1cdcfa
feat(modals): modals, input text components and modal submits, v13 st…
monbrey Apr 9, 2022
c9e4562
fix(GuildChannelManager): `delete` method accessing wrong id (#7771)
almeidx Apr 12, 2022
ab6c2ba
fix: apply v14 fix (#7756)
Jiralite Apr 12, 2022
68498a8
feat(StageInstance): add support for associated guild event (#7713)
Jiralite Apr 12, 2022
6daee1b
feat(VoiceChannel): Support `video_quality_mode` (v13) (#7785)
Jiralite Apr 14, 2022
cedc333
feat: backport (#7783)
Jiralite Apr 14, 2022
ae7f991
feat: backport (#7779)
Jiralite Apr 14, 2022
ff49b82
feat: backport (#7778)
Jiralite Apr 14, 2022
6c56132
feat: backport (#7777)
Jiralite Apr 14, 2022
9e4a900
feat: app authorization links and tags for v13 (#7731)
SuperchupuDev Apr 14, 2022
022e138
feat: add support for localized slash commands (v13 backport) (#7766)
xHyroM Apr 14, 2022
ab324ea
feat: backport (#7786)
Jiralite Apr 14, 2022
3eb45e3
feat: backport (#7787)
Jiralite Apr 14, 2022
1040ce0
docs(ApplicationCommand): Fix ApplicationCommandOptionChoice (#7798)
Jiralite Apr 17, 2022
b9802f4
refactor: deprecate v13 properties and methods (#7782)
Jiralite Apr 17, 2022
7afcd95
types(threadchannel): fix autoArchiveDuration types (#7817)
ImRodry Apr 19, 2022
5165b18
feat: backport (#7776)
Jiralite Apr 19, 2022
1d09ad4
types: fix ModalSubmitInteraction (#7768)
sasial-dev Apr 19, 2022
816936e
fix(GuildEditData): some fields can be null for v13 (#7633)
almeidx Apr 19, 2022
6dcf0bd
docs: fix and improve localization docs (v13 backport) (#7807)
xHyroM Apr 21, 2022
43a7870
docs(shardingmanager): fix type of `execArgv` option (v13) (#7863)
almeidx May 2, 2022
ea28638
fix(MessageEmbed): fix a typo (#7906)
Syjalo May 12, 2022
e3cbd45
chore: release
iCrawl May 13, 2022
a51420f
fix(ApplicationCommandOptionType): Add attachment to jsdoc (#7952)
GrapeColor Jun 5, 2022
76df9fd
fix: video quality mode data property (#7946)
ducktrshessami Jun 5, 2022
114bcc0
fix(websocketshard): deal with zombie connection caused by 4009 (#7581)
legendhimself Jun 5, 2022
ddfe15b
feat: backport text-in-voice support to v13 (#7999)
suneettipirneni Jun 5, 2022
a8f2b2c
chore: deps
iCrawl Jun 5, 2022
876816a
fix(guildchannelmanager): wrong parameter in _sortedChannels call (#8…
almeidx Jun 5, 2022
8f6df90
chore(release): version
iCrawl Jun 5, 2022
0d0190a
types(GuildChannel): fix type of `.isText()` method (#8061)
Syjalo Jun 13, 2022
3095f35
fix(AuditLog): default changes to empty array (#8076)
Jiralite Jun 13, 2022
613fd43
types(AutocompleteOption): backport fix and improve types (#8078)
ImRodry Jun 13, 2022
afb18b9
fix: destroy options during cleanup (#8082)
legendhimself Jun 13, 2022
0ab2227
fix(ModalSubmitInteraction): add `isFromMessage()` missing method (#8…
Mateo-tem Jun 14, 2022
3638b40
refactor: deprecate `$` prefix from `ws.properties` keys (#8095)
SuperchupuDev Jun 17, 2022
70450f6
typings(Shard#reconnecting): Backport to v13 - Fix event name (#8126)
KinectTheUnknown Jun 20, 2022
65444f5
docs: `TextBasedChannel`-> `TextBasedChannels` typos (v13) (#8155)
Jiralite Jun 23, 2022
c61fc80
fix(VoiceChannel): NSFW property (v13) (#8161)
Jiralite Jun 23, 2022
7e1904c
chore(release): version
iCrawl Jun 23, 2022
c198e89
fix(WebSocketShard): backport error handler preservation on connectio…
didinele Jun 23, 2022
125696f
feat: partially backport perms v2 for v13 (#8162)
almeidx Jun 23, 2022
079973f
types: add missing shard types (v13) (#8192)
almeidx Jun 29, 2022
222fc9c
feat(interaction): add `appPermissions` (v13) (#8195)
almeidx Jun 29, 2022
4ae08ad
docs(constants): document missing constants (#8168)
almeidx Jun 29, 2022
e8d72c7
fix(guildmemberremove): remove member's presence for v13 (#8182)
almeidx Jun 29, 2022
0e0f784
fix(GuildStickerManager.fetchUser): Changed guildId to guild.id (#8176)
KinectTheUnknown Jun 29, 2022
4063b90
fix: Use non-global flag whilst resolving regular expressions (#8178)
Jiralite Jun 29, 2022
feb8e30
docs(MessageInteraction): update `commandName` description (v13) (#8220)
SuperchupuDev Jul 3, 2022
631abee
types(GuildMemberManager): Non-void return of `edit()` (v13) (#8187)
Jiralite Jul 3, 2022
f704b26
fix: pass in the expected query object type for application commands …
vladfrangu Jul 3, 2022
f457cdd
fix(applicationcommandmanager): explicitly allow passing builders to …
almeidx Jul 5, 2022
a93f4b1
feat(ApplicationCommand): add `min_length` and `max_length` for strin…
Mateo-tem Jul 6, 2022
9cc336c
docs: Add `MessageActivityType` (v13) (#8257)
aiko-chan-ai Jul 9, 2022
8fe166d
fix(GuildChannelManager): edit lockPermissions (#8267)
muchnameless Jul 12, 2022
beb3d8e
fix(GuildChannelManager): Access `resolveId` correctly (v13) (#8297)
Jiralite Jul 17, 2022
4d86cf4
fix(PermissionOverwriteManager): mutates user (#8282)
AppEternal Jul 17, 2022
00a7057
docs: add new HTTP Error Codes `50068` (v13) (#8273)
aiko-chan-ai Jul 17, 2022
7b7cc1c
chore: deps
iCrawl Jul 17, 2022
64928ab
chore(discord.js): release discord.js@13.9.0
iCrawl Jul 17, 2022
da3d487
ci: fix documentation deployment for v13
iCrawl Jul 18, 2022
f2a6f9f
ci: remove build step
iCrawl Jul 18, 2022
d9432ab
ci: correct path to docs.json
iCrawl Jul 18, 2022
4cf0555
fix(ApplicationCommandManager): allow passing 0n to defaultMemberPerm…
almeidx Jul 20, 2022
5c1e558
ci: add vercel check deploy branch script
iCrawl Jul 20, 2022
e95caa7
refactor(Presence): Remove redundant date parsing (v13) (#8341)
Jiralite Jul 23, 2022
be35db2
refactor(embed): deprecate addField (#8318)
nyapat Jul 23, 2022
622c77b
chore(discord.js): release discord.js@13.9.1
iCrawl Jul 23, 2022
4f7c1e3
fix(ThreadChannel): Omit webhook fetching (v13) (#8352)
Jiralite Jul 24, 2022
7b41fb6
chore: disable scope-case rule for commitlint (v13) (#8363)
Jiralite Jul 25, 2022
9612507
fix(GuildChannelManager): allow unsetting rtcRegion (v13) (#8362)
Jiralite Jul 26, 2022
d0a4199
fix(MessageMentions): `ignoreRepliedUser` option in `has()` (v13) (#8…
almeidx Jul 29, 2022
7321507
chore(discord.js): release discord.js@13.9.2
iCrawl Jul 29, 2022
ae43bca
feat(Guild): Add `max_video_channel_users` (v13) (#8424)
Jiralite Aug 8, 2022
78e494b
chore(discord.js): release discord.js@13.10.0
iCrawl Aug 10, 2022
2a46d9f
fix(ThreadChannel): Handle possibly `null` parent (v13) (#8467)
Jiralite Aug 10, 2022
9ce7e5e
chore(discord.js): release discord.js@13.10.1
iCrawl Aug 10, 2022
03c59e3
types(Message): correct `bulkDelete` return type (v13) (#8469)
RedGuy12 Aug 10, 2022
30e89a4
chore(discord.js): release discord.js@13.10.2
iCrawl Aug 10, 2022
11d6949
docs: fix broken discord support link (#8485)
GodderE2D Aug 15, 2022
b6f48ec
Specify time unit in `awaitModalSubmit` (v13) (#8506)
Jiralite Aug 17, 2022
526ea74
types(ModalMessageModalSubmitInteraction): channelId is not nullable …
Jiralite Aug 17, 2022
10b12cc
types: Disallow some channel types from webhook creation (#8535)
Jiralite Aug 22, 2022
f0c0166
chore: deps
iCrawl Aug 22, 2022
a507ed9
chore(release): discord.js 13.10.3
iCrawl Aug 22, 2022
ca68fc3
feat(GuildBanManager): Add `deleteMessageSeconds` (#8575)
Jiralite Sep 2, 2022
5617799
add MESSAGE_CONTENT intent (v13) (#8580)
JsCoder2022 Sep 2, 2022
e6ee7d8
fix: fixed TS 4.8 compatibility (#8601)
favna Sep 8, 2022
f4e8133
types(GuildChannelManager): correct fetch return type (v13) (#8551)
RedGuy12 Sep 13, 2022
fcd52d7
docs: update misleading `Client#guildMemberAvailable` event descripti…
almeidx Sep 15, 2022
8f94a9c
chore: fix typescript tests (v13) (#8628)
almeidx Sep 15, 2022
5ef30a0
chore: deps
iCrawl Sep 15, 2022
8d6a55d
chore(discord.js): release discord.js@13.11.0
iCrawl Sep 15, 2022
cda0cca
feat(Util): backport `escapeMarkdown` PRs to v13
RedGuy12 Oct 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .cliff-jumperrc.json
@@ -0,0 +1,5 @@
{
"name": "discord.js",
"packagePath": ".",
"tagTemplate": "{{new-version}}"
}
3 changes: 2 additions & 1 deletion .commitlintrc.json
Expand Up @@ -5,6 +5,7 @@
2,
"always",
["chore", "build", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test", "types", "typings"]
]
],
"scope-case": [0]
}
}
13 changes: 13 additions & 0 deletions .github/check_deploy_branch.sh
@@ -0,0 +1,13 @@
#!/bin/bash

git diff HEAD^ HEAD --quiet .

if [[ "$VERCEL_GIT_COMMIT_REF" == "main" && $? -eq 1 ]]; then
# Proceed with the build
echo "✅ - Proceed"
exit 1;
else
# Don't build
echo "🛑 - Build cancelled"
exit 0;
fi
29 changes: 0 additions & 29 deletions .github/workflows/deploy.yml

This file was deleted.

102 changes: 102 additions & 0 deletions .github/workflows/documentation.yml
@@ -0,0 +1,102 @@
name: Documentation
on:
push:
branches:
- 'v13'
- '!docs'
tags:
- '**'
workflow_dispatch:
inputs:
ref:
description: 'The branch, tag or SHA to checkout'
required: true
jobs:
build:
name: Build documentation
runs-on: ubuntu-latest
if: github.repository_owner == 'discordjs'
outputs:
BRANCH_NAME: ${{ steps.env.outputs.BRANCH_NAME }}
BRANCH_OR_TAG: ${{ steps.env.outputs.BRANCH_OR_TAG }}
SHA: ${{ steps.env.outputs.SHA }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.ref || '' }}

- name: Install node.js v16
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Install dependencies
run: npm ci

- name: Build docs
run: npm run docs

- name: Upload docgen artifacts
uses: actions/upload-artifact@v3
with:
name: docgen
path: docs/docs.json

- name: Set outputs for upload job
id: env
run: |
echo "::set-output name=BRANCH_NAME::${GITHUB_REF_NAME}"
echo "::set-output name=BRANCH_OR_TAG::${GITHUB_REF_TYPE}"
echo "::set-output name=SHA::${GITHUB_SHA}"

upload:
name: Upload Documentation
needs: build
runs-on: ubuntu-latest
env:
BRANCH_NAME: ${{ github.event.inputs.ref || needs.build.outputs.BRANCH_NAME }}
BRANCH_OR_TAG: ${{ needs.build.outputs.BRANCH_OR_TAG }}
SHA: ${{ needs.build.outputs.SHA }}
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install node.js v16
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Install dependencies
run: npm ci

- name: Download docgen artifacts
uses: actions/download-artifact@v3
with:
name: docgen
path: docs

- name: Checkout docs repository
uses: actions/checkout@v3
with:
repository: 'discordjs/docs'
token: ${{ secrets.DJS_DOCS }}
path: 'out'

- name: Move docs to correct directory
run: |
mkdir -p out/discord.js
mv docs/docs.json out/discord.js/${BRANCH_NAME}.json

- name: Commit and push
run: |
cd out
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add .
git commit -m "Docs build for ${BRANCH_OR_TAG} ${BRANCH_NAME}: ${SHA}" || true
git push
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -28,3 +28,4 @@ docs/docs.json
.tmp/
.idea/
.DS_Store
.yarn/
288 changes: 254 additions & 34 deletions CHANGELOG.md

Large diffs are not rendered by default.

77 changes: 40 additions & 37 deletions cliff.toml
@@ -1,33 +1,36 @@
[changelog]
header = """
# Changelog

All notable changes to this project will be documented in this file.\n
"""
body = """
{% if version %}\
# [{{ version | trim_start_matches(pat="v") }}]\
{% if previous %}\
{% if previous.version %}\
(https://github.com/discordjs/discord.js/compare/{{ previous.version }}...{{ version }})\
{% else %}
(https://github.com/discordjs/discord.js/tree/{{ version }}\
{% endif %}\
{% endif %} \
- ({{ timestamp | date(format="%Y-%m-%d") }})
# [{{ version | trim_start_matches(pat="v") }}]\
{% if previous %}\
{% if previous.version %}\
(https://github.com/discordjs/discord.js/compare/{{ previous.version }}...{{ version }})\
{% else %}\
(https://github.com/discordjs/discord.js/tree/{{ version }})\
{% endif %}\
{% endif %} \
- ({{ timestamp | date(format="%Y-%m-%d") }})
{% else %}\
# [unreleased]
# [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
## {{ group | upper_first }}
{% for commit in commits %}
- {% if commit.breaking %}\
[**breaking**] \
{% endif %}\
{% if commit.scope %}\
**{{commit.scope}}:** \
{% endif %}\
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/discordjs/discord.js/commit/{{ commit.id }}))\
{% endfor %}
## {{ group | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}\
**{{commit.scope}}:** \
{% endif %}\
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/discordjs/discord.js/commit/{{ commit.id }}))\
{% if commit.breaking %}\
{% for breakingChange in commit.footers %}\
\n{% raw %} {% endraw %}- **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\
{% endfor %}\
{% endif %}\
{% endfor %}
{% endfor %}\n
"""
trim = true
Expand All @@ -37,25 +40,25 @@ footer = ""
conventional_commits = true
filter_unconventional = true
commit_parsers = [
{ message = "^feat", group = "Features"},
{ message = "^fix", group = "Bug Fixes"},
{ message = "^docs", group = "Documentation"},
{ message = "^perf", group = "Performance"},
{ message = "^refactor", group = "Refactor"},
{ message = "^typings", group = "Typings"},
{ message = "^types", group = "Typings"},
{ message = ".*deprecated", body = ".*deprecated", group = "Deprecation"},
{ message = "^revert", skip = true},
{ message = "^style", group = "Styling"},
{ message = "^test", group = "Testing"},
{ message = "^chore", skip = true},
{ message = "^ci", skip = true},
{ message = "^build", skip = true},
{ body = ".*security", group = "Security"},
{ message = "^feat", group = "Features"},
{ message = "^fix", group = "Bug Fixes"},
{ message = "^docs", group = "Documentation"},
{ message = "^perf", group = "Performance"},
{ message = "^refactor", group = "Refactor"},
{ message = "^typings", group = "Typings"},
{ message = "^types", group = "Typings"},
{ message = ".*deprecated", body = ".*deprecated", group = "Deprecation"},
{ message = "^revert", skip = true},
{ message = "^style", group = "Styling"},
{ message = "^test", group = "Testing"},
{ message = "^chore", skip = true},
{ message = "^ci", skip = true},
{ message = "^build", skip = true},
{ body = ".*security", group = "Security"},
]
filter_commits = true
tag_pattern = "[0-9]*"
skip_tags = "v[0-9]*|11|12"
skip_tags = "v[0-9]*|@discordjs"
ignore_tags = ""
topo_order = false
date_order = true
sort_commits = "newest"