Fix #121 and smail update
This commit is contained in:
parent
e30b8339e7
commit
e3d842db53
98
package-lock.json
generated
98
package-lock.json
generated
@ -21,7 +21,7 @@
|
|||||||
"bignumber.js": "^9.0.2",
|
"bignumber.js": "^9.0.2",
|
||||||
"bufferutil": "^4.0.6",
|
"bufferutil": "^4.0.6",
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^4.1.2",
|
||||||
"discord-api-types": "^0.33.0",
|
"discord-api-types": "^0.33.2",
|
||||||
"discord-bettermarkdown": "^1.2.0",
|
"discord-bettermarkdown": "^1.2.0",
|
||||||
"discord-rpc-contructor": "^1.1.5",
|
"discord-rpc-contructor": "^1.1.5",
|
||||||
"discord.js": "^13.7.0",
|
"discord.js": "^13.7.0",
|
||||||
@ -31,14 +31,13 @@
|
|||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"lodash.snakecase": "^4.1.1",
|
"lodash.snakecase": "^4.1.1",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.1",
|
||||||
"npm": "^8.10.0",
|
"npm": "^8.12.1",
|
||||||
"qrcode-terminal": "^0.12.0",
|
"qrcode-terminal": "^0.12.0",
|
||||||
"safe-base64": "^2.0.1-0",
|
"safe-base64": "^2.0.1-0",
|
||||||
"string_decoder": "^1.3.0",
|
"string_decoder": "^1.3.0",
|
||||||
"string-similarity": "^4.0.4",
|
"string-similarity": "^4.0.4",
|
||||||
"undici": "^5.2.0",
|
|
||||||
"utf-8-validate": "^5.0.9",
|
"utf-8-validate": "^5.0.9",
|
||||||
"ws": "^8.5.0"
|
"ws": "^8.7.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^16.0.1",
|
"@commitlint/cli": "^16.0.1",
|
||||||
@ -4436,9 +4435,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/discord-api-types": {
|
"node_modules/discord-api-types": {
|
||||||
"version": "0.33.1",
|
"version": "0.33.2",
|
||||||
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.33.1.tgz",
|
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.33.2.tgz",
|
||||||
"integrity": "sha512-dc7Xzm3isROh77jdxikQnLzKDslOPORm2Q8odXrKgEy8Aqfd1r9ISVTU/xsHkH6bFo+Hjf1A1C5OnBtu8ghy4w=="
|
"integrity": "sha512-ZiYvIUAOQnN98+TRaXH8HZdaCofNZDoUad4piVE1lfjlM1E3LRaRIyZOs4eWcWU/gI0P8oTTXyXCjfqKzV7YDw=="
|
||||||
},
|
},
|
||||||
"node_modules/discord-bettermarkdown": {
|
"node_modules/discord-bettermarkdown": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
@ -9311,9 +9310,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/npm": {
|
"node_modules/npm": {
|
||||||
"version": "8.11.0",
|
"version": "8.12.1",
|
||||||
"resolved": "https://registry.npmjs.org/npm/-/npm-8.11.0.tgz",
|
"resolved": "https://registry.npmjs.org/npm/-/npm-8.12.1.tgz",
|
||||||
"integrity": "sha512-4qmtwHa28J4SPmwCNoQI07KIF/ljmBhhuqG+xNXsIIRpwdKB5OXkMIGfH6KlThR6kzusxlkgR7t1haFDB88dcQ==",
|
"integrity": "sha512-0yOlhfgu1UzP6UijnaFuIS2bES2H9D90EA5OVsf2iOZw7VBrjntXKEwKfCaFA6vMVWkCP8qnPwCxxPdnDVwlNw==",
|
||||||
"bundleDependencies": [
|
"bundleDependencies": [
|
||||||
"@isaacs/string-locale-compare",
|
"@isaacs/string-locale-compare",
|
||||||
"@npmcli/arborist",
|
"@npmcli/arborist",
|
||||||
@ -9422,7 +9421,7 @@
|
|||||||
"libnpmsearch": "^5.0.2",
|
"libnpmsearch": "^5.0.2",
|
||||||
"libnpmteam": "^4.0.2",
|
"libnpmteam": "^4.0.2",
|
||||||
"libnpmversion": "^3.0.1",
|
"libnpmversion": "^3.0.1",
|
||||||
"make-fetch-happen": "^10.1.5",
|
"make-fetch-happen": "^10.1.6",
|
||||||
"minipass": "^3.1.6",
|
"minipass": "^3.1.6",
|
||||||
"minipass-pipeline": "^1.2.4",
|
"minipass-pipeline": "^1.2.4",
|
||||||
"mkdirp": "^1.0.4",
|
"mkdirp": "^1.0.4",
|
||||||
@ -9439,7 +9438,7 @@
|
|||||||
"npm-user-validate": "^1.0.1",
|
"npm-user-validate": "^1.0.1",
|
||||||
"npmlog": "^6.0.2",
|
"npmlog": "^6.0.2",
|
||||||
"opener": "^1.5.2",
|
"opener": "^1.5.2",
|
||||||
"pacote": "^13.4.1",
|
"pacote": "^13.6.0",
|
||||||
"parse-conflict-json": "^2.0.2",
|
"parse-conflict-json": "^2.0.2",
|
||||||
"proc-log": "^2.0.1",
|
"proc-log": "^2.0.1",
|
||||||
"qrcode-terminal": "^0.12.0",
|
"qrcode-terminal": "^0.12.0",
|
||||||
@ -9544,7 +9543,7 @@
|
|||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
},
|
},
|
||||||
"node_modules/npm/node_modules/@npmcli/arborist": {
|
"node_modules/npm/node_modules/@npmcli/arborist": {
|
||||||
"version": "5.2.0",
|
"version": "5.2.1",
|
||||||
"inBundle": true,
|
"inBundle": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -10210,7 +10209,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/npm/node_modules/glob": {
|
"node_modules/npm/node_modules/glob": {
|
||||||
"version": "8.0.1",
|
"version": "8.0.3",
|
||||||
"inBundle": true,
|
"inBundle": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -10218,8 +10217,7 @@
|
|||||||
"inflight": "^1.0.4",
|
"inflight": "^1.0.4",
|
||||||
"inherits": "2",
|
"inherits": "2",
|
||||||
"minimatch": "^5.0.1",
|
"minimatch": "^5.0.1",
|
||||||
"once": "^1.3.0",
|
"once": "^1.3.0"
|
||||||
"path-is-absolute": "^1.0.0"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
@ -10506,7 +10504,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/npm/node_modules/libnpmexec": {
|
"node_modules/npm/node_modules/libnpmexec": {
|
||||||
"version": "4.0.5",
|
"version": "4.0.6",
|
||||||
"inBundle": true,
|
"inBundle": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -10637,7 +10635,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/npm/node_modules/make-fetch-happen": {
|
"node_modules/npm/node_modules/make-fetch-happen": {
|
||||||
"version": "10.1.5",
|
"version": "10.1.6",
|
||||||
"inBundle": true,
|
"inBundle": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -10663,7 +10661,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/npm/node_modules/minimatch": {
|
"node_modules/npm/node_modules/minimatch": {
|
||||||
"version": "5.0.1",
|
"version": "5.1.0",
|
||||||
"inBundle": true,
|
"inBundle": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -10840,14 +10838,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/npm/node_modules/node-gyp/node_modules/glob": {
|
"node_modules/npm/node_modules/node-gyp/node_modules/glob": {
|
||||||
"version": "7.2.0",
|
"version": "7.2.3",
|
||||||
"inBundle": true,
|
"inBundle": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fs.realpath": "^1.0.0",
|
"fs.realpath": "^1.0.0",
|
||||||
"inflight": "^1.0.4",
|
"inflight": "^1.0.4",
|
||||||
"inherits": "2",
|
"inherits": "2",
|
||||||
"minimatch": "^3.0.4",
|
"minimatch": "^3.1.1",
|
||||||
"once": "^1.3.0",
|
"once": "^1.3.0",
|
||||||
"path-is-absolute": "^1.0.0"
|
"path-is-absolute": "^1.0.0"
|
||||||
},
|
},
|
||||||
@ -11055,7 +11053,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/npm/node_modules/pacote": {
|
"node_modules/npm/node_modules/pacote": {
|
||||||
"version": "13.5.0",
|
"version": "13.6.0",
|
||||||
"inBundle": true,
|
"inBundle": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -11266,14 +11264,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/npm/node_modules/rimraf/node_modules/glob": {
|
"node_modules/npm/node_modules/rimraf/node_modules/glob": {
|
||||||
"version": "7.2.0",
|
"version": "7.2.3",
|
||||||
"inBundle": true,
|
"inBundle": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fs.realpath": "^1.0.0",
|
"fs.realpath": "^1.0.0",
|
||||||
"inflight": "^1.0.4",
|
"inflight": "^1.0.4",
|
||||||
"inherits": "2",
|
"inherits": "2",
|
||||||
"minimatch": "^3.0.4",
|
"minimatch": "^3.1.1",
|
||||||
"once": "^1.3.0",
|
"once": "^1.3.0",
|
||||||
"path-is-absolute": "^1.0.0"
|
"path-is-absolute": "^1.0.0"
|
||||||
},
|
},
|
||||||
@ -14214,14 +14212,6 @@
|
|||||||
"integrity": "sha512-QvjkYpiD+dJJraRA8+dGAU4i7aBbb2s0S3jA45TFOvg2VgqvdCDd/3N6CqA8gluk1W91GLoXg5enMUx560QzuA==",
|
"integrity": "sha512-QvjkYpiD+dJJraRA8+dGAU4i7aBbb2s0S3jA45TFOvg2VgqvdCDd/3N6CqA8gluk1W91GLoXg5enMUx560QzuA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/undici": {
|
|
||||||
"version": "5.3.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/undici/-/undici-5.3.0.tgz",
|
|
||||||
"integrity": "sha512-8LxC/xmR2GCE4q1heE1sJxVnnf5S6yQ2dObvMFBBWkB8aQlaqNuWovgRFWRMB7KUdLPGZfOTTmUeeLEJYX56iQ==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12.18"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/unique-filename": {
|
"node_modules/unique-filename": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz",
|
||||||
@ -18158,9 +18148,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"discord-api-types": {
|
"discord-api-types": {
|
||||||
"version": "0.33.1",
|
"version": "0.33.2",
|
||||||
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.33.1.tgz",
|
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.33.2.tgz",
|
||||||
"integrity": "sha512-dc7Xzm3isROh77jdxikQnLzKDslOPORm2Q8odXrKgEy8Aqfd1r9ISVTU/xsHkH6bFo+Hjf1A1C5OnBtu8ghy4w=="
|
"integrity": "sha512-ZiYvIUAOQnN98+TRaXH8HZdaCofNZDoUad4piVE1lfjlM1E3LRaRIyZOs4eWcWU/gI0P8oTTXyXCjfqKzV7YDw=="
|
||||||
},
|
},
|
||||||
"discord-bettermarkdown": {
|
"discord-bettermarkdown": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
@ -21900,9 +21890,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"npm": {
|
"npm": {
|
||||||
"version": "8.11.0",
|
"version": "8.12.1",
|
||||||
"resolved": "https://registry.npmjs.org/npm/-/npm-8.11.0.tgz",
|
"resolved": "https://registry.npmjs.org/npm/-/npm-8.12.1.tgz",
|
||||||
"integrity": "sha512-4qmtwHa28J4SPmwCNoQI07KIF/ljmBhhuqG+xNXsIIRpwdKB5OXkMIGfH6KlThR6kzusxlkgR7t1haFDB88dcQ==",
|
"integrity": "sha512-0yOlhfgu1UzP6UijnaFuIS2bES2H9D90EA5OVsf2iOZw7VBrjntXKEwKfCaFA6vMVWkCP8qnPwCxxPdnDVwlNw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@isaacs/string-locale-compare": "^1.1.0",
|
"@isaacs/string-locale-compare": "^1.1.0",
|
||||||
"@npmcli/arborist": "^5.0.4",
|
"@npmcli/arborist": "^5.0.4",
|
||||||
@ -21939,7 +21929,7 @@
|
|||||||
"libnpmsearch": "^5.0.2",
|
"libnpmsearch": "^5.0.2",
|
||||||
"libnpmteam": "^4.0.2",
|
"libnpmteam": "^4.0.2",
|
||||||
"libnpmversion": "^3.0.1",
|
"libnpmversion": "^3.0.1",
|
||||||
"make-fetch-happen": "^10.1.5",
|
"make-fetch-happen": "^10.1.6",
|
||||||
"minipass": "^3.1.6",
|
"minipass": "^3.1.6",
|
||||||
"minipass-pipeline": "^1.2.4",
|
"minipass-pipeline": "^1.2.4",
|
||||||
"mkdirp": "^1.0.4",
|
"mkdirp": "^1.0.4",
|
||||||
@ -21956,7 +21946,7 @@
|
|||||||
"npm-user-validate": "^1.0.1",
|
"npm-user-validate": "^1.0.1",
|
||||||
"npmlog": "^6.0.2",
|
"npmlog": "^6.0.2",
|
||||||
"opener": "^1.5.2",
|
"opener": "^1.5.2",
|
||||||
"pacote": "^13.4.1",
|
"pacote": "^13.6.0",
|
||||||
"parse-conflict-json": "^2.0.2",
|
"parse-conflict-json": "^2.0.2",
|
||||||
"proc-log": "^2.0.1",
|
"proc-log": "^2.0.1",
|
||||||
"qrcode-terminal": "^0.12.0",
|
"qrcode-terminal": "^0.12.0",
|
||||||
@ -21990,7 +21980,7 @@
|
|||||||
"bundled": true
|
"bundled": true
|
||||||
},
|
},
|
||||||
"@npmcli/arborist": {
|
"@npmcli/arborist": {
|
||||||
"version": "5.2.0",
|
"version": "5.2.1",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@isaacs/string-locale-compare": "^1.1.0",
|
"@isaacs/string-locale-compare": "^1.1.0",
|
||||||
@ -22449,15 +22439,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"glob": {
|
"glob": {
|
||||||
"version": "8.0.1",
|
"version": "8.0.3",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"fs.realpath": "^1.0.0",
|
"fs.realpath": "^1.0.0",
|
||||||
"inflight": "^1.0.4",
|
"inflight": "^1.0.4",
|
||||||
"inherits": "2",
|
"inherits": "2",
|
||||||
"minimatch": "^5.0.1",
|
"minimatch": "^5.0.1",
|
||||||
"once": "^1.3.0",
|
"once": "^1.3.0"
|
||||||
"path-is-absolute": "^1.0.0"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"graceful-fs": {
|
"graceful-fs": {
|
||||||
@ -22649,7 +22638,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"libnpmexec": {
|
"libnpmexec": {
|
||||||
"version": "4.0.5",
|
"version": "4.0.6",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@npmcli/arborist": "^5.0.0",
|
"@npmcli/arborist": "^5.0.0",
|
||||||
@ -22740,7 +22729,7 @@
|
|||||||
"bundled": true
|
"bundled": true
|
||||||
},
|
},
|
||||||
"make-fetch-happen": {
|
"make-fetch-happen": {
|
||||||
"version": "10.1.5",
|
"version": "10.1.6",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"agentkeepalive": "^4.2.1",
|
"agentkeepalive": "^4.2.1",
|
||||||
@ -22762,7 +22751,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"minimatch": {
|
"minimatch": {
|
||||||
"version": "5.0.1",
|
"version": "5.1.0",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"brace-expansion": "^2.0.1"
|
"brace-expansion": "^2.0.1"
|
||||||
@ -22879,13 +22868,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"glob": {
|
"glob": {
|
||||||
"version": "7.2.0",
|
"version": "7.2.3",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"fs.realpath": "^1.0.0",
|
"fs.realpath": "^1.0.0",
|
||||||
"inflight": "^1.0.4",
|
"inflight": "^1.0.4",
|
||||||
"inherits": "2",
|
"inherits": "2",
|
||||||
"minimatch": "^3.0.4",
|
"minimatch": "^3.1.1",
|
||||||
"once": "^1.3.0",
|
"once": "^1.3.0",
|
||||||
"path-is-absolute": "^1.0.0"
|
"path-is-absolute": "^1.0.0"
|
||||||
}
|
}
|
||||||
@ -23024,7 +23013,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pacote": {
|
"pacote": {
|
||||||
"version": "13.5.0",
|
"version": "13.6.0",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@npmcli/git": "^3.0.0",
|
"@npmcli/git": "^3.0.0",
|
||||||
@ -23166,13 +23155,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"glob": {
|
"glob": {
|
||||||
"version": "7.2.0",
|
"version": "7.2.3",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"fs.realpath": "^1.0.0",
|
"fs.realpath": "^1.0.0",
|
||||||
"inflight": "^1.0.4",
|
"inflight": "^1.0.4",
|
||||||
"inherits": "2",
|
"inherits": "2",
|
||||||
"minimatch": "^3.0.4",
|
"minimatch": "^3.1.1",
|
||||||
"once": "^1.3.0",
|
"once": "^1.3.0",
|
||||||
"path-is-absolute": "^1.0.0"
|
"path-is-absolute": "^1.0.0"
|
||||||
}
|
}
|
||||||
@ -25396,11 +25385,6 @@
|
|||||||
"integrity": "sha512-QvjkYpiD+dJJraRA8+dGAU4i7aBbb2s0S3jA45TFOvg2VgqvdCDd/3N6CqA8gluk1W91GLoXg5enMUx560QzuA==",
|
"integrity": "sha512-QvjkYpiD+dJJraRA8+dGAU4i7aBbb2s0S3jA45TFOvg2VgqvdCDd/3N6CqA8gluk1W91GLoXg5enMUx560QzuA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"undici": {
|
|
||||||
"version": "5.3.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/undici/-/undici-5.3.0.tgz",
|
|
||||||
"integrity": "sha512-8LxC/xmR2GCE4q1heE1sJxVnnf5S6yQ2dObvMFBBWkB8aQlaqNuWovgRFWRMB7KUdLPGZfOTTmUeeLEJYX56iQ=="
|
|
||||||
},
|
|
||||||
"unique-filename": {
|
"unique-filename": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz",
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
"bignumber.js": "^9.0.2",
|
"bignumber.js": "^9.0.2",
|
||||||
"bufferutil": "^4.0.6",
|
"bufferutil": "^4.0.6",
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^4.1.2",
|
||||||
"discord-api-types": "^0.33.0",
|
"discord-api-types": "^0.33.2",
|
||||||
"discord-bettermarkdown": "^1.2.0",
|
"discord-bettermarkdown": "^1.2.0",
|
||||||
"discord-rpc-contructor": "^1.1.5",
|
"discord-rpc-contructor": "^1.1.5",
|
||||||
"discord.js": "^13.7.0",
|
"discord.js": "^13.7.0",
|
||||||
@ -73,14 +73,13 @@
|
|||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"lodash.snakecase": "^4.1.1",
|
"lodash.snakecase": "^4.1.1",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.1",
|
||||||
"npm": "^8.10.0",
|
"npm": "^8.12.1",
|
||||||
"qrcode-terminal": "^0.12.0",
|
"qrcode-terminal": "^0.12.0",
|
||||||
"safe-base64": "^2.0.1-0",
|
"safe-base64": "^2.0.1-0",
|
||||||
"string_decoder": "^1.3.0",
|
"string_decoder": "^1.3.0",
|
||||||
"string-similarity": "^4.0.4",
|
"string-similarity": "^4.0.4",
|
||||||
"undici": "^5.2.0",
|
|
||||||
"utf-8-validate": "^5.0.9",
|
"utf-8-validate": "^5.0.9",
|
||||||
"ws": "^8.5.0"
|
"ws": "^8.7.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.6.0",
|
"node": ">=16.6.0",
|
||||||
|
@ -403,15 +403,6 @@ class Client extends BaseClient {
|
|||||||
});
|
});
|
||||||
return new Invite(this, data);
|
return new Invite(this, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Remove this in the next major version
|
|
||||||
reddemNitro(code) {
|
|
||||||
process.emitWarning(
|
|
||||||
'This function will no longer be available after a major update. Using .redeemNitro()\nSee here: https://github.com/aiko-chan-ai/discord.js-selfbot-v13/pull/59',
|
|
||||||
'DeprecationWarning',
|
|
||||||
);
|
|
||||||
return this.redeemNitro(code);
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* Get Nitro
|
* Get Nitro
|
||||||
* @param {string<NitroCode>} nitro Nitro Code
|
* @param {string<NitroCode>} nitro Nitro Code
|
||||||
|
@ -162,6 +162,22 @@ class User extends Base {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The presence of this user [v12 Patch]
|
||||||
|
* @type {Presence}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
get presence() {
|
||||||
|
let res;
|
||||||
|
for (const guild of this.client.guilds.cache.map(g => g.presences)) {
|
||||||
|
if (guild.resolve(this.id)) {
|
||||||
|
res = guild.resolve(this.id);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check relationship status
|
* Check relationship status
|
||||||
* @type {Relationship}
|
* @type {Relationship}
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
"array-type": [true, "array"],
|
"array-type": [true, "array"],
|
||||||
"one-line": false,
|
"one-line": false,
|
||||||
"no-any-union": false,
|
"no-any-union": false,
|
||||||
"void-return": false
|
"void-return": false,
|
||||||
|
"ban-ts-ignore": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
typings/enums.d.ts
vendored
2
typings/enums.d.ts
vendored
@ -22,7 +22,7 @@ export const enum stickerAnimationMode {
|
|||||||
NEVER = 2,
|
NEVER = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const enum relationshipsType {
|
export const enum RelationshipTypes {
|
||||||
FRIEND = 1,
|
FRIEND = 1,
|
||||||
BLOCKED = 2,
|
BLOCKED = 2,
|
||||||
INCOMING_REQUEST = 3,
|
INCOMING_REQUEST = 3,
|
||||||
|
166
typings/index.d.ts
vendored
166
typings/index.d.ts
vendored
@ -18,6 +18,7 @@ import {
|
|||||||
underscore,
|
underscore,
|
||||||
userMention,
|
userMention,
|
||||||
} from '@discordjs/builders';
|
} from '@discordjs/builders';
|
||||||
|
import { VoiceConnection } from '@discordjs/voice';
|
||||||
import { Collection } from '@discordjs/collection';
|
import { Collection } from '@discordjs/collection';
|
||||||
import {
|
import {
|
||||||
APIActionRowComponent,
|
APIActionRowComponent,
|
||||||
@ -52,7 +53,6 @@ import {
|
|||||||
RESTPostAPIApplicationCommandsJSONBody,
|
RESTPostAPIApplicationCommandsJSONBody,
|
||||||
Snowflake,
|
Snowflake,
|
||||||
LocalizationMap,
|
LocalizationMap,
|
||||||
LocalizedString,
|
|
||||||
} from 'discord-api-types/v9';
|
} from 'discord-api-types/v9';
|
||||||
import { ChildProcess } from 'node:child_process';
|
import { ChildProcess } from 'node:child_process';
|
||||||
import { EventEmitter } from 'node:events';
|
import { EventEmitter } from 'node:events';
|
||||||
@ -67,7 +67,7 @@ import {
|
|||||||
ApplicationCommandPermissionTypes,
|
ApplicationCommandPermissionTypes,
|
||||||
ApplicationCommandTypes,
|
ApplicationCommandTypes,
|
||||||
ChannelTypes,
|
ChannelTypes,
|
||||||
relationshipsType,
|
RelationshipTypes,
|
||||||
localeSetting,
|
localeSetting,
|
||||||
stickerAnimationMode,
|
stickerAnimationMode,
|
||||||
DMScanLevel,
|
DMScanLevel,
|
||||||
@ -157,7 +157,8 @@ import {
|
|||||||
RawWidgetData,
|
RawWidgetData,
|
||||||
RawWidgetMemberData,
|
RawWidgetMemberData,
|
||||||
} from './rawDataTypes';
|
} from './rawDataTypes';
|
||||||
import { RelationshipTypes } from '../src/util/Constants';
|
// @ts-ignore
|
||||||
|
import DiscordAuthWebsocket from '../src/util/RemoteAuth.js';
|
||||||
|
|
||||||
//#region Classes
|
//#region Classes
|
||||||
|
|
||||||
@ -621,7 +622,7 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
|
|||||||
public fetchPremiumStickerPacks(): Promise<Collection<Snowflake, StickerPack>>;
|
public fetchPremiumStickerPacks(): Promise<Collection<Snowflake, StickerPack>>;
|
||||||
public fetchWebhook(id: Snowflake, token?: string): Promise<Webhook>;
|
public fetchWebhook(id: Snowflake, token?: string): Promise<Webhook>;
|
||||||
public fetchGuildWidget(guild: GuildResolvable): Promise<Widget>;
|
public fetchGuildWidget(guild: GuildResolvable): Promise<Widget>;
|
||||||
public redeemNitro(code: String<NitroCode>): Promise;
|
public redeemNitro(code: string): Promise<void>;
|
||||||
public generateInvite(options?: InviteGenerationOptions): string;
|
public generateInvite(options?: InviteGenerationOptions): string;
|
||||||
public login(token?: string): Promise<string>;
|
public login(token?: string): Promise<string>;
|
||||||
public QRLogin(debug?: boolean): DiscordAuthWebsocket;
|
public QRLogin(debug?: boolean): DiscordAuthWebsocket;
|
||||||
@ -692,7 +693,7 @@ export class ClientUser extends User {
|
|||||||
public setPresence(data: PresenceData): ClientPresence;
|
public setPresence(data: PresenceData): ClientPresence;
|
||||||
public setStatus(status: PresenceStatusData, shardId?: number | number[]): ClientPresence;
|
public setStatus(status: PresenceStatusData, shardId?: number | number[]): ClientPresence;
|
||||||
public setUsername(username: string, password: string): Promise<this>;
|
public setUsername(username: string, password: string): Promise<this>;
|
||||||
public setHypeSquad(type: HypeSquadOptions<number | string>): Promise<void>;
|
public setHypeSquad(type: HypeSquadOptions): Promise<void>;
|
||||||
public setAccentColor(color: ColorResolvable): Promise<this>;
|
public setAccentColor(color: ColorResolvable): Promise<this>;
|
||||||
public setDiscriminator(discriminator: string, password: string): Promise<this>;
|
public setDiscriminator(discriminator: string, password: string): Promise<this>;
|
||||||
public setAboutMe(bio: string): Promise<this>;
|
public setAboutMe(bio: string): Promise<this>;
|
||||||
@ -1059,7 +1060,7 @@ export class Guild extends AnonymousGuild {
|
|||||||
public setIcon(icon: BufferResolvable | Base64Resolvable | null, reason?: string): Promise<Guild>;
|
public setIcon(icon: BufferResolvable | Base64Resolvable | null, reason?: string): Promise<Guild>;
|
||||||
public setName(name: string, reason?: string): Promise<Guild>;
|
public setName(name: string, reason?: string): Promise<Guild>;
|
||||||
public setOwner(owner: GuildMemberResolvable, reason?: string): Promise<Guild>;
|
public setOwner(owner: GuildMemberResolvable, reason?: string): Promise<Guild>;
|
||||||
public setPosition(position: number, type: 'FOLDER' | 'HOME', folderID?: FolderID): Promise<Guild>;
|
public setPosition(position: number, type: 'FOLDER' | 'HOME', folderID?: number): Promise<Guild>;
|
||||||
public setPreferredLocale(preferredLocale: string, reason?: string): Promise<Guild>;
|
public setPreferredLocale(preferredLocale: string, reason?: string): Promise<Guild>;
|
||||||
public setPublicUpdatesChannel(publicUpdatesChannel: TextChannelResolvable | null, reason?: string): Promise<Guild>;
|
public setPublicUpdatesChannel(publicUpdatesChannel: TextChannelResolvable | null, reason?: string): Promise<Guild>;
|
||||||
/** @deprecated Use {@link RoleManager.setPositions} instead */
|
/** @deprecated Use {@link RoleManager.setPositions} instead */
|
||||||
@ -1515,7 +1516,7 @@ export class Invite extends Base {
|
|||||||
public delete(reason?: string): Promise<Invite>;
|
public delete(reason?: string): Promise<Invite>;
|
||||||
public toJSON(): unknown;
|
public toJSON(): unknown;
|
||||||
public toString(): string;
|
public toString(): string;
|
||||||
public acceptInvite(autoVerify?: Boolean<true>): Promise<void>;
|
public acceptInvite(autoVerify?: boolean): Promise<void>;
|
||||||
public static INVITES_PATTERN: RegExp;
|
public static INVITES_PATTERN: RegExp;
|
||||||
public stageInstance: InviteStageInstance | null;
|
public stageInstance: InviteStageInstance | null;
|
||||||
public guildScheduledEvent: GuildScheduledEvent | null;
|
public guildScheduledEvent: GuildScheduledEvent | null;
|
||||||
@ -1665,9 +1666,10 @@ export class Message<Cached extends boolean = boolean> extends Base {
|
|||||||
public inGuild(): this is Message<true> & this;
|
public inGuild(): this is Message<true> & this;
|
||||||
// Added
|
// Added
|
||||||
public markUnread(): Promise<boolean>;
|
public markUnread(): Promise<boolean>;
|
||||||
public clickButton(buttonID: String<MessageButton.customId>): Promise<pending>;
|
public clickButton(buttonID: string): Promise<void>;
|
||||||
public selectMenu(menuID: String<MessageSelectMenu.customId> | options[], options: string[]): Promise<pending>;
|
public selectMenu(menuID: string, options: string[]): Promise<void>;
|
||||||
public contextMenu(botID: DiscordBotID, commandName: String<ApplicationCommand.name>): Promise;
|
public selectMenu(options: string[]): Promise<void>;
|
||||||
|
public contextMenu(botID: Snowflake, commandName: string): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class MessageActionRow<
|
export class MessageActionRow<
|
||||||
@ -1677,6 +1679,7 @@ export class MessageActionRow<
|
|||||||
? APIActionRowComponent<APIModalActionRowComponent>
|
? APIActionRowComponent<APIModalActionRowComponent>
|
||||||
: APIActionRowComponent<APIMessageActionRowComponent>,
|
: APIActionRowComponent<APIMessageActionRowComponent>,
|
||||||
> extends BaseMessageComponent {
|
> extends BaseMessageComponent {
|
||||||
|
// @ts-ignore
|
||||||
public constructor(data?: MessageActionRow<T> | MessageActionRowOptions<U> | V);
|
public constructor(data?: MessageActionRow<T> | MessageActionRowOptions<U> | V);
|
||||||
public type: 'ACTION_ROW';
|
public type: 'ACTION_ROW';
|
||||||
public components: T[];
|
public components: T[];
|
||||||
@ -2057,11 +2060,11 @@ export class PartialGroupDMChannel extends TextBasedChannelMixin(Channel, ['bulk
|
|||||||
private constructor(client: Client, data: RawPartialGroupDMChannelData);
|
private constructor(client: Client, data: RawPartialGroupDMChannelData);
|
||||||
public name: string | null;
|
public name: string | null;
|
||||||
public icon: string | null;
|
public icon: string | null;
|
||||||
public recipients: Collection<User>;
|
public recipients: Collection<Snowflake, User>;
|
||||||
public messages: MessageManager<PartialGroupDMChannel>;
|
public messages: MessageManager;
|
||||||
public invites: Collection<Invite.code, Invite>;
|
public invites: Collection<string, Invite>;
|
||||||
public lastMessageId: Snowflake | null;
|
public lastMessageId: Snowflake | null;
|
||||||
public lastPinTimestamp: String<number> | null;
|
public lastPinTimestamp: number | null;
|
||||||
public owner: User | null;
|
public owner: User | null;
|
||||||
public ownerId: Snowflake | null;
|
public ownerId: Snowflake | null;
|
||||||
public iconURL(options?: StaticImageURLOptions): string | null;
|
public iconURL(options?: StaticImageURLOptions): string | null;
|
||||||
@ -2070,7 +2073,7 @@ export class PartialGroupDMChannel extends TextBasedChannelMixin(Channel, ['bulk
|
|||||||
public setName(name: string): Promise<PartialGroupDMChannel>;
|
public setName(name: string): Promise<PartialGroupDMChannel>;
|
||||||
public setIcon(icon: Base64Resolvable | null): Promise<PartialGroupDMChannel>;
|
public setIcon(icon: Base64Resolvable | null): Promise<PartialGroupDMChannel>;
|
||||||
public getInvite(): Promise<Invite>;
|
public getInvite(): Promise<Invite>;
|
||||||
public fetchInvite(force: boolean): Promise<PartialGroupDMChannel.invites>;
|
public fetchInvite(force: boolean): Promise<Invite>;
|
||||||
public removeInvite(invite: Invite): Promise<PartialGroupDMChannel>;
|
public removeInvite(invite: Invite): Promise<PartialGroupDMChannel>;
|
||||||
public readonly voiceAdapterCreator: InternalDiscordGatewayAdapterCreator;
|
public readonly voiceAdapterCreator: InternalDiscordGatewayAdapterCreator;
|
||||||
public call(options?: object): Promise<VoiceConnection>;
|
public call(options?: object): Promise<VoiceConnection>;
|
||||||
@ -2659,7 +2662,7 @@ export class User extends PartialTextBasedChannel(Base) {
|
|||||||
public banner: string | null | undefined;
|
public banner: string | null | undefined;
|
||||||
public bot: boolean;
|
public bot: boolean;
|
||||||
public readonly createdAt: Date;
|
public readonly createdAt: Date;
|
||||||
public readonly relationships: relationshipsType;
|
public readonly relationships: RelationshipTypes;
|
||||||
public readonly createdTimestamp: number;
|
public readonly createdTimestamp: number;
|
||||||
public discriminator: string;
|
public discriminator: string;
|
||||||
public readonly defaultAvatarURL: string;
|
public readonly defaultAvatarURL: string;
|
||||||
@ -2672,11 +2675,12 @@ export class User extends PartialTextBasedChannel(Base) {
|
|||||||
public readonly tag: string;
|
public readonly tag: string;
|
||||||
public username: string;
|
public username: string;
|
||||||
public readonly note: string | null;
|
public readonly note: string | null;
|
||||||
public readonly connectedAccounts: array<object>;
|
public readonly connectedAccounts: object[];
|
||||||
public readonly premiumSince: Date;
|
public readonly premiumSince: Date;
|
||||||
public readonly premiumGuildSince: Date;
|
public readonly premiumGuildSince: Date;
|
||||||
public readonly bio: string | null;
|
public readonly bio: string | null;
|
||||||
public readonly mutualGuilds: Collection<Snowflake, object>;
|
public readonly mutualGuilds: Collection<Snowflake, object>;
|
||||||
|
public readonly presence: Presence;
|
||||||
public avatarURL(options?: ImageURLOptions): string | null;
|
public avatarURL(options?: ImageURLOptions): string | null;
|
||||||
public bannerURL(options?: ImageURLOptions): string | null;
|
public bannerURL(options?: ImageURLOptions): string | null;
|
||||||
public createDM(force?: boolean): Promise<DMChannel>;
|
public createDM(force?: boolean): Promise<DMChannel>;
|
||||||
@ -3169,7 +3173,8 @@ export class ApplicationCommandManager<
|
|||||||
ApplicationCommandScope = ApplicationCommand<{ guild: GuildResolvable }>,
|
ApplicationCommandScope = ApplicationCommand<{ guild: GuildResolvable }>,
|
||||||
PermissionsOptionsExtras = { guild: GuildResolvable },
|
PermissionsOptionsExtras = { guild: GuildResolvable },
|
||||||
PermissionsGuildType = null,
|
PermissionsGuildType = null,
|
||||||
> extends CachedManager<Snowflake, ApplicationCommandScope, ApplicationCommandResolvable> {
|
> extends CachedManager<Snowflake, ApplicationCommandScope, ApplicationCommandResolvable> {
|
||||||
|
// @ts-ignore
|
||||||
protected constructor(client: Client, iterable?: Iterable<unknown>, user: User);
|
protected constructor(client: Client, iterable?: Iterable<unknown>, user: User);
|
||||||
public permissions: ApplicationCommandPermissionsManager<
|
public permissions: ApplicationCommandPermissionsManager<
|
||||||
{ command?: ApplicationCommandResolvable } & PermissionsOptionsExtras,
|
{ command?: ApplicationCommandResolvable } & PermissionsOptionsExtras,
|
||||||
@ -3306,13 +3311,14 @@ export class ClientUserSettingManager {
|
|||||||
public guildMetadata: Collection<Snowflake, object>;
|
public guildMetadata: Collection<Snowflake, object>;
|
||||||
public disableDMfromServer: Collection<Snowflake, boolean>;
|
public disableDMfromServer: Collection<Snowflake, boolean>;
|
||||||
public fetch(): Promise<RawUserSettingsData>;
|
public fetch(): Promise<RawUserSettingsData>;
|
||||||
public setDisplayCompactMode(value?: boolean): Promise<ClientUserSetting>;
|
public setDisplayCompactMode(value?: boolean): Promise<this>;
|
||||||
public setTheme(value?: 'dark' | 'light'): Promise<ClientUserSetting>;
|
public setTheme(value?: 'dark' | 'light'): Promise<this>;
|
||||||
public setLocale(value: localeSetting): Promise<ClientUserSetting>;
|
public setLocale(value: localeSetting): Promise<this>;
|
||||||
public setCustomStatus(value?: CustomStatusOption): Promise<ClientUserSetting>;
|
// @ts-ignore
|
||||||
public restrictedGuilds(status: boolean): Promise;
|
public setCustomStatus(value?: CustomStatusOption): Promise<this>;
|
||||||
public addRestrictedGuild(guildId: GuildIdResolvable): Promise;
|
public restrictedGuilds(status: boolean): Promise<void>;
|
||||||
public removeRestrictedGuild(guildId: GuildIdResolvable): Promise;
|
public addRestrictedGuild(guildId: GuildResolvable): Promise<void>;
|
||||||
|
public removeRestrictedGuild(guildId: GuildResolvable): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class GuildApplicationCommandManager extends ApplicationCommandManager<ApplicationCommand, {}, Guild> {
|
export class GuildApplicationCommandManager extends ApplicationCommandManager<ApplicationCommand, {}, Guild> {
|
||||||
@ -3634,14 +3640,13 @@ export class UserManager extends CachedManager<Snowflake, User, UserResolvable>
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class RelationshipsManager {
|
export class RelationshipsManager {
|
||||||
private constructor(client: Client, users?: RawRelationship[]);
|
private constructor(client: Client, users?: object[]);
|
||||||
public cache: Collection<Snowflake, relationshipsType>;
|
public cache: Collection<Snowflake, RelationshipTypes>;
|
||||||
public client: Client;
|
public client: Client;
|
||||||
private _setup(users: RawRelationship[]): null;
|
|
||||||
public fetch(user: UserResolvable, options?: BaseFetchOptions): Promise<User>;
|
public fetch(user: UserResolvable, options?: BaseFetchOptions): Promise<User>;
|
||||||
public deleteFriend(user: UserResolvable): Promise<User>;
|
public deleteFriend(user: UserResolvable): Promise<User>;
|
||||||
public deleteBlocked(user: UserResolvable): Promise<User>;
|
public deleteBlocked(user: UserResolvable): Promise<User>;
|
||||||
public sendFriendRequest(username: User.username, discriminator: User.discriminator): Promise<User>;
|
public sendFriendRequest(username: string, discriminator: number): Promise<User>;
|
||||||
public addFriend(user: UserResolvable): Promise<User>;
|
public addFriend(user: UserResolvable): Promise<User>;
|
||||||
public addBlocked(user: UserResolvable): Promise<User>;
|
public addBlocked(user: UserResolvable): Promise<User>;
|
||||||
}
|
}
|
||||||
@ -3935,7 +3940,7 @@ export interface guildSearchInteraction {
|
|||||||
query?: string | null | undefined;
|
query?: string | null | undefined;
|
||||||
limit?: number;
|
limit?: number;
|
||||||
offset?: number;
|
offset?: number;
|
||||||
botID?: UserId[];
|
botID?: Snowflake;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ClientEvents extends BaseClientEvents {
|
export interface ClientEvents extends BaseClientEvents {
|
||||||
@ -4000,7 +4005,7 @@ export interface ClientEvents extends BaseClientEvents {
|
|||||||
roleCreate: [role: Role];
|
roleCreate: [role: Role];
|
||||||
roleDelete: [role: Role];
|
roleDelete: [role: Role];
|
||||||
roleUpdate: [oldRole: Role, newRole: Role];
|
roleUpdate: [oldRole: Role, newRole: Role];
|
||||||
threadCreate: [thread: ThreadChannel];
|
threadCreate: [thread: ThreadChannel, newlyCreated: boolean];
|
||||||
threadDelete: [thread: ThreadChannel];
|
threadDelete: [thread: ThreadChannel];
|
||||||
threadListSync: [threads: Collection<Snowflake, ThreadChannel>];
|
threadListSync: [threads: Collection<Snowflake, ThreadChannel>];
|
||||||
threadMemberUpdate: [oldMember: ThreadMember, newMember: ThreadMember];
|
threadMemberUpdate: [oldMember: ThreadMember, newMember: ThreadMember];
|
||||||
@ -4155,7 +4160,7 @@ export interface RawUserSettingsData {
|
|||||||
allow_accessibility_detection?: boolean;
|
allow_accessibility_detection?: boolean;
|
||||||
animate_emoji?: boolean;
|
animate_emoji?: boolean;
|
||||||
animate_stickers?: number;
|
animate_stickers?: number;
|
||||||
contact_sync_enabled: ?boolean;
|
contact_sync_enabled?: boolean;
|
||||||
convert_emoticons?: boolean;
|
convert_emoticons?: boolean;
|
||||||
custom_status?: { text?: string; expires_at?: string | null; emoji_name?: string; emoji_id?: Snowflake | null };
|
custom_status?: { text?: string; expires_at?: string | null; emoji_name?: string; emoji_id?: Snowflake | null };
|
||||||
default_guilds_restricted?: boolean;
|
default_guilds_restricted?: boolean;
|
||||||
@ -4168,7 +4173,7 @@ export interface RawUserSettingsData {
|
|||||||
friend_source_flags?: { all?: boolean; mutual_friends?: boolean; mututal_guilds?: boolean };
|
friend_source_flags?: { all?: boolean; mutual_friends?: boolean; mututal_guilds?: boolean };
|
||||||
gif_auto_play?: boolean;
|
gif_auto_play?: boolean;
|
||||||
guild_folders?: { id?: Snowflake; guild_ids?: Snowflake[]; name?: string }[];
|
guild_folders?: { id?: Snowflake; guild_ids?: Snowflake[]; name?: string }[];
|
||||||
guild_positions?: T[];
|
guild_positions?: number[];
|
||||||
inline_attachment_media?: boolean;
|
inline_attachment_media?: boolean;
|
||||||
inline_embed_media?: boolean;
|
inline_embed_media?: boolean;
|
||||||
locale?: string;
|
locale?: string;
|
||||||
@ -4588,97 +4593,6 @@ export interface BaseClientEvents {
|
|||||||
invalidRequestWarning: [invalidRequestWarningData: InvalidRequestWarningData];
|
invalidRequestWarning: [invalidRequestWarningData: InvalidRequestWarningData];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ClientEvents extends BaseClientEvents {
|
|
||||||
/** @deprecated See [this issue](https://github.com/discord/discord-api-docs/issues/3690) for more information. */
|
|
||||||
applicationCommandCreate: [command: ApplicationCommand];
|
|
||||||
/** @deprecated See [this issue](https://github.com/discord/discord-api-docs/issues/3690) for more information. */
|
|
||||||
applicationCommandDelete: [command: ApplicationCommand];
|
|
||||||
/** @deprecated See [this issue](https://github.com/discord/discord-api-docs/issues/3690) for more information. */
|
|
||||||
applicationCommandUpdate: [oldCommand: ApplicationCommand | null, newCommand: ApplicationCommand];
|
|
||||||
cacheSweep: [message: string];
|
|
||||||
channelCreate: [channel: NonThreadGuildBasedChannel];
|
|
||||||
channelDelete: [channel: DMChannel | NonThreadGuildBasedChannel];
|
|
||||||
channelPinsUpdate: [channel: TextBasedChannel, date: Date];
|
|
||||||
channelUpdate: [
|
|
||||||
oldChannel: DMChannel | NonThreadGuildBasedChannel,
|
|
||||||
newChannel: DMChannel | NonThreadGuildBasedChannel,
|
|
||||||
];
|
|
||||||
warn: [message: string];
|
|
||||||
emojiCreate: [emoji: GuildEmoji];
|
|
||||||
emojiDelete: [emoji: GuildEmoji];
|
|
||||||
emojiUpdate: [oldEmoji: GuildEmoji, newEmoji: GuildEmoji];
|
|
||||||
error: [error: Error];
|
|
||||||
guildBanAdd: [ban: GuildBan];
|
|
||||||
guildBanRemove: [ban: GuildBan];
|
|
||||||
guildCreate: [guild: Guild];
|
|
||||||
guildDelete: [guild: Guild];
|
|
||||||
guildUnavailable: [guild: Guild];
|
|
||||||
guildIntegrationsUpdate: [guild: Guild];
|
|
||||||
guildMemberAdd: [member: GuildMember];
|
|
||||||
guildMemberAvailable: [member: GuildMember | PartialGuildMember];
|
|
||||||
guildMemberRemove: [member: GuildMember | PartialGuildMember];
|
|
||||||
guildMembersChunk: [
|
|
||||||
members: Collection<Snowflake, GuildMember>,
|
|
||||||
guild: Guild,
|
|
||||||
data: { count: number; index: number; nonce: string | undefined },
|
|
||||||
];
|
|
||||||
guildMemberUpdate: [oldMember: GuildMember | PartialGuildMember, newMember: GuildMember];
|
|
||||||
guildUpdate: [oldGuild: Guild, newGuild: Guild];
|
|
||||||
inviteCreate: [invite: Invite];
|
|
||||||
inviteDelete: [invite: Invite];
|
|
||||||
/** @deprecated Use messageCreate instead */
|
|
||||||
message: [message: Message];
|
|
||||||
messageCreate: [message: Message];
|
|
||||||
messageDelete: [message: Message | PartialMessage];
|
|
||||||
messageReactionRemoveAll: [
|
|
||||||
message: Message | PartialMessage,
|
|
||||||
reactions: Collection<string | Snowflake, MessageReaction>,
|
|
||||||
];
|
|
||||||
messageReactionRemoveEmoji: [reaction: MessageReaction | PartialMessageReaction];
|
|
||||||
messageDeleteBulk: [messages: Collection<Snowflake, Message | PartialMessage>];
|
|
||||||
messageReactionAdd: [reaction: MessageReaction | PartialMessageReaction, user: User | PartialUser];
|
|
||||||
messageReactionRemove: [reaction: MessageReaction | PartialMessageReaction, user: User | PartialUser];
|
|
||||||
messageUpdate: [oldMessage: Message | PartialMessage, newMessage: Message | PartialMessage];
|
|
||||||
presenceUpdate: [oldPresence: Presence | null, newPresence: Presence];
|
|
||||||
ready: [client: Client<true>];
|
|
||||||
invalidated: [];
|
|
||||||
roleCreate: [role: Role];
|
|
||||||
roleDelete: [role: Role];
|
|
||||||
roleUpdate: [oldRole: Role, newRole: Role];
|
|
||||||
threadCreate: [thread: ThreadChannel, newlyCreated: boolean];
|
|
||||||
threadDelete: [thread: ThreadChannel];
|
|
||||||
threadListSync: [threads: Collection<Snowflake, ThreadChannel>];
|
|
||||||
threadMemberUpdate: [oldMember: ThreadMember, newMember: ThreadMember];
|
|
||||||
threadMembersUpdate: [
|
|
||||||
oldMembers: Collection<Snowflake, ThreadMember>,
|
|
||||||
newMembers: Collection<Snowflake, ThreadMember>,
|
|
||||||
];
|
|
||||||
threadUpdate: [oldThread: ThreadChannel, newThread: ThreadChannel];
|
|
||||||
typingStart: [typing: Typing];
|
|
||||||
userUpdate: [oldUser: User | PartialUser, newUser: User];
|
|
||||||
voiceStateUpdate: [oldState: VoiceState, newState: VoiceState];
|
|
||||||
webhookUpdate: [channel: TextChannel | NewsChannel];
|
|
||||||
/** @deprecated Use interactionCreate instead */
|
|
||||||
interaction: [interaction: Interaction];
|
|
||||||
interactionCreate: [interaction: Interaction];
|
|
||||||
shardDisconnect: [closeEvent: CloseEvent, shardId: number];
|
|
||||||
shardError: [error: Error, shardId: number];
|
|
||||||
shardReady: [shardId: number, unavailableGuilds: Set<Snowflake> | undefined];
|
|
||||||
shardReconnecting: [shardId: number];
|
|
||||||
shardResume: [shardId: number, replayedEvents: number];
|
|
||||||
stageInstanceCreate: [stageInstance: StageInstance];
|
|
||||||
stageInstanceUpdate: [oldStageInstance: StageInstance | null, newStageInstance: StageInstance];
|
|
||||||
stageInstanceDelete: [stageInstance: StageInstance];
|
|
||||||
stickerCreate: [sticker: Sticker];
|
|
||||||
stickerDelete: [sticker: Sticker];
|
|
||||||
stickerUpdate: [oldSticker: Sticker, newSticker: Sticker];
|
|
||||||
guildScheduledEventCreate: [guildScheduledEvent: GuildScheduledEvent];
|
|
||||||
guildScheduledEventUpdate: [oldGuildScheduledEvent: GuildScheduledEvent, newGuildScheduledEvent: GuildScheduledEvent];
|
|
||||||
guildScheduledEventDelete: [guildScheduledEvent: GuildScheduledEvent];
|
|
||||||
guildScheduledEventUserAdd: [guildScheduledEvent: GuildScheduledEvent, user: User];
|
|
||||||
guildScheduledEventUserRemove: [guildScheduledEvent: GuildScheduledEvent, user: User];
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ClientFetchInviteOptions {
|
export interface ClientFetchInviteOptions {
|
||||||
guildScheduledEventId?: Snowflake;
|
guildScheduledEventId?: Snowflake;
|
||||||
}
|
}
|
||||||
@ -4703,7 +4617,7 @@ export interface ClientOptions {
|
|||||||
failIfNotExists?: boolean;
|
failIfNotExists?: boolean;
|
||||||
userAgentSuffix?: string[];
|
userAgentSuffix?: string[];
|
||||||
presence?: PresenceData;
|
presence?: PresenceData;
|
||||||
intents: BitFieldResolvable<IntentsString, number>;
|
intents?: BitFieldResolvable<IntentsString, number>;
|
||||||
waitGuildTimeout?: number;
|
waitGuildTimeout?: number;
|
||||||
sweepers?: SweeperOptions;
|
sweepers?: SweeperOptions;
|
||||||
ws?: WebSocketOptions;
|
ws?: WebSocketOptions;
|
||||||
@ -5047,7 +4961,7 @@ export type ExplicitContentFilterLevel = keyof typeof ExplicitContentFilterLevel
|
|||||||
|
|
||||||
export interface FetchApplicationCommandOptions extends BaseFetchOptions {
|
export interface FetchApplicationCommandOptions extends BaseFetchOptions {
|
||||||
guildId?: Snowflake;
|
guildId?: Snowflake;
|
||||||
locale?: LocaleString;
|
locale?: localeSetting;
|
||||||
withLocalizations?: boolean;
|
withLocalizations?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user