Skip to content

Commit 51808a5

Browse files
authored
feat: update to DiscordJS v13.2.0 (#295)
1 parent 5e915d0 commit 51808a5

File tree

8 files changed

+8464
-5438
lines changed

8 files changed

+8464
-5438
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ node_modules/
66
coverage/
77
docs/
88

9+
# Yarn files
10+
.yarn/install-state.gz
11+
.yarn/build-state.yml
12+
913
# Ignore tsc dist folder
1014
dist/
1115

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

+363
Large diffs are not rendered by default.

.yarn/plugins/@yarnpkg/plugin-typescript.cjs

+9
Large diffs are not rendered by default.

.yarn/releases/yarn-3.0.2.cjs

+631
Large diffs are not rendered by default.

.yarnrc.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
enableGlobalCache: true
2+
3+
nodeLinker: node-modules
4+
5+
plugins:
6+
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
7+
spec: '@yarnpkg/plugin-typescript'
8+
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
9+
spec: '@yarnpkg/plugin-interactive-tools'
10+
11+
yarnPath: .yarn/releases/yarn-3.0.2.cjs

package.json

+18-16
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
},
1111
"author": "@sapphire",
1212
"license": "MIT",
13-
"private": false,
1413
"scripts": {
1514
"lint": "eslint src tests scripts --ext mjs,ts --fix",
1615
"format": "prettier --write {src,tests,scripts}/**/*.ts",
@@ -29,31 +28,33 @@
2928
},
3029
"dependencies": {
3130
"@sapphire/discord-utilities": "^2.2.0",
32-
"@sapphire/discord.js-utilities": "^3.0.1",
31+
"@sapphire/discord.js-utilities": "^3.1.0",
3332
"@sapphire/pieces": "^3.0.1",
34-
"@sapphire/ratelimits": "^2.1.1",
35-
"@sapphire/utilities": "^3.0.1",
33+
"@sapphire/ratelimits": "^2.1.2",
34+
"@sapphire/utilities": "^3.0.2",
3635
"lexure": "^0.17.0",
3736
"tslib": "^2.3.1"
3837
},
3938
"devDependencies": {
40-
"@commitlint/cli": "^13.2.0",
39+
"@commitlint/cli": "^13.2.1",
4140
"@commitlint/config-conventional": "^13.2.0",
42-
"@favware/npm-deprecate": "^1.0.3",
43-
"@favware/rollup-type-bundler": "^1.0.4",
44-
"@sapphire/eslint-config": "^3.3.0",
45-
"@sapphire/prettier-config": "^1.2.0",
41+
"@favware/npm-deprecate": "^1.0.4",
42+
"@favware/rollup-type-bundler": "^1.0.5",
43+
"@sapphire/eslint-config": "^3.3.1",
44+
"@sapphire/prettier-config": "^1.2.1",
4645
"@sapphire/ts-config": "^3.1.0",
4746
"@types/jest": "^27.0.2",
48-
"@types/node": "^16.10.2",
47+
"@types/node": "^16.10.3",
4948
"@types/ws": "^8.2.0",
5049
"cz-conventional-changelog": "^3.3.0",
51-
"discord.js": "^13.1.0",
50+
"discord.js": "^13.2.0",
51+
"eslint": "^7.32.0",
5252
"gen-esm-wrapper": "^1.1.3",
5353
"husky": "^7.0.2",
54-
"jest": "^27.2.4",
55-
"jest-circus": "^27.2.4",
56-
"lint-staged": "^11.2.0",
54+
"jest": "^27.2.5",
55+
"jest-circus": "^27.2.5",
56+
"lint-staged": "^11.2.2",
57+
"prettier": "^2.4.1",
5758
"pretty-quick": "^3.1.1",
5859
"rollup": "^2.58.0",
5960
"rollup-plugin-version-injector": "^1.3.3",
@@ -113,10 +114,11 @@
113114
"jest-jasmine2": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.1.1.tgz",
114115
"dot-prop": "^6.0.1",
115116
"lodash": "^4.17.21",
116-
"marked": "^3.0.4",
117+
"marked": "^3.0.7",
117118
"merge": "^2.1.1",
118119
"trim": "^1.0.1",
119120
"trim-newlines": "^4.0.2"
120121
},
121-
"prettier": "@sapphire/prettier-config"
122+
"prettier": "@sapphire/prettier-config",
123+
"packageManager": "[email protected]"
122124
}

src/preconditions/ClientPermissions.ts

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ export class CorePrecondition extends Precondition {
5757
CHANGE_NICKNAME: 'Change Nickname',
5858
CONNECT: 'Connect',
5959
CREATE_INSTANT_INVITE: 'Create Instant Invite',
60+
CREATE_PRIVATE_THREADS: 'Create Private Threads',
61+
CREATE_PUBLIC_THREADS: 'Create Public Threads',
6062
DEAFEN_MEMBERS: 'Deafen Members',
6163
EMBED_LINKS: 'Embed Links',
6264
KICK_MEMBERS: 'Kick Members',
@@ -75,8 +77,10 @@ export class CorePrecondition extends Precondition {
7577
READ_MESSAGE_HISTORY: 'Read Message History',
7678
REQUEST_TO_SPEAK: 'Request to Speak',
7779
SEND_MESSAGES: 'Send Messages',
80+
SEND_MESSAGES_IN_THREADS: 'Send Messages in Threads',
7881
SEND_TTS_MESSAGES: 'Send TTS Messages',
7982
SPEAK: 'Speak',
83+
START_EMBEDDED_ACTIVITIES: 'Start Activities',
8084
STREAM: 'Stream',
8185
USE_APPLICATION_COMMANDS: 'Use Application Commands',
8286
USE_EXTERNAL_EMOJIS: 'Use External Emojis',

0 commit comments

Comments
 (0)