From 37bd06e14271aa3ff69389939f27d7814479234d Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 22 Jun 2024 20:41:43 +0200 Subject: [PATCH 01/27] Add local image proxy using sharp/jimp pkgs --- package-lock.json | 764 +++++++++++++++++++++++++++++- package.json | 1 + src/api/Server.ts | 4 +- src/api/middlewares/ImageProxy.ts | 143 ++++++ src/api/middlewares/index.ts | 1 + 5 files changed, 890 insertions(+), 23 deletions(-) create mode 100644 src/api/middlewares/ImageProxy.ts diff --git a/package-lock.json b/package-lock.json index 875aba1b..32582d06 100644 --- a/package-lock.json +++ b/package-lock.json @@ -38,12 +38,10 @@ "morgan": "^1.10.0", "multer": "^1.4.5-lts.1", "murmurhash-js": "^1.0.0", - "mysql": "*", "node-2fa": "^2.0.3", "node-fetch": "^2.6.12", "node-os-utils": "^1.3.7", "nodemailer": "^6.9.4", - "pg": "*", "picocolors": "^1.0.0", "probe-image-size": "^7.2.3", "proxy-agent": "^6.3.0", @@ -85,6 +83,7 @@ }, "optionalDependencies": { "erlpack": "^0.1.4", + "jimp": "^0.22.12", "mysql": "^2.18.1", "nodemailer-mailgun-transport": "^2.1.5", "nodemailer-mailjet-transport": "github:n0script22/nodemailer-mailjet-transport", @@ -1053,6 +1052,455 @@ "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", "dev": true }, + "node_modules/@jimp/bmp": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/bmp/-/bmp-0.22.12.tgz", + "integrity": "sha512-aeI64HD0npropd+AR76MCcvvRaa+Qck6loCOS03CkkxGHN5/r336qTM5HPUdHKMDOGzqknuVPA8+kK1t03z12g==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12", + "bmp-js": "^0.1.0" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/core": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/core/-/core-0.22.12.tgz", + "integrity": "sha512-l0RR0dOPyzMKfjUW1uebzueFEDtCOj9fN6pyTYWWOM/VS4BciXQ1VVrJs8pO3kycGYZxncRKhCoygbNr8eEZQA==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12", + "any-base": "^1.1.0", + "buffer": "^5.2.0", + "exif-parser": "^0.1.12", + "file-type": "^16.5.4", + "isomorphic-fetch": "^3.0.0", + "pixelmatch": "^4.0.2", + "tinycolor2": "^1.6.0" + } + }, + "node_modules/@jimp/core/node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "optional": true, + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/@jimp/custom": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/custom/-/custom-0.22.12.tgz", + "integrity": "sha512-xcmww1O/JFP2MrlGUMd3Q78S3Qu6W3mYTXYuIqFq33EorgYHV/HqymHfXy9GjiCJ7OI+7lWx6nYFOzU7M4rd1Q==", + "optional": true, + "dependencies": { + "@jimp/core": "^0.22.12" + } + }, + "node_modules/@jimp/gif": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/gif/-/gif-0.22.12.tgz", + "integrity": "sha512-y6BFTJgch9mbor2H234VSjd9iwAhaNf/t3US5qpYIs0TSbAvM02Fbc28IaDETj9+4YB4676sz4RcN/zwhfu1pg==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12", + "gifwrap": "^0.10.1", + "omggif": "^1.0.9" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/jpeg": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/jpeg/-/jpeg-0.22.12.tgz", + "integrity": "sha512-Rq26XC/uQWaQKyb/5lksCTCxXhtY01NJeBN+dQv5yNYedN0i7iYu+fXEoRsfaJ8xZzjoANH8sns7rVP4GE7d/Q==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12", + "jpeg-js": "^0.4.4" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-blit": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-blit/-/plugin-blit-0.22.12.tgz", + "integrity": "sha512-xslz2ZoFZOPLY8EZ4dC29m168BtDx95D6K80TzgUi8gqT7LY6CsajWO0FAxDwHz6h0eomHMfyGX0stspBrTKnQ==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-blur": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-blur/-/plugin-blur-0.22.12.tgz", + "integrity": "sha512-S0vJADTuh1Q9F+cXAwFPlrKWzDj2F9t/9JAbUvaaDuivpyWuImEKXVz5PUZw2NbpuSHjwssbTpOZ8F13iJX4uw==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-circle": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-circle/-/plugin-circle-0.22.12.tgz", + "integrity": "sha512-SWVXx1yiuj5jZtMijqUfvVOJBwOifFn0918ou4ftoHgegc5aHWW5dZbYPjvC9fLpvz7oSlptNl2Sxr1zwofjTg==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-color": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-color/-/plugin-color-0.22.12.tgz", + "integrity": "sha512-xImhTE5BpS8xa+mAN6j4sMRWaUgUDLoaGHhJhpC+r7SKKErYDR0WQV4yCE4gP+N0gozD0F3Ka1LUSaMXrn7ZIA==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12", + "tinycolor2": "^1.6.0" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-contain": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-contain/-/plugin-contain-0.22.12.tgz", + "integrity": "sha512-Eo3DmfixJw3N79lWk8q/0SDYbqmKt1xSTJ69yy8XLYQj9svoBbyRpSnHR+n9hOw5pKXytHwUW6nU4u1wegHNoQ==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-blit": ">=0.3.5", + "@jimp/plugin-resize": ">=0.3.5", + "@jimp/plugin-scale": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-cover": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-cover/-/plugin-cover-0.22.12.tgz", + "integrity": "sha512-z0w/1xH/v/knZkpTNx+E8a7fnasQ2wHG5ze6y5oL2dhH1UufNua8gLQXlv8/W56+4nJ1brhSd233HBJCo01BXA==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-crop": ">=0.3.5", + "@jimp/plugin-resize": ">=0.3.5", + "@jimp/plugin-scale": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-crop": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-crop/-/plugin-crop-0.22.12.tgz", + "integrity": "sha512-FNuUN0OVzRCozx8XSgP9MyLGMxNHHJMFt+LJuFjn1mu3k0VQxrzqbN06yIl46TVejhyAhcq5gLzqmSCHvlcBVw==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-displace": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-displace/-/plugin-displace-0.22.12.tgz", + "integrity": "sha512-qpRM8JRicxfK6aPPqKZA6+GzBwUIitiHaZw0QrJ64Ygd3+AsTc7BXr+37k2x7QcyCvmKXY4haUrSIsBug4S3CA==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-dither": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-dither/-/plugin-dither-0.22.12.tgz", + "integrity": "sha512-jYgGdSdSKl1UUEanX8A85v4+QUm+PE8vHFwlamaKk89s+PXQe7eVE3eNeSZX4inCq63EHL7cX580dMqkoC3ZLw==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-fisheye": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-fisheye/-/plugin-fisheye-0.22.12.tgz", + "integrity": "sha512-LGuUTsFg+fOp6KBKrmLkX4LfyCy8IIsROwoUvsUPKzutSqMJnsm3JGDW2eOmWIS/jJpPaeaishjlxvczjgII+Q==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-flip": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-flip/-/plugin-flip-0.22.12.tgz", + "integrity": "sha512-m251Rop7GN8W0Yo/rF9LWk6kNclngyjIJs/VXHToGQ6EGveOSTSQaX2Isi9f9lCDLxt+inBIb7nlaLLxnvHX8Q==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-rotate": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-gaussian": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-gaussian/-/plugin-gaussian-0.22.12.tgz", + "integrity": "sha512-sBfbzoOmJ6FczfG2PquiK84NtVGeScw97JsCC3rpQv1PHVWyW+uqWFF53+n3c8Y0P2HWlUjflEla2h/vWShvhg==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-invert": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-invert/-/plugin-invert-0.22.12.tgz", + "integrity": "sha512-N+6rwxdB+7OCR6PYijaA/iizXXodpxOGvT/smd/lxeXsZ/empHmFFFJ/FaXcYh19Tm04dGDaXcNF/dN5nm6+xQ==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-mask": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-mask/-/plugin-mask-0.22.12.tgz", + "integrity": "sha512-4AWZg+DomtpUA099jRV8IEZUfn1wLv6+nem4NRJC7L/82vxzLCgXKTxvNvBcNmJjT9yS1LAAmiJGdWKXG63/NA==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-normalize": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-normalize/-/plugin-normalize-0.22.12.tgz", + "integrity": "sha512-0So0rexQivnWgnhacX4cfkM2223YdExnJTTy6d06WbkfZk5alHUx8MM3yEzwoCN0ErO7oyqEWRnEkGC+As1FtA==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-print": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-print/-/plugin-print-0.22.12.tgz", + "integrity": "sha512-c7TnhHlxm87DJeSnwr/XOLjJU/whoiKYY7r21SbuJ5nuH+7a78EW1teOaj5gEr2wYEd7QtkFqGlmyGXY/YclyQ==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12", + "load-bmfont": "^1.4.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-blit": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-resize": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-resize/-/plugin-resize-0.22.12.tgz", + "integrity": "sha512-3NyTPlPbTnGKDIbaBgQ3HbE6wXbAlFfxHVERmrbqAi8R3r6fQPxpCauA8UVDnieg5eo04D0T8nnnNIX//i/sXg==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-rotate": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-rotate/-/plugin-rotate-0.22.12.tgz", + "integrity": "sha512-9YNEt7BPAFfTls2FGfKBVgwwLUuKqy+E8bDGGEsOqHtbuhbshVGxN2WMZaD4gh5IDWvR+emmmPPWGgaYNYt1gA==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-blit": ">=0.3.5", + "@jimp/plugin-crop": ">=0.3.5", + "@jimp/plugin-resize": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-scale": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.22.12.tgz", + "integrity": "sha512-dghs92qM6MhHj0HrV2qAwKPMklQtjNpoYgAB94ysYpsXslhRTiPisueSIELRwZGEr0J0VUxpUY7HgJwlSIgGZw==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-resize": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-shadow": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-shadow/-/plugin-shadow-0.22.12.tgz", + "integrity": "sha512-FX8mTJuCt7/3zXVoeD/qHlm4YH2bVqBuWQHXSuBK054e7wFRnRnbSLPUqAwSeYP3lWqpuQzJtgiiBxV3+WWwTg==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-blur": ">=0.3.5", + "@jimp/plugin-resize": ">=0.3.5" + } + }, + "node_modules/@jimp/plugin-threshold": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugin-threshold/-/plugin-threshold-0.22.12.tgz", + "integrity": "sha512-4x5GrQr1a/9L0paBC/MZZJjjgjxLYrqSmWd+e+QfAEPvmRxdRoQ5uKEuNgXnm9/weHQBTnQBQsOY2iFja+XGAw==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-color": ">=0.8.0", + "@jimp/plugin-resize": ">=0.8.0" + } + }, + "node_modules/@jimp/plugins": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/plugins/-/plugins-0.22.12.tgz", + "integrity": "sha512-yBJ8vQrDkBbTgQZLty9k4+KtUQdRjsIDJSPjuI21YdVeqZxYywifHl4/XWILoTZsjTUASQcGoH0TuC0N7xm3ww==", + "optional": true, + "dependencies": { + "@jimp/plugin-blit": "^0.22.12", + "@jimp/plugin-blur": "^0.22.12", + "@jimp/plugin-circle": "^0.22.12", + "@jimp/plugin-color": "^0.22.12", + "@jimp/plugin-contain": "^0.22.12", + "@jimp/plugin-cover": "^0.22.12", + "@jimp/plugin-crop": "^0.22.12", + "@jimp/plugin-displace": "^0.22.12", + "@jimp/plugin-dither": "^0.22.12", + "@jimp/plugin-fisheye": "^0.22.12", + "@jimp/plugin-flip": "^0.22.12", + "@jimp/plugin-gaussian": "^0.22.12", + "@jimp/plugin-invert": "^0.22.12", + "@jimp/plugin-mask": "^0.22.12", + "@jimp/plugin-normalize": "^0.22.12", + "@jimp/plugin-print": "^0.22.12", + "@jimp/plugin-resize": "^0.22.12", + "@jimp/plugin-rotate": "^0.22.12", + "@jimp/plugin-scale": "^0.22.12", + "@jimp/plugin-shadow": "^0.22.12", + "@jimp/plugin-threshold": "^0.22.12", + "timm": "^1.6.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/png": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/png/-/png-0.22.12.tgz", + "integrity": "sha512-Mrp6dr3UTn+aLK8ty/dSKELz+Otdz1v4aAXzV5q53UDD2rbB5joKVJ/ChY310B+eRzNxIovbUF1KVrUsYdE8Hg==", + "optional": true, + "dependencies": { + "@jimp/utils": "^0.22.12", + "pngjs": "^6.0.0" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/tiff": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/tiff/-/tiff-0.22.12.tgz", + "integrity": "sha512-E1LtMh4RyJsoCAfAkBRVSYyZDTtLq9p9LUiiYP0vPtXyxX4BiYBUYihTLSBlCQg5nF2e4OpQg7SPrLdJ66u7jg==", + "optional": true, + "dependencies": { + "utif2": "^4.0.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/types": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/types/-/types-0.22.12.tgz", + "integrity": "sha512-wwKYzRdElE1MBXFREvCto5s699izFHNVvALUv79GXNbsOVqlwlOxlWJ8DuyOGIXoLP4JW/m30YyuTtfUJgMRMA==", + "optional": true, + "dependencies": { + "@jimp/bmp": "^0.22.12", + "@jimp/gif": "^0.22.12", + "@jimp/jpeg": "^0.22.12", + "@jimp/png": "^0.22.12", + "@jimp/tiff": "^0.22.12", + "timm": "^1.6.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" + } + }, + "node_modules/@jimp/utils": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/@jimp/utils/-/utils-0.22.12.tgz", + "integrity": "sha512-yJ5cWUknGnilBq97ZXOyOS0HhsHOyAyjHwYfHxGbSyMTohgQI6sVyE8KPgDwH8HHW/nMKXk8TrSwAE71zt716Q==", + "optional": true, + "dependencies": { + "regenerator-runtime": "^0.13.3" + } + }, + "node_modules/@jimp/utils/node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", + "optional": true + }, "node_modules/@jridgewell/resolve-uri": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", @@ -2640,6 +3088,12 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/any-base": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/any-base/-/any-base-1.1.0.tgz", + "integrity": "sha512-uMgjozySS8adZZYePpaWs8cxB9/kdzmpX6SgJZ+wbz1K5eYk5QMYDVJaZKhxyIHUdnnJkfR7SVgStgH7LkGUyg==", + "optional": true + }, "node_modules/any-promise": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", @@ -2895,6 +3349,12 @@ "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", "optional": true }, + "node_modules/bmp-js": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/bmp-js/-/bmp-js-0.1.0.tgz", + "integrity": "sha512-vHdS19CnY3hwiNdkaqk93DvjVLfbEcI8mys4UjuWrlX1haDmroo8o4xCzh4wD6DGV6HxRCyauwhHRqMTfERtjw==", + "optional": true + }, "node_modules/body-parser": { "version": "1.20.1", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", @@ -2985,6 +3445,15 @@ "ieee754": "^1.2.1" } }, + "node_modules/buffer-equal": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-0.0.1.tgz", + "integrity": "sha512-RgSV6InVQ9ODPdLWJ5UAqBqJBOg370Nz6ZQtRzpt6nUjc8v0St97uJ4PYC6NztqIScrAXafKM3mZPMygSe1ggA==", + "optional": true, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/buffer-equal-constant-time": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", @@ -3623,9 +4092,9 @@ } }, "node_modules/detect-libc": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz", - "integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz", + "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==", "engines": { "node": ">=8" } @@ -3685,6 +4154,12 @@ "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" } }, + "node_modules/dom-walk": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.2.tgz", + "integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==", + "optional": true + }, "node_modules/domelementtype": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", @@ -4133,6 +4608,12 @@ "exif-be-gone": "cli.js" } }, + "node_modules/exif-parser": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/exif-parser/-/exif-parser-0.1.12.tgz", + "integrity": "sha512-c2bQfLNbMzLPmzQuOr8fy0csy84WmwnER81W88DzTp9CYNPJ6yzOj2EZAh9pywYpqHnshVLHQJ8WzldAyfY+Iw==", + "optional": true + }, "node_modules/express": { "version": "4.18.2", "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", @@ -4621,6 +5102,16 @@ "node": ">= 14" } }, + "node_modules/gifwrap": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/gifwrap/-/gifwrap-0.10.1.tgz", + "integrity": "sha512-2760b1vpJHNmLzZ/ubTtNnEx5WApN/PYWJvXvgS+tL1egTTthayFYIQQNi136FLEDcN/IyEY2EcGpIITD6eYUw==", + "optional": true, + "dependencies": { + "image-q": "^4.0.0", + "omggif": "^1.0.10" + } + }, "node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", @@ -4652,6 +5143,16 @@ "node": ">=10.13.0" } }, + "node_modules/global": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/global/-/global-4.4.0.tgz", + "integrity": "sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==", + "optional": true, + "dependencies": { + "min-document": "^2.19.0", + "process": "^0.11.10" + } + }, "node_modules/globals": { "version": "13.24.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", @@ -4947,6 +5448,21 @@ "node": ">= 4" } }, + "node_modules/image-q": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/image-q/-/image-q-4.0.0.tgz", + "integrity": "sha512-PfJGVgIfKQJuq3s0tTDOKtztksibuUEbJQIYT3by6wctQo+Rdlh7ef4evJ5NCdxY4CfMbvFkocEwbl4BF8RlJw==", + "optional": true, + "dependencies": { + "@types/node": "16.9.1" + } + }, + "node_modules/image-q/node_modules/@types/node": { + "version": "16.9.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.9.1.tgz", + "integrity": "sha512-QpLcX9ZSsq3YYUUnD3nFDY8H7wctAhQj/TFKL8Ya8v5fMm3CFXxo8zStsLAl780ltoYoo1WvKUVGBQK+1ifr7g==", + "optional": true + }, "node_modules/image-size": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.0.2.tgz", @@ -5050,6 +5566,12 @@ "node": ">=8" } }, + "node_modules/is-function": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-function/-/is-function-1.0.2.tgz", + "integrity": "sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ==", + "optional": true + }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -5109,6 +5631,34 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "devOptional": true }, + "node_modules/isomorphic-fetch": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz", + "integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==", + "optional": true, + "dependencies": { + "node-fetch": "^2.6.1", + "whatwg-fetch": "^3.4.1" + } + }, + "node_modules/jimp": { + "version": "0.22.12", + "resolved": "https://registry.npmjs.org/jimp/-/jimp-0.22.12.tgz", + "integrity": "sha512-R5jZaYDnfkxKJy1dwLpj/7cvyjxiclxU3F4TrI/J4j2rS0niq6YDUMoPn5hs8GDpO+OZGo7Ky057CRtWesyhfg==", + "optional": true, + "dependencies": { + "@jimp/custom": "^0.22.12", + "@jimp/plugins": "^0.22.12", + "@jimp/types": "^0.22.12", + "regenerator-runtime": "^0.13.3" + } + }, + "node_modules/jimp/node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", + "optional": true + }, "node_modules/jose": { "version": "4.14.4", "resolved": "https://registry.npmjs.org/jose/-/jose-4.14.4.tgz", @@ -5117,6 +5667,12 @@ "url": "https://github.com/sponsors/panva" } }, + "node_modules/jpeg-js": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz", + "integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==", + "optional": true + }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -5279,6 +5835,22 @@ "immediate": "~3.0.5" } }, + "node_modules/load-bmfont": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/load-bmfont/-/load-bmfont-1.4.1.tgz", + "integrity": "sha512-8UyQoYmdRDy81Brz6aLAUhfZLwr5zV0L3taTQ4hju7m6biuwiWiJXjPhBJxbUQJA8PrkvJ/7Enqmwk2sM14soA==", + "optional": true, + "dependencies": { + "buffer-equal": "0.0.1", + "mime": "^1.3.4", + "parse-bmfont-ascii": "^1.0.3", + "parse-bmfont-binary": "^1.0.5", + "parse-bmfont-xml": "^1.1.4", + "phin": "^2.9.1", + "xhr": "^2.0.1", + "xtend": "^4.0.0" + } + }, "node_modules/localforage": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/localforage/-/localforage-1.10.0.tgz", @@ -5518,6 +6090,15 @@ "node": ">=6" } }, + "node_modules/min-document": { + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.19.0.tgz", + "integrity": "sha512-9Wy1B3m3f66bPPmU5hdA4DR4PB2OfDU/+GS3yAB7IQozE3tqXaVv2zOjgla7MEGSRv95+ILmOuvhLkOK6wJtCQ==", + "optional": true, + "dependencies": { + "dom-walk": "^0.1.0" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -6176,6 +6757,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/omggif": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/omggif/-/omggif-1.0.10.tgz", + "integrity": "sha512-LMJTtvgc/nugXj0Vcrrs68Mn2D1r0zf630VNtqtpI1FEO7e+O9FP4gqs9AcnBaSEeoHIPm28u6qgPR0oyEpGSw==", + "optional": true + }, "node_modules/on-finished": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", @@ -6349,6 +6936,12 @@ "integrity": "sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ==", "optional": true }, + "node_modules/pako": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", + "optional": true + }, "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -6361,6 +6954,34 @@ "node": ">=6" } }, + "node_modules/parse-bmfont-ascii": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/parse-bmfont-ascii/-/parse-bmfont-ascii-1.0.6.tgz", + "integrity": "sha512-U4RrVsUFCleIOBsIGYOMKjn9PavsGOXxbvYGtMOEfnId0SVNsgehXh1DxUdVPLoxd5mvcEtvmKs2Mmf0Mpa1ZA==", + "optional": true + }, + "node_modules/parse-bmfont-binary": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/parse-bmfont-binary/-/parse-bmfont-binary-1.0.6.tgz", + "integrity": "sha512-GxmsRea0wdGdYthjuUeWTMWPqm2+FAd4GI8vCvhgJsFnoGhTrLhXDDupwTo7rXVAgaLIGoVHDZS9p/5XbSqeWA==", + "optional": true + }, + "node_modules/parse-bmfont-xml": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/parse-bmfont-xml/-/parse-bmfont-xml-1.1.6.tgz", + "integrity": "sha512-0cEliVMZEhrFDwMh4SxIyVJpqYoOWDJ9P895tFuS+XuNzI5UBmBk5U5O4KuJdTnZpSBI4LFA2+ZiJaiwfSwlMA==", + "optional": true, + "dependencies": { + "xml-parse-from-string": "^1.0.0", + "xml2js": "^0.5.0" + } + }, + "node_modules/parse-headers": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/parse-headers/-/parse-headers-2.0.5.tgz", + "integrity": "sha512-ft3iAoLOB/MlwbNXgzy43SWGP6sQki2jQvAyBg/zDFAgr9bfNWZIUj42Kw2eJIl8kEi4PbgE6U1Zau/HwI75HA==", + "optional": true + }, "node_modules/parse5": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", @@ -6534,6 +7155,13 @@ "split2": "^4.1.0" } }, + "node_modules/phin": { + "version": "2.9.3", + "resolved": "https://registry.npmjs.org/phin/-/phin-2.9.3.tgz", + "integrity": "sha512-CzFr90qM24ju5f88quFC/6qohjC144rehe5n6DH900lgXmUe86+xCKc10ev56gRKC4/BkHUoG4uSiQgBiIXwDA==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "optional": true + }, "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", @@ -6551,6 +7179,27 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pixelmatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/pixelmatch/-/pixelmatch-4.0.2.tgz", + "integrity": "sha512-J8B6xqiO37sU/gkcMglv6h5Jbd9xNER7aHzpfRdNmV4IbQBzBpe4l9XmbG+xPF/znacgu2jfEw+wHffaq/YkXA==", + "optional": true, + "dependencies": { + "pngjs": "^3.0.0" + }, + "bin": { + "pixelmatch": "bin/pixelmatch" + } + }, + "node_modules/pixelmatch/node_modules/pngjs": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-3.4.0.tgz", + "integrity": "sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w==", + "optional": true, + "engines": { + "node": ">=4.0.0" + } + }, "node_modules/pkijs": { "version": "3.0.15", "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-3.0.15.tgz", @@ -6566,6 +7215,15 @@ "node": ">=12.0.0" } }, + "node_modules/pngjs": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-6.0.0.tgz", + "integrity": "sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==", + "optional": true, + "engines": { + "node": ">=12.13.0" + } + }, "node_modules/postgres-array": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", @@ -6727,6 +7385,15 @@ "stream-parser": "~0.3.1" } }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "optional": true, + "engines": { + "node": ">= 0.6.0" + } + }, "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -7090,12 +7757,9 @@ "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" }, "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dependencies": { - "lru-cache": "^6.0.0" - }, + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "bin": { "semver": "bin/semver.js" }, @@ -7103,17 +7767,6 @@ "node": ">=10" } }, - "node_modules/semver/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/send": { "version": "0.18.0", "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", @@ -7865,6 +8518,18 @@ "node": ">=0.2.6" } }, + "node_modules/timm": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/timm/-/timm-1.7.1.tgz", + "integrity": "sha512-IjZc9KIotudix8bMaBW6QvMuq64BrJWFs1+4V0lXwWGQZwH+LnX87doAYhem4caOEusRP9/g6jVDQmZ8XOk1nw==", + "optional": true + }, + "node_modules/tinycolor2": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.6.0.tgz", + "integrity": "sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==", + "optional": true + }, "node_modules/tldts": { "version": "6.0.14", "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.0.14.tgz", @@ -8349,6 +9014,15 @@ "requires-port": "^1.0.0" } }, + "node_modules/utif2": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/utif2/-/utif2-4.1.0.tgz", + "integrity": "sha512-+oknB9FHrJ7oW7A2WZYajOcv4FcDR4CfoGB0dPNfxbi4GO05RRnFmt5oa23+9w32EanrYcSJWspUiJkLMs+37w==", + "optional": true, + "dependencies": { + "pako": "^1.0.11" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -8417,6 +9091,12 @@ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" }, + "node_modules/whatwg-fetch": { + "version": "3.6.20", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz", + "integrity": "sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==", + "optional": true + }, "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", @@ -8507,6 +9187,46 @@ } } }, + "node_modules/xhr": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/xhr/-/xhr-2.6.0.tgz", + "integrity": "sha512-/eCGLb5rxjx5e3mF1A7s+pLlR6CGyqWN91fv1JgER5mVWg1MZmlhBvy9kjcsOdRk8RrIujotWyJamfyrp+WIcA==", + "optional": true, + "dependencies": { + "global": "~4.4.0", + "is-function": "^1.0.1", + "parse-headers": "^2.0.0", + "xtend": "^4.0.0" + } + }, + "node_modules/xml-parse-from-string": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/xml-parse-from-string/-/xml-parse-from-string-1.0.1.tgz", + "integrity": "sha512-ErcKwJTF54uRzzNMXq2X5sMIy88zJvfN2DmdoQvy7PAFJ+tPRU6ydWuOKNMyfmOjdyBQTFREi60s0Y0SyI0G0g==", + "optional": true + }, + "node_modules/xml2js": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", + "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", + "optional": true, + "dependencies": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/xmlbuilder": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "optional": true, + "engines": { + "node": ">=4.0" + } + }, "node_modules/xregexp": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/xregexp/-/xregexp-2.0.0.tgz", diff --git a/package.json b/package.json index ac42c767..7f466e44 100644 --- a/package.json +++ b/package.json @@ -117,6 +117,7 @@ }, "optionalDependencies": { "erlpack": "^0.1.4", + "jimp": "^0.22.12", "mysql": "^2.18.1", "nodemailer-mailgun-transport": "^2.1.5", "nodemailer-mailjet-transport": "github:n0script22/nodemailer-mailjet-transport", diff --git a/src/api/Server.ts b/src/api/Server.ts index 472ab1d6..0f5df490 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts @@ -34,7 +34,7 @@ import "missing-native-js-functions"; import morgan from "morgan"; import path from "path"; import { red } from "picocolors"; -import { Authentication, CORS } from "./middlewares/"; +import { Authentication, CORS, ImageProxy } from "./middlewares/"; import { BodyParser } from "./middlewares/BodyParser"; import { ErrorHandler } from "./middlewares/ErrorHandler"; import { initRateLimits } from "./middlewares/RateLimit"; @@ -137,6 +137,8 @@ export class SpacebarServer extends Server { app.use("/api/v9", api); app.use("/api", api); // allow unversioned requests + app.use("/imageproxy/:hash/:size/:url", ImageProxy); + app.get("/", (req, res) => res.sendFile(path.join(PUBLIC_ASSETS_FOLDER, "index.html")), ); diff --git a/src/api/middlewares/ImageProxy.ts b/src/api/middlewares/ImageProxy.ts new file mode 100644 index 00000000..2fa97660 --- /dev/null +++ b/src/api/middlewares/ImageProxy.ts @@ -0,0 +1,143 @@ +/* + Spacebar: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Spacebar and Spacebar Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +import { Config } from "@spacebar/util"; +import { Request, Response } from "express"; +import { yellow } from "picocolors"; +import crypto from "crypto"; +import fetch from "node-fetch"; + +let sharp: undefined | false | { default: typeof import("sharp") } = undefined; +let Jimp: undefined | false | typeof import("jimp") = undefined; + +const sharpSupported = new Set([ + "image/jpeg", + "image/png", + "image/bmp", + "image/tiff", + "image/gif", + "image/webp", + "image/avif", + "image/svg+xml", +]); +const jimpSupported = new Set([ + "image/jpeg", + "image/png", + "image/bmp", + "image/tiff", + "image/gif", +]); +const resizeSupported = new Set([...sharpSupported, ...jimpSupported]); + +export async function ImageProxy(req: Request, res: Response) { + const path = req.originalUrl.split("/").slice(2); + + const secret = Config.get().security.requestSignature; + + // src/api/util/utility/EmbedHandlers.ts getProxyUrl + const hash = crypto + .createHmac("sha1", secret) + .update(path.slice(1).join("/")) + .digest("base64") + .replace(/\+/g, "-") + .replace(/\//g, "_"); + + try { + if (!crypto.timingSafeEqual(Buffer.from(hash), Buffer.from(path[0]))) throw new Error("Invalid signature"); + } catch { + console.log("Invalid signature, expected " + hash + " got " + path[0]); + res.status(403).send("Invalid signature"); + return; + } + + const abort = new AbortController(); + setTimeout(() => abort.abort(), 5000); + + const request = await fetch(path.slice(2).join("/"), { + headers: { + "User-Agent": "SpacebarImageProxy/1.0.0 (https://spacebar.chat)", + }, + signal: abort.signal, + }).catch((e) => { + if (e.name === "AbortError") res.status(504).send("Request timed out"); + else res.status(500).send("Unable to proxy origin: " + e.message); + }); + if (!request) return; + + if (request.status !== 200) { + res.status(request.status).send("Origin failed to respond: " + request.status + " " + request.statusText); + return; + } + + if (!request.headers.get("Content-Type") || !request.headers.get("Content-Length")) { + res.status(500).send("Origin did not provide a Content-Type or Content-Length header"); + return; + } + + // @ts-expect-error TS doesn't believe that the header cannot be null (it's checked for falsiness above) + if (parseInt(request.headers.get("Content-Length")) > 1024 * 1024 * 10) { + res.status(500).send("Origin provided a Content-Length header that is too large"); + return; + } + + // @ts-expect-error TS doesn't believe that the header cannot be null (it's checked for falsiness above) + let contentType: string = request.headers.get("Content-Type"); + + const arrayBuffer = await request.arrayBuffer(); + let resultBuffer = Buffer.from(arrayBuffer); + + if (/^\d+x\d+$/.test(path[1]) && resizeSupported.has(contentType)) { + if (sharp !== false) { + try { + sharp = await import("sharp"); + } catch (e) { + sharp = false; + } + } + if (sharp === false && Jimp !== false) { + try { + // @ts-expect-error Typings don't fit + Jimp = await import("jimp"); + } catch { + Jimp = false; + console.log(`[ImageProxy] ${yellow("Neither \"sharp\" or \"jimp\" NPM packages are installed, image resizing will be disabled")}`); + } + } + + const [width, height] = path[1].split("x").map((x) => parseInt(x)); + + const buffer = Buffer.from(arrayBuffer); + if (sharp && sharpSupported.has(contentType)) { + resultBuffer = await sharp.default(buffer) + // Sharp doesn't support "scaleToFit" + .resize(width) + .toBuffer(); + } else if (Jimp && jimpSupported.has(contentType)) { + resultBuffer = await Jimp.read(buffer).then((image) => { + contentType = image.getMIME(); + // @ts-expect-error Jimp is defined at this point + return image.scaleToFit(width, height).getBufferAsync(Jimp.AUTO); + }); + } + } + + res.header("Content-Type", contentType); + res.setHeader("Cache-Control", "public, max-age=" + (1000 * 60 * 60 * 24)); + + res.send(resultBuffer); +} diff --git a/src/api/middlewares/index.ts b/src/api/middlewares/index.ts index 6384e1aa..9fd617f6 100644 --- a/src/api/middlewares/index.ts +++ b/src/api/middlewares/index.ts @@ -21,3 +21,4 @@ export * from "./BodyParser"; export * from "./CORS"; export * from "./ErrorHandler"; export * from "./RateLimit"; +export * from "./ImageProxy"; From e90f8e88c0ae44e3183632cce300b07c5cc992f6 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 22 Jun 2024 20:43:54 +0200 Subject: [PATCH 02/27] Run Prettier (tabs -> spaces???) --- src/api/middlewares/ImageProxy.ts | 62 ++++++++++++++++++++----------- 1 file changed, 41 insertions(+), 21 deletions(-) diff --git a/src/api/middlewares/ImageProxy.ts b/src/api/middlewares/ImageProxy.ts index 2fa97660..64d5ddc1 100644 --- a/src/api/middlewares/ImageProxy.ts +++ b/src/api/middlewares/ImageProxy.ts @@ -1,19 +1,19 @@ /* - Spacebar: A FOSS re-implementation and extension of the Discord.com backend. - Copyright (C) 2023 Spacebar and Spacebar Contributors + Spacebar: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Spacebar and Spacebar Contributors - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . */ import { Config } from "@spacebar/util"; @@ -58,7 +58,8 @@ export async function ImageProxy(req: Request, res: Response) { .replace(/\//g, "_"); try { - if (!crypto.timingSafeEqual(Buffer.from(hash), Buffer.from(path[0]))) throw new Error("Invalid signature"); + if (!crypto.timingSafeEqual(Buffer.from(hash), Buffer.from(path[0]))) + throw new Error("Invalid signature"); } catch { console.log("Invalid signature, expected " + hash + " got " + path[0]); res.status(403).send("Invalid signature"); @@ -80,18 +81,30 @@ export async function ImageProxy(req: Request, res: Response) { if (!request) return; if (request.status !== 200) { - res.status(request.status).send("Origin failed to respond: " + request.status + " " + request.statusText); + res.status(request.status).send( + "Origin failed to respond: " + + request.status + + " " + + request.statusText, + ); return; } - if (!request.headers.get("Content-Type") || !request.headers.get("Content-Length")) { - res.status(500).send("Origin did not provide a Content-Type or Content-Length header"); + if ( + !request.headers.get("Content-Type") || + !request.headers.get("Content-Length") + ) { + res.status(500).send( + "Origin did not provide a Content-Type or Content-Length header", + ); return; } // @ts-expect-error TS doesn't believe that the header cannot be null (it's checked for falsiness above) if (parseInt(request.headers.get("Content-Length")) > 1024 * 1024 * 10) { - res.status(500).send("Origin provided a Content-Length header that is too large"); + res.status(500).send( + "Origin provided a Content-Length header that is too large", + ); return; } @@ -115,7 +128,11 @@ export async function ImageProxy(req: Request, res: Response) { Jimp = await import("jimp"); } catch { Jimp = false; - console.log(`[ImageProxy] ${yellow("Neither \"sharp\" or \"jimp\" NPM packages are installed, image resizing will be disabled")}`); + console.log( + `[ImageProxy] ${yellow( + 'Neither "sharp" or "jimp" NPM packages are installed, image resizing will be disabled', + )}`, + ); } } @@ -123,7 +140,8 @@ export async function ImageProxy(req: Request, res: Response) { const buffer = Buffer.from(arrayBuffer); if (sharp && sharpSupported.has(contentType)) { - resultBuffer = await sharp.default(buffer) + resultBuffer = await sharp + .default(buffer) // Sharp doesn't support "scaleToFit" .resize(width) .toBuffer(); @@ -131,13 +149,15 @@ export async function ImageProxy(req: Request, res: Response) { resultBuffer = await Jimp.read(buffer).then((image) => { contentType = image.getMIME(); // @ts-expect-error Jimp is defined at this point - return image.scaleToFit(width, height).getBufferAsync(Jimp.AUTO); + return image + .scaleToFit(width, height) + .getBufferAsync(Jimp.AUTO); }); } } res.header("Content-Type", contentType); - res.setHeader("Cache-Control", "public, max-age=" + (1000 * 60 * 60 * 24)); + res.setHeader("Cache-Control", "public, max-age=" + 1000 * 60 * 60 * 24); res.send(resultBuffer); } From 93bb891d7915639a7e405e1553b3b0ad52d53175 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 22 Jun 2024 20:50:11 +0200 Subject: [PATCH 03/27] Fix @ts-expect-error comment after Prettier --- src/api/middlewares/ImageProxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/middlewares/ImageProxy.ts b/src/api/middlewares/ImageProxy.ts index 64d5ddc1..80a3adcb 100644 --- a/src/api/middlewares/ImageProxy.ts +++ b/src/api/middlewares/ImageProxy.ts @@ -148,9 +148,9 @@ export async function ImageProxy(req: Request, res: Response) { } else if (Jimp && jimpSupported.has(contentType)) { resultBuffer = await Jimp.read(buffer).then((image) => { contentType = image.getMIME(); - // @ts-expect-error Jimp is defined at this point return image .scaleToFit(width, height) + // @ts-expect-error Jimp is defined at this point .getBufferAsync(Jimp.AUTO); }); } From af6e15b9e5467293b8d95d8968429226a98d19f5 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 22 Jun 2024 21:06:08 +0200 Subject: [PATCH 04/27] Prettier stuff -.- --- src/api/middlewares/ImageProxy.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/api/middlewares/ImageProxy.ts b/src/api/middlewares/ImageProxy.ts index 80a3adcb..f642ff27 100644 --- a/src/api/middlewares/ImageProxy.ts +++ b/src/api/middlewares/ImageProxy.ts @@ -148,10 +148,12 @@ export async function ImageProxy(req: Request, res: Response) { } else if (Jimp && jimpSupported.has(contentType)) { resultBuffer = await Jimp.read(buffer).then((image) => { contentType = image.getMIME(); - return image - .scaleToFit(width, height) - // @ts-expect-error Jimp is defined at this point - .getBufferAsync(Jimp.AUTO); + return ( + image + .scaleToFit(width, height) + // @ts-expect-error Jimp is defined at this point + .getBufferAsync(Jimp.AUTO) + ); }); } } From 16f8a1c7ac4eb1dafd571b5b3082f0df129fd39f Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Fri, 28 Jun 2024 10:17:24 +0200 Subject: [PATCH 05/27] Add config value for cache duration --- package-lock.json | 1 + src/api/middlewares/ImageProxy.ts | 9 +++++---- src/util/config/types/CdnConfiguration.ts | 8 +++++--- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 32582d06..a350da90 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,6 +30,7 @@ "i18next-fs-backend": "^2.1.5", "i18next-http-middleware": "^3.3.2", "image-size": "^1.0.2", + "jimp": "^0.22.12", "json-bigint": "^1.0.0", "jsonwebtoken": "^9.0.1", "lambert-server": "^1.2.12", diff --git a/src/api/middlewares/ImageProxy.ts b/src/api/middlewares/ImageProxy.ts index f642ff27..4c324afd 100644 --- a/src/api/middlewares/ImageProxy.ts +++ b/src/api/middlewares/ImageProxy.ts @@ -47,11 +47,9 @@ const resizeSupported = new Set([...sharpSupported, ...jimpSupported]); export async function ImageProxy(req: Request, res: Response) { const path = req.originalUrl.split("/").slice(2); - const secret = Config.get().security.requestSignature; - // src/api/util/utility/EmbedHandlers.ts getProxyUrl const hash = crypto - .createHmac("sha1", secret) + .createHmac("sha1", Config.get().security.requestSignature) .update(path.slice(1).join("/")) .digest("base64") .replace(/\+/g, "-") @@ -159,7 +157,10 @@ export async function ImageProxy(req: Request, res: Response) { } res.header("Content-Type", contentType); - res.setHeader("Cache-Control", "public, max-age=" + 1000 * 60 * 60 * 24); + res.setHeader( + "Cache-Control", + "public, max-age=" + Config.get().cdn.proxyCacheHeaderSeconds, + ); res.send(resultBuffer); } diff --git a/src/util/config/types/CdnConfiguration.ts b/src/util/config/types/CdnConfiguration.ts index 03319081..842cb87c 100644 --- a/src/util/config/types/CdnConfiguration.ts +++ b/src/util/config/types/CdnConfiguration.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -25,4 +25,6 @@ export class CdnConfiguration extends EndpointConfiguration { endpointPublic: string | null = null; endpointPrivate: string | null = null; + + proxyCacheHeaderSeconds: number = 60 * 60 * 24; } From 628b0948651b75918262c4262fda0a4fe58ade36 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Fri, 28 Jun 2024 10:21:32 +0200 Subject: [PATCH 06/27] running prettier for others --- src/util/entities/UserSettings.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/util/entities/UserSettings.ts b/src/util/entities/UserSettings.ts index 0d4b6a7b..6f09c9b3 100644 --- a/src/util/entities/UserSettings.ts +++ b/src/util/entities/UserSettings.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -122,7 +122,6 @@ export class UserSettings extends BaseClassWithoutId { @Column({ nullable: true }) view_nsfw_guilds: boolean = true; - } interface CustomStatus { From 03e150fc2605aa46b54ed69cfc9a3feb02475f5b Mon Sep 17 00:00:00 2001 From: "Emma [it/its]@Rory&" Date: Fri, 28 Jun 2024 12:13:17 +0200 Subject: [PATCH 07/27] Add meta section to nix package, fix nix update script writing to wrong variable in hashes.json --- flake.lock | 12 ++++++------ flake.nix | 12 +++++++++++- hashes.json | 2 +- nix-update.sh | 4 ++-- 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index ae5e8b23..77bf2b86 100644 --- a/flake.lock +++ b/flake.lock @@ -5,11 +5,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1705309234, - "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", "owner": "numtide", "repo": "flake-utils", - "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", "type": "github" }, "original": { @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1708118438, - "narHash": "sha256-kk9/0nuVgA220FcqH/D2xaN6uGyHp/zoxPNUmPCMmEE=", + "lastModified": 1719254875, + "narHash": "sha256-ECni+IkwXjusHsm9Sexdtq8weAq/yUyt1TWIemXt3Ko=", "owner": "nixos", "repo": "nixpkgs", - "rev": "5863c27340ba4de8f83e7e3c023b9599c3cb3c80", + "rev": "2893f56de08021cffd9b6b6dfc70fd9ccd51eb60", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 00a18f64..cc624004 100644 --- a/flake.nix +++ b/flake.nix @@ -13,11 +13,21 @@ inherit system; }; hashesFile = builtins.fromJSON (builtins.readFile ./hashes.json); + lib = pkgs.lib; in rec { packages.default = pkgs.buildNpmPackage { pname = "spacebar-server-ts"; - src = ./.; name = "spacebar-server-ts"; + + meta = with lib; { + description = "Spacebar server, a FOSS reimplementation of the Discord backend."; + homepage = "https://github.com/spacebarchat/server"; + license = licenses.agpl3Plus; + platforms = platforms.all; + mainProgram = "start-bundle"; + }; + + src = ./.; nativeBuildInputs = with pkgs; [ python3 ]; npmDepsHash = hashesFile.npmDepsHash; makeCacheWritable = true; diff --git a/hashes.json b/hashes.json index dd55b81d..bc319094 100644 --- a/hashes.json +++ b/hashes.json @@ -1,3 +1,3 @@ { - "npmDepsHash": "sha256-fZNDN2/fNy6Nu7tbr0RhQ8j4BP7X1Yhrh/fSTH7hbJc=" + "npmDepsHash": "sha256-RxGkjCU9qqqDMjhJ5aEq1w7c7lS4nAp0/3F0zASJQms=" } diff --git a/nix-update.sh b/nix-update.sh index 4413e6e0..a676e294 100755 --- a/nix-update.sh +++ b/nix-update.sh @@ -3,8 +3,8 @@ nix flake update DEPS_HASH=`prefetch-npm-deps package-lock.json` TMPFILE=$(mktemp) -jq '.npm_deps_hash = "'$DEPS_HASH'"' hashes.json > $TMPFILE +jq '.npmDepsHash = "'$DEPS_HASH'"' hashes.json > $TMPFILE mv -- "$TMPFILE" hashes.json nom build .# || exit $? -git add hashes.json flake.lock flake.nix \ No newline at end of file +git add hashes.json flake.lock flake.nix From e069db134f8f75c197fd6df72ee639d1d165f8fc Mon Sep 17 00:00:00 2001 From: "Emma [it/its]@Rory&" Date: Fri, 28 Jun 2024 12:17:35 +0200 Subject: [PATCH 08/27] Add hashes.json to .prettierignore as this is a generated file --- .prettierignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.prettierignore b/.prettierignore index 51116757..9531c159 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,4 +2,5 @@ assets dist node_modules .github -.vscode \ No newline at end of file +.vscode +hashes.json From a987671e4a1249ae23914165c1b3edd0f29d9ffd Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Fri, 28 Jun 2024 12:43:53 +0200 Subject: [PATCH 09/27] "Fix" jimp import typings --- src/api/middlewares/ImageProxy.ts | 21 +++++++++++++++------ src/util/imports/Jimp.ts | 23 +++++++++++++++++++++++ src/util/imports/index.ts | 1 + 3 files changed, 39 insertions(+), 6 deletions(-) create mode 100644 src/util/imports/Jimp.ts diff --git a/src/api/middlewares/ImageProxy.ts b/src/api/middlewares/ImageProxy.ts index 4c324afd..27c69ae2 100644 --- a/src/api/middlewares/ImageProxy.ts +++ b/src/api/middlewares/ImageProxy.ts @@ -16,14 +16,22 @@ along with this program. If not, see . */ -import { Config } from "@spacebar/util"; +import { Config, JimpType } from "@spacebar/util"; import { Request, Response } from "express"; import { yellow } from "picocolors"; import crypto from "crypto"; import fetch from "node-fetch"; let sharp: undefined | false | { default: typeof import("sharp") } = undefined; -let Jimp: undefined | false | typeof import("jimp") = undefined; + +let Jimp: JimpType | undefined = undefined; +try { + Jimp = require("jimp") as JimpType; +} catch { + // empty +} + +let sentImageProxyWarning = false; const sharpSupported = new Set([ "image/jpeg", @@ -112,20 +120,21 @@ export async function ImageProxy(req: Request, res: Response) { const arrayBuffer = await request.arrayBuffer(); let resultBuffer = Buffer.from(arrayBuffer); - if (/^\d+x\d+$/.test(path[1]) && resizeSupported.has(contentType)) { + if (!sentImageProxyWarning && resizeSupported.has(contentType) && /^\d+x\d+$/.test(path[1])) { if (sharp !== false) { try { sharp = await import("sharp"); - } catch (e) { + } catch { sharp = false; } } - if (sharp === false && Jimp !== false) { + + if (sharp === false && !Jimp) { try { // @ts-expect-error Typings don't fit Jimp = await import("jimp"); } catch { - Jimp = false; + sentImageProxyWarning = true; console.log( `[ImageProxy] ${yellow( 'Neither "sharp" or "jimp" NPM packages are installed, image resizing will be disabled', diff --git a/src/util/imports/Jimp.ts b/src/util/imports/Jimp.ts new file mode 100644 index 00000000..c1389e03 --- /dev/null +++ b/src/util/imports/Jimp.ts @@ -0,0 +1,23 @@ +/* + Spacebar: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Spacebar and Spacebar Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +/* eslint-disable @typescript-eslint/no-explicit-any */ + +export type JimpType = { + read: (data: Buffer) => Promise; +}; diff --git a/src/util/imports/index.ts b/src/util/imports/index.ts index 08b870bc..4bc5a6c5 100644 --- a/src/util/imports/index.ts +++ b/src/util/imports/index.ts @@ -18,3 +18,4 @@ export * from "./OrmUtils"; export * from "./Erlpack"; +export * from "./Jimp"; From c135de9c866fd23b862155faf97c5704e9e0d8e6 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Fri, 28 Jun 2024 12:59:13 +0200 Subject: [PATCH 10/27] Fix style + nix? --- package-lock.json | 2 +- src/api/middlewares/ImageProxy.ts | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index a350da90..83d1852b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "i18next-fs-backend": "^2.1.5", "i18next-http-middleware": "^3.3.2", "image-size": "^1.0.2", - "jimp": "^0.22.12", + "jimp": "*", "json-bigint": "^1.0.0", "jsonwebtoken": "^9.0.1", "lambert-server": "^1.2.12", diff --git a/src/api/middlewares/ImageProxy.ts b/src/api/middlewares/ImageProxy.ts index 27c69ae2..4213a409 100644 --- a/src/api/middlewares/ImageProxy.ts +++ b/src/api/middlewares/ImageProxy.ts @@ -26,7 +26,7 @@ let sharp: undefined | false | { default: typeof import("sharp") } = undefined; let Jimp: JimpType | undefined = undefined; try { - Jimp = require("jimp") as JimpType; + Jimp = require("jimp") as JimpType; } catch { // empty } @@ -120,7 +120,11 @@ export async function ImageProxy(req: Request, res: Response) { const arrayBuffer = await request.arrayBuffer(); let resultBuffer = Buffer.from(arrayBuffer); - if (!sentImageProxyWarning && resizeSupported.has(contentType) && /^\d+x\d+$/.test(path[1])) { + if ( + !sentImageProxyWarning && + resizeSupported.has(contentType) && + /^\d+x\d+$/.test(path[1]) + ) { if (sharp !== false) { try { sharp = await import("sharp"); From 0a40776bb3ee02476dbc8a6bc6a198782221799b Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Fri, 28 Jun 2024 13:05:03 +0200 Subject: [PATCH 11/27] Fix build by using ts-ignore --- package-lock.json | 2 +- src/api/middlewares/ImageProxy.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 83d1852b..a350da90 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "i18next-fs-backend": "^2.1.5", "i18next-http-middleware": "^3.3.2", "image-size": "^1.0.2", - "jimp": "*", + "jimp": "^0.22.12", "json-bigint": "^1.0.0", "jsonwebtoken": "^9.0.1", "lambert-server": "^1.2.12", diff --git a/src/api/middlewares/ImageProxy.ts b/src/api/middlewares/ImageProxy.ts index 4213a409..537c5da1 100644 --- a/src/api/middlewares/ImageProxy.ts +++ b/src/api/middlewares/ImageProxy.ts @@ -135,7 +135,8 @@ export async function ImageProxy(req: Request, res: Response) { if (sharp === false && !Jimp) { try { - // @ts-expect-error Typings don't fit + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore Typings don't fit Jimp = await import("jimp"); } catch { sentImageProxyWarning = true; From 5679318be0d4bc96002864f21be1b966d578a567 Mon Sep 17 00:00:00 2001 From: Cyber Date: Sun, 18 Aug 2024 11:17:19 +0200 Subject: [PATCH 12/27] feat: message pinned message --- src/api/routes/channels/#channel_id/pins.ts | 33 ++++++++++++++++----- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/src/api/routes/channels/#channel_id/pins.ts b/src/api/routes/channels/#channel_id/pins.ts index 1e1da018..9a806b5a 100644 --- a/src/api/routes/channels/#channel_id/pins.ts +++ b/src/api/routes/channels/#channel_id/pins.ts @@ -1,23 +1,24 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ import { route } from "@spacebar/api"; import { + Channel, ChannelPinsUpdateEvent, Config, DiscordApiErrors, @@ -77,6 +78,20 @@ router.put( last_pin_timestamp: undefined, }, } as ChannelPinsUpdateEvent), + + Message.create({ + type: 6, + embeds: [], + reactions: [], + channel_id: message.channel_id, + guild_id: message.guild_id, + author_id: req.user_id, + message_reference: { + message_id: message.id, + channel_id: message.channel_id, + guild_id: message.guild_id, + }, + }).save(), ]); res.sendStatus(204); @@ -99,27 +114,31 @@ router.delete( async (req: Request, res: Response) => { const { channel_id, message_id } = req.params; + const channel = await Channel.findOneOrFail({ + where: { id: channel_id }, + }); + if (channel.guild_id) req.permission?.hasThrow("MANAGE_MESSAGES"); + const message = await Message.findOneOrFail({ where: { id: message_id }, }); - - if (message.guild_id) req.permission?.hasThrow("MANAGE_MESSAGES"); - message.pinned = false; await Promise.all([ message.save(), + emitEvent({ event: "MESSAGE_UPDATE", channel_id, data: message, } as MessageUpdateEvent), + emitEvent({ event: "CHANNEL_PINS_UPDATE", channel_id, data: { channel_id, - guild_id: message.guild_id, + guild_id: channel.guild_id, last_pin_timestamp: undefined, }, } as ChannelPinsUpdateEvent), From 7853ad3acf8f79d904a808382aa4ccc6d5df78fd Mon Sep 17 00:00:00 2001 From: Cyber Date: Sun, 18 Aug 2024 11:31:15 +0200 Subject: [PATCH 13/27] fix: update the code with latest commit --- src/api/routes/channels/#channel_id/pins.ts | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/api/routes/channels/#channel_id/pins.ts b/src/api/routes/channels/#channel_id/pins.ts index 9a806b5a..7b2236e8 100644 --- a/src/api/routes/channels/#channel_id/pins.ts +++ b/src/api/routes/channels/#channel_id/pins.ts @@ -1,24 +1,23 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ import { route } from "@spacebar/api"; import { - Channel, ChannelPinsUpdateEvent, Config, DiscordApiErrors, @@ -114,31 +113,27 @@ router.delete( async (req: Request, res: Response) => { const { channel_id, message_id } = req.params; - const channel = await Channel.findOneOrFail({ - where: { id: channel_id }, - }); - if (channel.guild_id) req.permission?.hasThrow("MANAGE_MESSAGES"); - const message = await Message.findOneOrFail({ where: { id: message_id }, }); + + if (message.guild_id) req.permission?.hasThrow("MANAGE_MESSAGES"); + message.pinned = false; await Promise.all([ message.save(), - emitEvent({ event: "MESSAGE_UPDATE", channel_id, data: message, } as MessageUpdateEvent), - emitEvent({ event: "CHANNEL_PINS_UPDATE", channel_id, data: { channel_id, - guild_id: channel.guild_id, + guild_id: message.guild_id, last_pin_timestamp: undefined, }, } as ChannelPinsUpdateEvent), From 917f394cc562bbf5c23b8a14ee0c8d70783bc29d Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sun, 18 Aug 2024 12:05:50 +0200 Subject: [PATCH 14/27] Consistent widget disabled error --- src/api/routes/guilds/#guild_id/widget.json.ts | 18 ++++++++++++------ src/api/routes/guilds/#guild_id/widget.png.ts | 10 +++++----- src/util/util/Constants.ts | 2 +- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/api/routes/guilds/#guild_id/widget.json.ts b/src/api/routes/guilds/#guild_id/widget.json.ts index 39f49804..eb2dd102 100644 --- a/src/api/routes/guilds/#guild_id/widget.json.ts +++ b/src/api/routes/guilds/#guild_id/widget.json.ts @@ -1,25 +1,31 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ import { random, route } from "@spacebar/api"; -import { Channel, Guild, Invite, Member, Permissions } from "@spacebar/util"; +import { + Channel, + DiscordApiErrors, + Guild, + Invite, + Member, + Permissions, +} from "@spacebar/util"; import { Request, Response, Router } from "express"; -import { HTTPError } from "lambert-server"; const router: Router = Router(); @@ -48,7 +54,7 @@ router.get( const { guild_id } = req.params; const guild = await Guild.findOneOrFail({ where: { id: guild_id } }); - if (!guild.widget_enabled) throw new HTTPError("Widget Disabled", 404); + if (!guild.widget_enabled) throw DiscordApiErrors.EMBED_DISABLED; // Fetch existing widget invite for widget channel let invite = await Invite.findOne({ diff --git a/src/api/routes/guilds/#guild_id/widget.png.ts b/src/api/routes/guilds/#guild_id/widget.png.ts index c9ba8afc..f0f94ea0 100644 --- a/src/api/routes/guilds/#guild_id/widget.png.ts +++ b/src/api/routes/guilds/#guild_id/widget.png.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -19,7 +19,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import { route } from "@spacebar/api"; -import { Guild } from "@spacebar/util"; +import { DiscordApiErrors, Guild } from "@spacebar/util"; import { Request, Response, Router } from "express"; import fs from "fs"; import { HTTPError } from "lambert-server"; @@ -48,7 +48,7 @@ router.get( const { guild_id } = req.params; const guild = await Guild.findOneOrFail({ where: { id: guild_id } }); - if (!guild.widget_enabled) throw new HTTPError("Unknown Guild", 404); + if (!guild.widget_enabled) throw DiscordApiErrors.EMBED_DISABLED; // Fetch guild information const icon = guild.icon; diff --git a/src/util/util/Constants.ts b/src/util/util/Constants.ts index a6caae00..34e925e5 100644 --- a/src/util/util/Constants.ts +++ b/src/util/util/Constants.ts @@ -812,7 +812,7 @@ export const DiscordApiErrors = { "Cannot execute action on a DM channel", 50003, ), - EMBED_DISABLED: new ApiError("Guild widget disabled", 50004), + EMBED_DISABLED: new ApiError("Widget Disabled", 50004), CANNOT_EDIT_MESSAGE_BY_OTHER: new ApiError( "Cannot edit a message authored by another user", 50005, From a401f63318ededb7a20c88dc5a06a7dd73f27076 Mon Sep 17 00:00:00 2001 From: Cyber Date: Sun, 18 Aug 2024 12:08:04 +0200 Subject: [PATCH 15/27] fix: message timestamp --- src/api/routes/channels/#channel_id/pins.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/routes/channels/#channel_id/pins.ts b/src/api/routes/channels/#channel_id/pins.ts index 7b2236e8..b6bb66b9 100644 --- a/src/api/routes/channels/#channel_id/pins.ts +++ b/src/api/routes/channels/#channel_id/pins.ts @@ -79,6 +79,7 @@ router.put( } as ChannelPinsUpdateEvent), Message.create({ + timestamp: new Date(), type: 6, embeds: [], reactions: [], From c505db07236e9c786b8540d6ef80604ff3003f22 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:28:24 +0200 Subject: [PATCH 16/27] Fix widget.png guild icon loading --- src/api/routes/guilds/#guild_id/widget.png.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/api/routes/guilds/#guild_id/widget.png.ts b/src/api/routes/guilds/#guild_id/widget.png.ts index c9ba8afc..271728a4 100644 --- a/src/api/routes/guilds/#guild_id/widget.png.ts +++ b/src/api/routes/guilds/#guild_id/widget.png.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -24,6 +24,7 @@ import { Request, Response, Router } from "express"; import fs from "fs"; import { HTTPError } from "lambert-server"; import path from "path"; +import { storage } from "../../../../cdn/util/Storage"; const router: Router = Router(); @@ -51,7 +52,7 @@ router.get( if (!guild.widget_enabled) throw new HTTPError("Unknown Guild", 404); // Fetch guild information - const icon = guild.icon; + const icon = "avatars/" + guild_id + "/" + guild.icon; const name = guild.name; const presence = guild.presence_count + " ONLINE"; @@ -69,8 +70,7 @@ router.get( } // Setup canvas - const { createCanvas } = require("canvas"); - const { loadImage } = require("canvas"); + const { createCanvas, loadImage } = require("canvas"); const sizeOf = require("image-size"); // TODO: Widget style templates need Spacebar branding @@ -211,8 +211,8 @@ async function drawIcon( scale: number, icon: string, ) { - const img = new (require("canvas").Image)(); - img.src = icon; + const { loadImage } = require("canvas"); + const img = await loadImage(await storage.get(icon)); // Do some canvas clipping magic! canvas.save(); From 39e3b5ad7a8eb8f33d3d2278ba70c3747affd4ee Mon Sep 17 00:00:00 2001 From: Cyber Date: Sun, 18 Aug 2024 13:32:19 +0200 Subject: [PATCH 17/27] feat: emit `MESSAGE_CREATE` --- src/api/routes/channels/#channel_id/pins.ts | 45 ++++++++++++++------- 1 file changed, 31 insertions(+), 14 deletions(-) diff --git a/src/api/routes/channels/#channel_id/pins.ts b/src/api/routes/channels/#channel_id/pins.ts index b6bb66b9..d43db6ec 100644 --- a/src/api/routes/channels/#channel_id/pins.ts +++ b/src/api/routes/channels/#channel_id/pins.ts @@ -23,7 +23,9 @@ import { DiscordApiErrors, emitEvent, Message, + MessageCreateEvent, MessageUpdateEvent, + User, } from "@spacebar/util"; import { Request, Response, Router } from "express"; @@ -61,6 +63,30 @@ router.put( message.pinned = true; + const author = await User.getPublicUser(req.user_id); + + const systemPinMessage = Message.create({ + timestamp: new Date(), + type: 6, + guild_id: message.guild_id, + channel_id: message.channel_id, + author, + message_reference: { + message_id: message.id, + channel_id: message.channel_id, + guild_id: message.guild_id, + }, + reactions: [], + attachments: [], + embeds: [], + sticker_items: [], + edited_timestamp: undefined, + mentions: [], + mention_channels: [], + mention_roles: [], + mention_everyone: false, + }); + await Promise.all([ message.save(), emitEvent({ @@ -77,21 +103,12 @@ router.put( last_pin_timestamp: undefined, }, } as ChannelPinsUpdateEvent), - - Message.create({ - timestamp: new Date(), - type: 6, - embeds: [], - reactions: [], + systemPinMessage.save(), + emitEvent({ + event: "MESSAGE_CREATE", channel_id: message.channel_id, - guild_id: message.guild_id, - author_id: req.user_id, - message_reference: { - message_id: message.id, - channel_id: message.channel_id, - guild_id: message.guild_id, - }, - }).save(), + data: systemPinMessage, + } as MessageCreateEvent), ]); res.sendStatus(204); From c9a51cfd179270775f631a6139c87d271bab3a66 Mon Sep 17 00:00:00 2001 From: "Emma [it/its]@Rory&" Date: Sun, 18 Aug 2024 18:54:51 +0200 Subject: [PATCH 18/27] Fix .DS_Store ignore, add gitattributes for nix/scripts --- .gitattributes | 4 ++++ .gitignore | 4 ++-- src/webrtc/.DS_Store | Bin 6148 -> 0 bytes 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .gitattributes delete mode 100644 src/webrtc/.DS_Store diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..5859d46d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +* text=auto +*.sh -crlf +*.nix -crlf +.husky/pre-commit -crlf \ No newline at end of file diff --git a/.gitignore b/.gitignore index e62c03d6..0fcd6d2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -.DS_STORE +**/.DS_STORE db/ dist/ node_modules @@ -19,4 +19,4 @@ build *.tmp tmp/ dump/ -result +result \ No newline at end of file diff --git a/src/webrtc/.DS_Store b/src/webrtc/.DS_Store deleted file mode 100644 index bfb0a4165ee92c5850a98ab16b2c02a383ec7a7e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKJ5Iwu5S<||EYYN-px6^2asv~Y6XXKOiGU)JBM`kiI1IPo2AqgDAHb1CN(y)* z%|7qUyj}Sf9*>CV@@caWnTtpbHeE23 zRDcRlfiDH@`%vJ9P2v#fpAIZO0s!qd-VM(_O8|=nfKB2MhzLxB3Jj{|h@nA8ykuRI zI0Ob=)NjT)d9&t(qJBH##mhyTK(17P3LGjhi|yR{|26!F`Tvl_9TlJge@X$Z+Eu&6 zD`jt;yqxvg0>6QO8fv{9i??E+w_ZG%D~L3VZ+r CM Date: Sun, 18 Aug 2024 18:57:19 +0200 Subject: [PATCH 19/27] Update nix inputs --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 29505fc3..42952374 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1723362943, - "narHash": "sha256-dFZRVSgmJkyM0bkPpaYRtG/kRMRTorUIDj8BxoOt1T4=", + "lastModified": 1723637854, + "narHash": "sha256-med8+5DSWa2UnOqtdICndjDAEjxr5D7zaIiK4pn0Q7c=", "owner": "nixos", "repo": "nixpkgs", - "rev": "a58bc8ad779655e790115244571758e8de055e3d", + "rev": "c3aa7b8938b17aebd2deecf7be0636000d62a2b9", "type": "github" }, "original": { From e2d3cff264585270ad9b0fb4e425c00a6006edf1 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sun, 18 Aug 2024 18:59:09 +0200 Subject: [PATCH 20/27] update nix cache/deps/flake --- flake.lock | 6 +++--- hashes.json | 2 +- nix-update.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 29505fc3..42952374 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1723362943, - "narHash": "sha256-dFZRVSgmJkyM0bkPpaYRtG/kRMRTorUIDj8BxoOt1T4=", + "lastModified": 1723637854, + "narHash": "sha256-med8+5DSWa2UnOqtdICndjDAEjxr5D7zaIiK4pn0Q7c=", "owner": "nixos", "repo": "nixpkgs", - "rev": "a58bc8ad779655e790115244571758e8de055e3d", + "rev": "c3aa7b8938b17aebd2deecf7be0636000d62a2b9", "type": "github" }, "original": { diff --git a/hashes.json b/hashes.json index bc1807d4..2f3e1cfb 100644 --- a/hashes.json +++ b/hashes.json @@ -1,3 +1,3 @@ { - "npmDepsHash": "sha256-kdS1SwcBu6Dor92iO1ickLgz0T5UL16nyA49xXGajf4=" + "npmDepsHash": "sha256-q1Q7rpSzfiRvrkoDPER9wjBOzZ5Bn5B+d41MFssM7nU=" } diff --git a/nix-update.sh b/nix-update.sh index a676e294..05d6d3d7 100755 --- a/nix-update.sh +++ b/nix-update.sh @@ -1,10 +1,10 @@ #!/usr/bin/env nix-shell #!nix-shell -i "bash -x" -p bash prefetch-npm-deps jq git nix-output-monitor -nix flake update +nix flake update --extra-experimental-features 'nix-command flakes' DEPS_HASH=`prefetch-npm-deps package-lock.json` TMPFILE=$(mktemp) jq '.npmDepsHash = "'$DEPS_HASH'"' hashes.json > $TMPFILE mv -- "$TMPFILE" hashes.json -nom build .# || exit $? +nom build .# --extra-experimental-features 'nix-command flakes' || exit $? git add hashes.json flake.lock flake.nix From 0cb0b9d2fe0c22d0fd575d715e1897807779679b Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sun, 18 Aug 2024 19:16:16 +0200 Subject: [PATCH 21/27] update deps so nix hashes.json is correct? --- hashes.json | 2 +- package-lock.json | 238 +++++++++++++++++++++++----------------------- 2 files changed, 121 insertions(+), 119 deletions(-) diff --git a/hashes.json b/hashes.json index 6883eafd..ffba8089 100644 --- a/hashes.json +++ b/hashes.json @@ -1,3 +1,3 @@ { - "npmDepsHash": "sha256-q1Q7rpSzfiRvrkoDPER9wjBOzZ5Bn5B+d41MFssM7nU=" + "npmDepsHash": "sha256-9Nf/61L6pX6vrWWYPV7hy5/Cj3bWgTd6Ed8qNCQfuLs=" } diff --git a/package-lock.json b/package-lock.json index 9f77c385..055d2a1a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,28 +10,28 @@ "hasInstallScript": true, "license": "AGPL-3.0-only", "dependencies": { - "@aws-sdk/client-s3": "^3.631.0", + "@aws-sdk/client-s3": "^3.629.0", "@sentry/integrations": "^7.66.0", - "@sentry/node": "^7.119.0", + "@sentry/node": "^7.66.0", "ajv": "8.6.2", "ajv-formats": "2.1.1", - "amqplib": "^0.10.4", - "bcrypt": "^5.1.1", + "amqplib": "^0.10.3", + "bcrypt": "^5.1.0", "body-parser": "1.20.1", - "cheerio": "^1.0.0", + "cheerio": "^1.0.0-rc.12", "cookie-parser": "^1.4.6", - "dotenv": "^16.4.5", - "exif-be-gone": "^1.5.1", + "dotenv": "^16.3.1", + "exif-be-gone": "^1.3.2", "fast-zlib": "^2.0.1", - "fido2-lib": "^3.5.3", + "fido2-lib": "^3.4.1", "file-type": "~16.5.4", "form-data": "^4.0.0", "i18next": "^21.10.0", - "i18next-fs-backend": "^2.3.2", - "i18next-http-middleware": "^3.6.0", - "image-size": "^1.1.1", + "i18next-fs-backend": "^2.1.5", + "i18next-http-middleware": "^3.3.2", + "image-size": "^1.0.2", "json-bigint": "^1.0.0", - "jsonwebtoken": "^9.0.2", + "jsonwebtoken": "^9.0.1", "lambert-server": "^1.2.12", "missing-native-js-functions": "^1.4.3", "module-alias": "^2.2.3", @@ -39,46 +39,46 @@ "multer": "^1.4.5-lts.1", "murmurhash-js": "^1.0.0", "node-2fa": "^2.0.3", - "node-fetch": "^2.7.0", + "node-fetch": "^2.6.12", "node-os-utils": "^1.3.7", "nodemailer": "^6.9.14", - "picocolors": "^1.0.1", + "picocolors": "^1.0.0", "probe-image-size": "^7.2.3", - "proxy-agent": "^6.4.0", - "reflect-metadata": "^0.1.14", - "ts-node": "^10.9.2", - "tslib": "^2.6.3", - "typeorm": "^0.3.20", + "proxy-agent": "^6.3.0", + "reflect-metadata": "^0.1.13", + "ts-node": "^10.9.1", + "tslib": "^2.6.1", + "typeorm": "^0.3.17", "typescript-json-schema": "^0.50.1", - "wretch": "^2.9.0", - "ws": "^8.18.0" + "wretch": "^2.6.0", + "ws": "^8.17.1" }, "devDependencies": { "@types/amqplib": "^0.8.2", - "@types/bcrypt": "^5.0.2", - "@types/body-parser": "^1.19.5", - "@types/cookie-parser": "^1.4.7", - "@types/express": "^4.17.21", - "@types/i18next-node-fs-backend": "^2.1.5", - "@types/json-bigint": "^1.0.4", - "@types/jsonwebtoken": "^9.0.6", - "@types/morgan": "^1.9.9", - "@types/multer": "^1.4.11", - "@types/murmurhash-js": "^1.0.6", - "@types/node": "^18.19.44", - "@types/node-fetch": "^2.6.11", - "@types/node-os-utils": "^1.3.4", - "@types/nodemailer": "^6.4.15", - "@types/probe-image-size": "^7.2.5", + "@types/bcrypt": "^5.0.0", + "@types/body-parser": "^1.19.2", + "@types/cookie-parser": "^1.4.3", + "@types/express": "^4.17.17", + "@types/i18next-node-fs-backend": "^2.1.2", + "@types/json-bigint": "^1.0.1", + "@types/jsonwebtoken": "^9.0.2", + "@types/morgan": "^1.9.4", + "@types/multer": "^1.4.7", + "@types/murmurhash-js": "^1.0.4", + "@types/node": "^18.17.3", + "@types/node-fetch": "^2.6.4", + "@types/node-os-utils": "^1.3.1", + "@types/nodemailer": "^6.4.9", + "@types/probe-image-size": "^7.2.0", "@types/sharp": "^0.31.1", - "@types/ws": "^8.5.12", + "@types/ws": "^8.5.5", "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.21.0", - "eslint": "^8.57.0", + "eslint": "^8.56.0", "express": "^4.19.2", "husky": "^8.0.3", "prettier": "^2.8.8", - "pretty-quick": "^3.3.1", + "pretty-quick": "^3.1.3", "typescript": "^4.9.5" }, "optionalDependencies": { @@ -88,8 +88,8 @@ "nodemailer-mailgun-transport": "^2.1.5", "nodemailer-mailjet-transport": "github:n0script22/nodemailer-mailjet-transport", "nodemailer-sendgrid-transport": "github:Maria-Golomb/nodemailer-sendgrid-transport", - "pg": "^8.12.0", - "sqlite3": "^5.1.7" + "pg": "^8.11.3", + "sqlite3": "^5.1.6" } }, "node_modules/@acuminous/bitsyntax": { @@ -292,17 +292,17 @@ } }, "node_modules/@aws-sdk/client-s3": { - "version": "3.631.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.631.0.tgz", - "integrity": "sha512-VBZoG6oMMsL5zOvO8Wxxcpv4T/qmQiTv58C+7c4zaHsIM2lCzQsU042XwH/jenqPsse1FTM45HnanRDOLv99+w==", + "version": "3.633.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.633.0.tgz", + "integrity": "sha512-KPwNGlZlCRUADNTvwPJmvDvlh8N/jxjcv5e71M/mWxLXwSPdlHlRjVSBL1/CPSXUr86XRAsPL+BCRkdiytUhbg==", "dependencies": { "@aws-crypto/sha1-browser": "5.2.0", "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.631.0", - "@aws-sdk/client-sts": "3.631.0", + "@aws-sdk/client-sso-oidc": "3.632.0", + "@aws-sdk/client-sts": "3.632.0", "@aws-sdk/core": "3.629.0", - "@aws-sdk/credential-provider-node": "3.631.0", + "@aws-sdk/credential-provider-node": "3.632.0", "@aws-sdk/middleware-bucket-endpoint": "3.620.0", "@aws-sdk/middleware-expect-continue": "3.620.0", "@aws-sdk/middleware-flexible-checksums": "3.620.0", @@ -310,13 +310,13 @@ "@aws-sdk/middleware-location-constraint": "3.609.0", "@aws-sdk/middleware-logger": "3.609.0", "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-sdk-s3": "3.629.0", + "@aws-sdk/middleware-sdk-s3": "3.633.0", "@aws-sdk/middleware-ssec": "3.609.0", - "@aws-sdk/middleware-user-agent": "3.631.0", + "@aws-sdk/middleware-user-agent": "3.632.0", "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/signature-v4-multi-region": "3.629.0", + "@aws-sdk/signature-v4-multi-region": "3.633.0", "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.631.0", + "@aws-sdk/util-endpoints": "3.632.0", "@aws-sdk/util-user-agent-browser": "3.609.0", "@aws-sdk/util-user-agent-node": "3.614.0", "@aws-sdk/xml-builder": "3.609.0", @@ -360,9 +360,9 @@ } }, "node_modules/@aws-sdk/client-sso": { - "version": "3.631.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.631.0.tgz", - "integrity": "sha512-tpXRQMbbTsKED6GGF0rZbg9Nr0DRCWImopX2lVh4deIeHQfNxeOtq2brqDWiPD593I190xeL/HMChSOmvDXNAw==", + "version": "3.632.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.632.0.tgz", + "integrity": "sha512-iYWHiKBz44m3chCFvtvHnvCpL2rALzyr1e6tOZV3dLlOKtQtDUlPy6OtnXDu4y+wyJCniy8ivG3+LAe4klzn1Q==", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", @@ -370,10 +370,10 @@ "@aws-sdk/middleware-host-header": "3.620.0", "@aws-sdk/middleware-logger": "3.609.0", "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.631.0", + "@aws-sdk/middleware-user-agent": "3.632.0", "@aws-sdk/region-config-resolver": "3.614.0", "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.631.0", + "@aws-sdk/util-endpoints": "3.632.0", "@aws-sdk/util-user-agent-browser": "3.609.0", "@aws-sdk/util-user-agent-node": "3.614.0", "@smithy/config-resolver": "^3.0.5", @@ -408,21 +408,21 @@ } }, "node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.631.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.631.0.tgz", - "integrity": "sha512-afJAssIvsHibVq65qO3Q31NCfSTsPEnyr+PT80uGVAkKev1PJI1AjsxBGUTLtPMV8lrzDzDx5CG9ax1AZ3LG6w==", + "version": "3.632.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.632.0.tgz", + "integrity": "sha512-Oh1fIWaoZluihOCb/zDEpRTi+6an82fgJz7fyRBugyLhEtDjmvpCQ3oKjzaOhoN+4EvXAm1ZS/ZgpvXBlIRTgw==", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "3.629.0", - "@aws-sdk/credential-provider-node": "3.631.0", + "@aws-sdk/credential-provider-node": "3.632.0", "@aws-sdk/middleware-host-header": "3.620.0", "@aws-sdk/middleware-logger": "3.609.0", "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.631.0", + "@aws-sdk/middleware-user-agent": "3.632.0", "@aws-sdk/region-config-resolver": "3.614.0", "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.631.0", + "@aws-sdk/util-endpoints": "3.632.0", "@aws-sdk/util-user-agent-browser": "3.609.0", "@aws-sdk/util-user-agent-node": "3.614.0", "@smithy/config-resolver": "^3.0.5", @@ -456,26 +456,26 @@ "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.631.0" + "@aws-sdk/client-sts": "^3.632.0" } }, "node_modules/@aws-sdk/client-sts": { - "version": "3.631.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.631.0.tgz", - "integrity": "sha512-Zo/2XDrmNpnSRlQLL8XOCJxuN7UIrGKf4itdjHqtEmD2PqstnYe6IMeEVOELpZ8iktjvsIrVr+qxlIX1QlmgCQ==", + "version": "3.632.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.632.0.tgz", + "integrity": "sha512-Ss5cBH09icpTvT+jtGGuQlRdwtO7RyE9BF4ZV/CEPATdd9whtJt4Qxdya8BUnkWR7h5HHTrQHqai3YVYjku41A==", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.631.0", + "@aws-sdk/client-sso-oidc": "3.632.0", "@aws-sdk/core": "3.629.0", - "@aws-sdk/credential-provider-node": "3.631.0", + "@aws-sdk/credential-provider-node": "3.632.0", "@aws-sdk/middleware-host-header": "3.620.0", "@aws-sdk/middleware-logger": "3.609.0", "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.631.0", + "@aws-sdk/middleware-user-agent": "3.632.0", "@aws-sdk/region-config-resolver": "3.614.0", "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.631.0", + "@aws-sdk/util-endpoints": "3.632.0", "@aws-sdk/util-user-agent-browser": "3.609.0", "@aws-sdk/util-user-agent-node": "3.614.0", "@smithy/config-resolver": "^3.0.5", @@ -563,14 +563,14 @@ } }, "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.631.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.631.0.tgz", - "integrity": "sha512-34NmRl6GYlyKTHwiA3C3MjCtmXfoaOXI8b2h7P9eAC8leuIb/51v482g0K6X5P5FqaGY8ZreUq5BMsGjBRr1uQ==", + "version": "3.632.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.632.0.tgz", + "integrity": "sha512-m6epoW41xa1ajU5OiHcmQHoGVtrbXBaRBOUhlCLZmcaqMLYsboM4iD/WZP8aatKEON5tTnVXh/4StV8D/+wemw==", "dependencies": { "@aws-sdk/credential-provider-env": "3.620.1", "@aws-sdk/credential-provider-http": "3.622.0", "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.631.0", + "@aws-sdk/credential-provider-sso": "3.632.0", "@aws-sdk/credential-provider-web-identity": "3.621.0", "@aws-sdk/types": "3.609.0", "@smithy/credential-provider-imds": "^3.2.0", @@ -583,19 +583,19 @@ "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.631.0" + "@aws-sdk/client-sts": "^3.632.0" } }, "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.631.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.631.0.tgz", - "integrity": "sha512-MlYcFknrMQ8RUVe0DMPE09mX8+97s7MLwnVV8l+LFi7m+ZfBz+h6LrohhOXC5elJHf4G3T0r/9Rwct63+zHK/w==", + "version": "3.632.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.632.0.tgz", + "integrity": "sha512-cL8fuJWm/xQBO4XJPkeuZzl3XinIn9EExWgzpG48NRMKR5us1RI/ucv7xFbBBaG+r/sDR2HpYBIA3lVIpm1H3Q==", "dependencies": { "@aws-sdk/credential-provider-env": "3.620.1", "@aws-sdk/credential-provider-http": "3.622.0", - "@aws-sdk/credential-provider-ini": "3.631.0", + "@aws-sdk/credential-provider-ini": "3.632.0", "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.631.0", + "@aws-sdk/credential-provider-sso": "3.632.0", "@aws-sdk/credential-provider-web-identity": "3.621.0", "@aws-sdk/types": "3.609.0", "@smithy/credential-provider-imds": "^3.2.0", @@ -624,11 +624,11 @@ } }, "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.631.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.631.0.tgz", - "integrity": "sha512-k3Mj1Fc7faVOGR+qrwROir/8No35G7gbVL5FuY467x3y0ELa/6w0j/0HM+5eqzGABW7pSL/OHONhWKlYwg7Gkw==", + "version": "3.632.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.632.0.tgz", + "integrity": "sha512-P/4wB6j7ym5QCPTL2xlMfvf2NcXSh+z0jmsZP4WW/tVwab4hvgabPPbLeEZDSWZ0BpgtxKGvRq0GSHuGeirQbA==", "dependencies": { - "@aws-sdk/client-sso": "3.631.0", + "@aws-sdk/client-sso": "3.632.0", "@aws-sdk/token-providers": "3.614.0", "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -761,9 +761,9 @@ } }, "node_modules/@aws-sdk/middleware-sdk-s3": { - "version": "3.629.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.629.0.tgz", - "integrity": "sha512-FRXLcnPWXBoq/T9mnGnrpqhrSKNSm22rqJ0L7P14KESmbGuwhF/7ELYYxXIpgnIpb/CIUVmIU5EE8lsW1VTe8A==", + "version": "3.633.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.633.0.tgz", + "integrity": "sha512-7jjmWVw28wIHOdrHyTCvwKr1EYGrZI13DviwAOwRC0y9dB8gGCdRiA4fNczripUBxolCCE9mpqLrqy5pXtTzvA==", "dependencies": { "@aws-sdk/core": "3.629.0", "@aws-sdk/types": "3.609.0", @@ -798,12 +798,12 @@ } }, "node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.631.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.631.0.tgz", - "integrity": "sha512-mpFRFaP9fjXhw8NiRTP+lBPKRKMSKzfCyTXQXrQCSo4fAUaz8LPCc8VdqyoNmx4CLBTRflbEHLx5PfInA0DsrA==", + "version": "3.632.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.632.0.tgz", + "integrity": "sha512-yY/sFsHKwG9yzSf/DTclqWJaGPI2gPBJDCGBujSqTG1zlS7Ot4fqi91DZ6088BFWzbOorDzJFcAhAEFzc6LuQg==", "dependencies": { "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.631.0", + "@aws-sdk/util-endpoints": "3.632.0", "@smithy/protocol-http": "^4.1.0", "@smithy/types": "^3.3.0", "tslib": "^2.6.2" @@ -829,11 +829,11 @@ } }, "node_modules/@aws-sdk/signature-v4-multi-region": { - "version": "3.629.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.629.0.tgz", - "integrity": "sha512-GPX6dnmuLGDFp7CsGqGCzleEoNyr9ekgOzSBtcL5nKX++NruxO7f1QzJAbcYvz0gdKvz958UO0EKsGM6hnkTSg==", + "version": "3.633.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.633.0.tgz", + "integrity": "sha512-96F7Mx4lybMZdE0TTEkw6EKpeB0hxqp3J8fUJasesekTnO7jsklc47GHL5R3whyS/L4/JaPazm0Pi2DEH3kw1w==", "dependencies": { - "@aws-sdk/middleware-sdk-s3": "3.629.0", + "@aws-sdk/middleware-sdk-s3": "3.633.0", "@aws-sdk/types": "3.609.0", "@smithy/protocol-http": "^4.1.0", "@smithy/signature-v4": "^4.1.0", @@ -886,9 +886,9 @@ } }, "node_modules/@aws-sdk/util-endpoints": { - "version": "3.631.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.631.0.tgz", - "integrity": "sha512-aavsyk17lK/r6rfVFYLh6/Y0eWvtbclWteJyW9PQLo5mpHPcTj6IbqMN4LHV27Y9IF7oOlbEAQ1CGTfpUlOvTg==", + "version": "3.632.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.632.0.tgz", + "integrity": "sha512-LlYMU8pAbcEQphOpE6xaNLJ8kPGhklZZTVzZVpVW477NaaGgoGTMYNXTABYHcxeF5E2lLrxql9OmVpvr8GWN8Q==", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -2053,17 +2053,19 @@ } }, "node_modules/@smithy/core": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.3.2.tgz", - "integrity": "sha512-in5wwt6chDBcUv1Lw1+QzZxN9fBffi+qOixfb65yK4sDuKG7zAUO9HAFqmVzsZM3N+3tTyvZjtnDXePpvp007Q==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.4.0.tgz", + "integrity": "sha512-cHXq+FneIF/KJbt4q4pjN186+Jf4ZB0ZOqEaZMBhT79srEyGDDBV31NqBRBjazz8ppQ1bJbDJMY9ba5wKFV36w==", "dependencies": { "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-retry": "^3.0.15", "@smithy/middleware-serde": "^3.0.3", "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", + "@smithy/smithy-client": "^3.2.0", "@smithy/types": "^3.3.0", + "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-middleware": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { @@ -2258,14 +2260,14 @@ } }, "node_modules/@smithy/middleware-retry": { - "version": "3.0.14", - "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.14.tgz", - "integrity": "sha512-7ZaWZJOjUxa5hgmuMspyt8v/zVsh0GXYuF7OvCmdcbVa/xbnKQoYC+uYKunAqRGTkxjOyuOCw9rmFUFOqqC0eQ==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.15.tgz", + "integrity": "sha512-iTMedvNt1ApdvkaoE8aSDuwaoc+BhvHqttbA/FO4Ty+y/S5hW6Ci/CTScG7vam4RYJWZxdTElc3MEfHRVH6cgQ==", "dependencies": { "@smithy/node-config-provider": "^3.1.4", "@smithy/protocol-http": "^4.1.0", "@smithy/service-error-classification": "^3.0.3", - "@smithy/smithy-client": "^3.1.12", + "@smithy/smithy-client": "^3.2.0", "@smithy/types": "^3.3.0", "@smithy/util-middleware": "^3.0.3", "@smithy/util-retry": "^3.0.3", @@ -2420,9 +2422,9 @@ } }, "node_modules/@smithy/smithy-client": { - "version": "3.1.12", - "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.1.12.tgz", - "integrity": "sha512-wtm8JtsycthkHy1YA4zjIh2thJgIQ9vGkoR639DBx5lLlLNU0v4GARpQZkr2WjXue74nZ7MiTSWfVrLkyD8RkA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.2.0.tgz", + "integrity": "sha512-pDbtxs8WOhJLJSeaF/eAbPgXg4VVYFlRcL/zoNYA5WbG3wBL06CHtBSg53ppkttDpAJ/hdiede+xApip1CwSLw==", "dependencies": { "@smithy/middleware-endpoint": "^3.1.0", "@smithy/middleware-stack": "^3.0.3", @@ -2512,12 +2514,12 @@ } }, "node_modules/@smithy/util-defaults-mode-browser": { - "version": "3.0.14", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.14.tgz", - "integrity": "sha512-0iwTgKKmAIf+vFLV8fji21Jb2px11ktKVxbX6LIDPAUJyWQqGqBVfwba7xwa1f2FZUoolYQgLvxQEpJycXuQ5w==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.15.tgz", + "integrity": "sha512-FZ4Psa3vjp8kOXcd3HJOiDPBCWtiilLl57r0cnNtq/Ga9RSDrM5ERL6xt+tO43+2af6Pn5Yp92x2n5vPuduNfg==", "dependencies": { "@smithy/property-provider": "^3.1.3", - "@smithy/smithy-client": "^3.1.12", + "@smithy/smithy-client": "^3.2.0", "@smithy/types": "^3.3.0", "bowser": "^2.11.0", "tslib": "^2.6.2" @@ -2527,15 +2529,15 @@ } }, "node_modules/@smithy/util-defaults-mode-node": { - "version": "3.0.14", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.14.tgz", - "integrity": "sha512-e9uQarJKfXApkTMMruIdxHprhcXivH1flYCe8JRDTzkkLx8dA3V5J8GZlST9yfDiRWkJpZJlUXGN9Rc9Ade3OQ==", + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.15.tgz", + "integrity": "sha512-KSyAAx2q6d0t6f/S4XB2+3+6aQacm3aLMhs9aLMqn18uYGUepbdssfogW5JQZpc6lXNBnp0tEnR5e9CEKmEd7A==", "dependencies": { "@smithy/config-resolver": "^3.0.5", "@smithy/credential-provider-imds": "^3.2.0", "@smithy/node-config-provider": "^3.1.4", "@smithy/property-provider": "^3.1.3", - "@smithy/smithy-client": "^3.1.12", + "@smithy/smithy-client": "^3.2.0", "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, From abf91d974f3915ff54b1b12d51f012cdcaf407d0 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sun, 18 Aug 2024 19:43:35 +0200 Subject: [PATCH 22/27] "fix" nix dep hashes.json --- hashes.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashes.json b/hashes.json index ffba8089..e5996816 100644 --- a/hashes.json +++ b/hashes.json @@ -1,3 +1,3 @@ { - "npmDepsHash": "sha256-9Nf/61L6pX6vrWWYPV7hy5/Cj3bWgTd6Ed8qNCQfuLs=" + "npmDepsHash": "sha256-qcHlktC4qrhOJ6AwKbccPkr0cVrAtPhGK+xD/eV+scU=" } From 2212a84ded37d7385016af3aac20e7b26f2e9673 Mon Sep 17 00:00:00 2001 From: Cyber Date: Mon, 19 Aug 2024 08:10:19 +0200 Subject: [PATCH 23/27] fix: nickmane reset by command --- src/util/entities/Member.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/util/entities/Member.ts b/src/util/entities/Member.ts index 3ef778ac..df97e469 100644 --- a/src/util/entities/Member.ts +++ b/src/util/entities/Member.ts @@ -290,7 +290,9 @@ export class Member extends BaseClassWithoutId { }, relations: ["user"], }); - member.nick = nickname; + + // @ts-expect-error Member nickname is nullable + member.nick = nickname || null; await Promise.all([ member.save(), @@ -300,7 +302,7 @@ export class Member extends BaseClassWithoutId { data: { guild_id, user: member.user, - nick: nickname, + nick: nickname || null, }, guild_id, } as GuildMemberUpdateEvent), From 339b947a8d471a42686ad58b950c9eafe10463e0 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Wed, 21 Aug 2024 18:50:31 +0200 Subject: [PATCH 24/27] Exclude more internal schemas --- assets/openapi.json | 635 +- assets/schemas.json | 69365 +----------------------------------------- scripts/schema.js | 11 +- 3 files changed, 192 insertions(+), 69819 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index 68adb455..ea95a1bd 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -61,109 +61,208 @@ "read_states" ] }, - "DiagnosticsChannel.Response": { + "ConnectedAccountCommonOAuthTokenResponse": { "type": "object", "properties": { - "statusCode": { - "type": "integer" - }, - "statusText": { + "access_token": { "type": "string" }, - "headers": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": { - "type": "integer" - } - } - } + "token_type": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "expires_in": { + "type": "integer" } }, "required": [ - "headers", - "statusCode", - "statusText" + "access_token", + "scope", + "token_type" ] }, - "Headers": { + "ApplicationAuthorizeSchema": { "type": "object", "properties": { - "append": { - "type": "object", - "additionalProperties": false + "authorize": { + "type": "boolean" }, - "delete": { - "type": "object", - "additionalProperties": false + "guild_id": { + "type": "string" }, - "get": { - "type": "object", - "additionalProperties": false + "permissions": { + "type": "string" }, - "has": { - "type": "object", - "additionalProperties": false + "captcha_key": { + "type": "string" }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false + "code": { + "type": "string" } }, "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" + "authorize", + "guild_id", + "permissions" ] }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" + "ApplicationCreateSchema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "team_id": { + "type": [ + "string", + "integer" + ] + } + }, + "required": [ + "name" + ] + }, + "ApplicationModifySchema": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "interactions_endpoint_url": { + "type": "string" + }, + "max_participants": { + "type": "integer", + "nullable": true + }, + "name": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "role_connections_verification_url": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "terms_of_service_url": { + "type": "string" + }, + "bot_public": { + "type": "boolean" + }, + "bot_require_code_grant": { + "type": "boolean" + }, + "flags": { + "type": "integer" + } + } + }, + "BackupCodesChallengeSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "required": [ + "password" + ] + }, + "BanCreateSchema": { + "type": "object", + "properties": { + "delete_message_seconds": { + "type": "string" + }, + "delete_message_days": { + "type": "string" + }, + "reason": { + "type": "string" + } + } + }, + "BanModeratorSchema": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "executor_id": { + "type": "string" + }, + "reason": { + "type": "string" + } + }, + "required": [ + "executor_id", + "guild_id", + "id", + "user_id" + ] + }, + "BanRegistrySchema": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "executor_id": { + "type": "string" + }, + "ip": { + "type": "string" + }, + "reason": { + "type": "string" + } + }, + "required": [ + "executor_id", + "guild_id", + "id", + "user_id" + ] + }, + "BotModifySchema": { + "type": "object", + "properties": { + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + } + } }, "ChannelPermissionOverwriteType": { "enum": [ @@ -4729,372 +4828,6 @@ "webauthn" ] }, - "_Response": { - "type": "object", - "properties": { - "headers": { - "$ref": "#/components/schemas/Headers" - }, - "ok": { - "type": "boolean" - }, - "status": { - "type": "integer" - }, - "statusText": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/ResponseType" - }, - "url": { - "type": "string" - }, - "redirected": { - "type": "boolean" - }, - "body": { - "anyOf": [ - { - "$ref": "#/components/schemas/ReadableStream" - }, - { - "type": "null" - } - ] - }, - "bodyUsed": { - "type": "boolean" - }, - "arrayBuffer": { - "type": "object", - "additionalProperties": false - }, - "blob": { - "type": "object", - "additionalProperties": false - }, - "formData": { - "type": "object", - "additionalProperties": false - }, - "json": { - "type": "object", - "additionalProperties": false - }, - "text": { - "type": "object", - "additionalProperties": false - }, - "clone": { - "type": "object", - "additionalProperties": false - } - }, - "required": [ - "arrayBuffer", - "blob", - "body", - "bodyUsed", - "clone", - "formData", - "headers", - "json", - "ok", - "redirected", - "status", - "statusText", - "text", - "type", - "url" - ] - }, - "global.Response": { - "type": "object", - "properties": { - "headers": { - "$ref": "#/components/schemas/Headers" - }, - "ok": { - "type": "boolean" - }, - "status": { - "type": "integer" - }, - "statusText": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/ResponseType" - }, - "url": { - "type": "string" - }, - "redirected": { - "type": "boolean" - }, - "body": { - "anyOf": [ - { - "$ref": "#/components/schemas/ReadableStream" - }, - { - "type": "null" - } - ] - }, - "bodyUsed": { - "type": "boolean" - }, - "arrayBuffer": { - "type": "object", - "additionalProperties": false - }, - "blob": { - "type": "object", - "additionalProperties": false - }, - "formData": { - "type": "object", - "additionalProperties": false - }, - "json": { - "type": "object", - "additionalProperties": false - }, - "text": { - "type": "object", - "additionalProperties": false - }, - "clone": { - "type": "object", - "additionalProperties": false - } - }, - "required": [ - "arrayBuffer", - "blob", - "body", - "bodyUsed", - "clone", - "formData", - "headers", - "json", - "ok", - "redirected", - "status", - "statusText", - "text", - "type", - "url" - ] - }, - "ConnectedAccountCommonOAuthTokenResponse": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - } - }, - "required": [ - "access_token", - "scope", - "token_type" - ] - }, - "ExpressResponse": { - "type": "object" - }, - "ApplicationAuthorizeSchema": { - "type": "object", - "properties": { - "authorize": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "captcha_key": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "required": [ - "authorize", - "guild_id", - "permissions" - ] - }, - "ApplicationCreateSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "team_id": { - "type": [ - "string", - "integer" - ] - } - }, - "required": [ - "name" - ] - }, - "ApplicationModifySchema": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "interactions_endpoint_url": { - "type": "string" - }, - "max_participants": { - "type": "integer", - "nullable": true - }, - "name": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "role_connections_verification_url": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "terms_of_service_url": { - "type": "string" - }, - "bot_public": { - "type": "boolean" - }, - "bot_require_code_grant": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - } - }, - "BackupCodesChallengeSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" - } - }, - "required": [ - "password" - ] - }, - "BanCreateSchema": { - "type": "object", - "properties": { - "delete_message_seconds": { - "type": "string" - }, - "delete_message_days": { - "type": "string" - }, - "reason": { - "type": "string" - } - } - }, - "BanModeratorSchema": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "executor_id": { - "type": "string" - }, - "reason": { - "type": "string" - } - }, - "required": [ - "executor_id", - "guild_id", - "id", - "user_id" - ] - }, - "BanRegistrySchema": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "executor_id": { - "type": "string" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - } - }, - "required": [ - "executor_id", - "guild_id", - "id", - "user_id" - ] - }, - "BotModifySchema": { - "type": "object", - "properties": { - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - } - } - }, "ChannelPermissionOverwriteSchema": { "type": "object", "properties": { @@ -6184,7 +5917,6 @@ "properties": { "username": { "minLength": 2, - "maxLength": 32, "type": "string" }, "password": { @@ -6600,8 +6332,7 @@ "type": "object", "properties": { "username": { - "minLength": 1, - "maxLength": 100, + "minLength": 2, "type": "string" }, "avatar": { diff --git a/assets/schemas.json b/assets/schemas.json index a4da2538..588914aa 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -32,9732 +32,6 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "DiagnosticsChannel.Response": { - "type": "object", - "properties": { - "statusCode": { - "type": "integer" - }, - "statusText": { - "type": "string" - }, - "headers": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": { - "type": "integer" - } - } - } - } - }, - "additionalProperties": false, - "required": [ - "headers", - "statusCode", - "statusText" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "_Response": { - "type": "object", - "properties": { - "headers": { - "$ref": "#/definitions/Headers" - }, - "ok": { - "type": "boolean" - }, - "status": { - "type": "integer" - }, - "statusText": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ResponseType" - }, - "url": { - "type": "string" - }, - "redirected": { - "type": "boolean" - }, - "body": { - "anyOf": [ - { - "$ref": "#/definitions/ReadableStream" - }, - { - "type": "null" - } - ] - }, - "bodyUsed": { - "type": "boolean" - }, - "arrayBuffer": { - "type": "object", - "additionalProperties": false - }, - "blob": { - "type": "object", - "additionalProperties": false - }, - "formData": { - "type": "object", - "additionalProperties": false - }, - "json": { - "type": "object", - "additionalProperties": false - }, - "text": { - "type": "object", - "additionalProperties": false - }, - "clone": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "arrayBuffer", - "blob", - "body", - "bodyUsed", - "clone", - "formData", - "headers", - "json", - "ok", - "redirected", - "status", - "statusText", - "text", - "type", - "url" - ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "ConnectedAccountTokenData": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - }, - "expires_at": { - "type": "integer" - }, - "fetched_at": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "fetched_at" - ] - }, - "ChannelModifySchema": { - "type": "object", - "properties": { - "name": { - "maxLength": 100, - "type": "string" - }, - "type": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "topic": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - }, - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - } - }, - "parent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActivitySchema": { - "type": "object", - "properties": { - "afk": { - "type": "boolean" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "since": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "status" - ] - }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "Activity": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ActivityType" - }, - "url": { - "type": "string" - }, - "created_at": { - "type": "integer" - }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] - }, - "application_id": { - "type": "string" - }, - "details": { - "type": "string" - }, - "state": { - "type": "string" - }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] - }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false - }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false - }, - "instance": { - "type": "boolean" - }, - "flags": { - "type": "string" - }, - "id": { - "type": "string" - }, - "sync_id": { - "type": "string" - }, - "metadata": { - "type": "object", - "properties": { - "context_uri": { - "type": "string" - }, - "album_id": { - "type": "string" - }, - "artist_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] - }, - "session_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "flags", - "name", - "session_id", - "type" - ] - }, - "ActivityType": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "color": { - "type": "integer" - }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/definitions/EmbedImage" - }, - "thumbnail": { - "$ref": "#/definitions/EmbedImage" - }, - "video": { - "$ref": "#/definitions/EmbedImage" - }, - "provider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - }, - "additionalProperties": false - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActionRowComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.ActionRow" - }, - "components": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/definitions/ButtonComponent" - }, - { - "$ref": "#/definitions/SelectMenuComponent" - }, - { - "$ref": "#/definitions/StringSelectMenuComponent" - }, - { - "$ref": "#/definitions/TextInputComponent" - } - ] - } - } - }, - "additionalProperties": false, - "required": [ - "components", - "type" - ] - }, - "MessageComponentType.ActionRow": { - "type": "number", - "enum": [ - 1 - ] - }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.Button" - }, - "style": { - "$ref": "#/definitions/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "style", - "type" - ] - }, - "MessageComponentType.Button": { - "type": "number", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - "SelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "type" - ] - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "type" - ] - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.StringSelect" - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuOption" - } - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "options", - "type" - ] - }, - "MessageComponentType.StringSelect": { - "type": "number", - "enum": [ - 3 - ] - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "default": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "label", - "value" - ] - }, - "TextInputComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.TextInput" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/definitions/TextInputStyle" - }, - "label": { - "type": "string" - }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" - }, - "value": { - "type": "string" - }, - "placeholder": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "label", - "style", - "type" - ] - }, - "MessageComponentType.TextInput": { - "type": "number", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "PollCreationSchema": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "duration": { - "type": "integer" - }, - "allow_multiselect": { - "type": "boolean" - }, - "layout_type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "answers", - "question" - ] - }, - "PollMedia": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - } - }, - "additionalProperties": false - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" - }, - "poll_media": { - "$ref": "#/definitions/PollMedia" - } - }, - "additionalProperties": false, - "required": [ - "poll_media" - ] - }, - "ChannelOverride": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ] - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "all" - ] - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { - "type": "integer" - }, - "guild_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "integer" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "guild_ids", - "id", - "name" - ] - }, - "GenerateWebAuthnCredentialsSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "password" - ] - }, - "CreateWebAuthnCredentialSchema": { - "type": "object", - "properties": { - "credential": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ticket": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "credential", - "name", - "ticket" - ] - }, - "APIErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "code", - "errors", - "message" - ] - }, - "CaptchaRequiredResponse": { - "type": "object", - "properties": { - "captcha_key": { - "type": "string" - }, - "captcha_sitekey": { - "type": "string" - }, - "captcha_service": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "string" - }, - "afk_channel": { - "$ref": "#/definitions/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { - "type": "string" - }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "template_id": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/definitions/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "Channel": { - "type": "object", - "properties": { - "created_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "type": { - "$ref": "#/definitions/ChannelType" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/Recipient" - } - }, - "last_message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "parent_id": { - "type": [ - "null", - "string" - ] - }, - "parent": { - "$ref": "#/definitions/Channel" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "last_pin_timestamp": { - "type": "integer" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelPermissionOverwrite" - } - }, - "video_quality_mode": { - "type": "integer" - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "rate_limit_per_user": { - "type": "integer" - }, - "topic": { - "type": "string" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "retention_policy_id": { - "type": "string" - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "read_states": { - "type": "array", - "items": { - "$ref": "#/definitions/ReadState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "flags": { - "type": "integer", - "default": 0 - }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "created_at", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "Recipient": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "closed": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "closed", - "id", - "user", - "user_id" - ] - }, - "User": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "desktop": { - "type": "boolean", - "default": false - }, - "mobile": { - "type": "boolean", - "default": false - }, - "premium": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "bot": { - "type": "boolean", - "default": false - }, - "bio": { - "type": "string", - "default": "" - }, - "system": { - "type": "boolean", - "default": false - }, - "nsfw_allowed": { - "type": "boolean", - "default": true - }, - "mfa_enabled": { - "type": "boolean", - "default": false - }, - "webauthn_enabled": { - "type": "boolean", - "default": false - }, - "totp_secret": { - "type": "string", - "default": "" - }, - "totp_last_ticket": { - "type": "string", - "default": "" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "verified": { - "type": "boolean" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "deleted": { - "type": "boolean", - "default": false - }, - "email": { - "type": "string" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "public_flags": { - "type": "integer", - "default": 0 - }, - "purchased_flags": { - "type": "integer", - "default": 0 - }, - "premium_usage_flags": { - "type": "integer", - "default": 0 - }, - "rights": { - "type": "string" - }, - "sessions": { - "type": "array", - "items": { - "$ref": "#/definitions/Session" - } - }, - "relationships": { - "type": "array", - "items": { - "$ref": "#/definitions/Relationship" - } - }, - "connected_accounts": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectedAccount" - } - }, - "data": { - "type": "object", - "properties": { - "valid_tokens_since": { - "type": "string", - "format": "date-time" - }, - "hash": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "valid_tokens_since" - ] - }, - "fingerprints": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "settings": { - "$ref": "#/definitions/UserSettings" - }, - "extended_settings": { - "type": "string", - "default": "{}" - }, - "security_keys": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityKey" - } - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "extended_settings", - "fingerprints", - "flags", - "id", - "mfa_enabled", - "mobile", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "relationships", - "rights", - "security_keys", - "sessions", - "settings", - "system", - "username", - "verified", - "webauthn_enabled" - ] - }, - "Session": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "session_id": { - "type": "string" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "client_info": { - "type": "object", - "properties": { - "client": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "client", - "os", - "version" - ] - }, - "client_status": { - "$ref": "#/definitions/ClientStatus" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "activities", - "client_info", - "client_status", - "id", - "session_id", - "status", - "user", - "user_id" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "Relationship": { - "type": "object", - "properties": { - "from_id": { - "type": "string" - }, - "from": { - "$ref": "#/definitions/User" - }, - "to_id": { - "type": "string" - }, - "to": { - "$ref": "#/definitions/User" - }, - "nickname": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "from", - "from_id", - "id", - "to", - "to_id", - "type" - ] - }, - "RelationshipType": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "ConnectedAccount": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "friend_sync": { - "type": "boolean", - "default": false - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean", - "default": false - }, - "show_activity": { - "type": "integer", - "default": 0 - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean", - "default": true - }, - "visibility": { - "type": "integer", - "default": 0 - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer", - "default": 0 - }, - "two_way_link": { - "type": "boolean", - "default": false - }, - "token_data": { - "anyOf": [ - { - "$ref": "#/definitions/ConnectedAccountTokenData" - }, - { - "type": "null" - } - ] - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "external_id", - "id", - "name", - "type", - "user", - "user_id" - ] - }, - "UserSettings": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "afk_timeout": { - "type": "integer", - "default": 3600 - }, - "allow_accessibility_detection": { - "type": "boolean", - "default": true - }, - "animate_emoji": { - "type": "boolean", - "default": true - }, - "animate_stickers": { - "type": "integer", - "default": 0 - }, - "contact_sync_enabled": { - "type": "boolean", - "default": false - }, - "convert_emoticons": { - "type": "boolean", - "default": false - }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" - }, - { - "type": "null" - } - ], - "default": null - }, - "default_guilds_restricted": { - "type": "boolean", - "default": false - }, - "detect_platform_accounts": { - "type": "boolean", - "default": false - }, - "developer_mode": { - "type": "boolean", - "default": true - }, - "disable_games_tab": { - "type": "boolean", - "default": true - }, - "enable_tts_command": { - "type": "boolean", - "default": false - }, - "explicit_content_filter": { - "type": "integer", - "default": 0 - }, - "friend_discovery_flags": { - "type": "integer", - "default": 0 - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean", - "default": false - }, - "gif_auto_play": { - "type": "boolean", - "default": false - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - }, - "default": [] - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "inline_attachment_media": { - "type": "boolean", - "default": true - }, - "inline_embed_media": { - "type": "boolean", - "default": true - }, - "locale": { - "type": "string", - "default": "en-US" - }, - "message_display_compact": { - "type": "boolean", - "default": false - }, - "native_phone_integration_enabled": { - "type": "boolean", - "default": true - }, - "render_embeds": { - "type": "boolean", - "default": true - }, - "render_reactions": { - "type": "boolean", - "default": true - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "show_current_game": { - "type": "boolean", - "default": true - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "default": "online" - }, - "stream_notifications_enabled": { - "type": "boolean", - "default": false - }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string", - "default": "dark" - }, - "timezone_offset": { - "type": "integer", - "default": 0 - }, - "view_nsfw_guilds": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_discovery_flags", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "index", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset", - "view_nsfw_guilds" - ] - }, - "SecurityKey": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "key_id": { - "type": "string" - }, - "public_key": { - "type": "string" - }, - "counter": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "counter", - "id", - "key_id", - "name", - "public_key", - "user", - "user_id" - ] - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - }, - "Invite": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "temporary": { - "type": "boolean" - }, - "uses": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "max_age": { - "type": "integer" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "inviter_id": { - "type": "string" - }, - "inviter": { - "$ref": "#/definitions/User" - }, - "target_user_id": { - "type": "string" - }, - "target_user": { - "type": "string" - }, - "target_user_type": { - "type": "integer" - }, - "vanity_url": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "code", - "created_at", - "flags", - "guild", - "guild_id", - "inviter", - "max_age", - "max_uses", - "target_user_id", - "temporary", - "uses" - ] - }, - "Message": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "author_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/User" - }, - "member_id": { - "type": "string" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "webhook_id": { - "type": "string" - }, - "webhook": { - "$ref": "#/definitions/Webhook" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "type": "string", - "format": "date-time" - }, - "tts": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "mention_channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/definitions/Reaction" - } - }, - "nonce": { - "type": "string" - }, - "pinned": { - "type": "boolean" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "activity": { - "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "party_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "party_id", - "type" - ] - }, - "flags": { - "type": "integer" - }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type", - "user_id" - ] - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "embeds", - "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "reactions", - "timestamp", - "type" - ] - }, - "Member": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "nick": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "integer" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "pending": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserGuildSettings" - }, - "last_message_id": { - "type": "string" - }, - "joined_by": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "guild", - "guild_id", - "id", - "index", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "user" - ] - }, - "Role": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "color": { - "type": "integer" - }, - "hoist": { - "type": "boolean" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "icon": { - "type": "string" - }, - "unicode_emoji": { - "type": "string" - }, - "tags": { - "type": "object", - "properties": { - "bot_id": { - "type": "string" - }, - "integration_id": { - "type": "string" - }, - "premium_subscriber": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "flags": { - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "UserGuildSettings": { - "type": "object", - "properties": { - "channel_overrides": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - { - "type": "null" - } - ] - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "version": { - "type": "integer" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "type": "number", - "enum": [ - 0 - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_overrides", - "flags", - "guild_id", - "hide_muted_channels", - "message_notifications", - "mobile_push", - "mute_config", - "mute_scheduled_events", - "muted", - "notify_highlights", - "suppress_everyone", - "suppress_roles", - "version" - ] - }, - "Webhook": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/WebhookType" - }, - "name": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "token": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "source_channel_id": { - "type": "string" - }, - "source_channel": { - "$ref": "#/definitions/Channel" - }, - "url": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "application", - "application_id", - "avatar", - "channel", - "channel_id", - "id", - "name", - "source_channel", - "source_channel_id", - "type", - "url", - "user", - "user_id" - ] - }, - "WebhookType": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "Application": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "description": { - "type": "string" - }, - "summary": { - "type": "string", - "default": "" - }, - "type": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "hook": { - "type": "boolean", - "default": true - }, - "bot_public": { - "type": "boolean", - "default": true - }, - "bot_require_code_grant": { - "type": "boolean", - "default": false - }, - "verify_key": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "rpc_application_state": { - "type": "integer", - "default": 0 - }, - "store_application_state": { - "type": "integer", - "default": 1 - }, - "verification_state": { - "type": "integer", - "default": 1 - }, - "interactions_endpoint_url": { - "type": "string" - }, - "integration_public": { - "type": "boolean", - "default": true - }, - "integration_require_code_grant": { - "type": "boolean", - "default": false - }, - "discoverability_state": { - "type": "integer", - "default": 1 - }, - "discovery_eligibility_flags": { - "type": "integer", - "default": 2240 - }, - "bot": { - "$ref": "#/definitions/User" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "cover_image": { - "type": "string" - }, - "install_params": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "permissions", - "scopes" - ] - }, - "terms_of_service_url": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "discoverability_state", - "discovery_eligibility_flags", - "flags", - "hook", - "id", - "integration_public", - "integration_require_code_grant", - "name", - "owner", - "redirect_uris", - "rpc_application_state", - "store_application_state", - "summary", - "verification_state", - "verify_key" - ] - }, - "Team": { - "type": "object", - "properties": { - "icon": { - "type": "string" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/TeamMember" - } - }, - "name": { - "type": "string" - }, - "owner_user_id": { - "type": "string" - }, - "owner_user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "members", - "name", - "owner_user", - "owner_user_id" - ] - }, - "TeamMember": { - "type": "object", - "properties": { - "membership_state": { - "$ref": "#/definitions/TeamMemberState" - }, - "permissions": { - "type": "array", - "items": { - "type": "string" - } - }, - "team_id": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "membership_state", - "permissions", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "Sticker": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" - }, - "pack_id": { - "type": "string" - }, - "pack": { - "$ref": "#/definitions/StickerPack" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "type": { - "$ref": "#/definitions/StickerType" - }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "format_type", - "id", - "name", - "pack", - "type" - ] - }, - "StickerPack": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "cover_sticker_id": { - "type": "string" - }, - "cover_sticker": { - "$ref": "#/definitions/Sticker" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "stickers" - ] - }, - "StickerType": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "Attachment": { - "type": "object", - "properties": { - "filename": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - }, - "content_type": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "message": { - "$ref": "#/definitions/Message" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", - "url" - ] - }, - "Reaction": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "count", - "emoji", - "user_ids" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "Poll": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "expiry": { - "type": "string", - "format": "date-time" - }, - "allow_multiselect": { - "type": "boolean" - }, - "results": { - "$ref": "#/definitions/PollResult" - } - }, - "additionalProperties": false, - "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" - ] - }, - "PollResult": { - "type": "object", - "properties": { - "is_finalized": { - "type": "boolean" - }, - "answer_counts": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswerCount" - } - } - }, - "additionalProperties": false, - "required": [ - "answer_counts", - "is_finalized" - ] - }, - "PollAnswerCount": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "count": { - "type": "integer" - }, - "me_voted": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "id", - "me_voted" - ] - }, - "VoiceState": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "session_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_mute": { - "type": "boolean" - }, - "self_stream": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "suppress": { - "type": "boolean" - }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "deaf", - "guild_id", - "id", - "member", - "mute", - "self_deaf", - "self_mute", - "self_video", - "session_id", - "suppress", - "token", - "user", - "user_id" - ] - }, - "ReadState": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "last_message_id": { - "type": "string" - }, - "public_ack": { - "type": "string" - }, - "notifications_cursor": { - "type": "string" - }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "mention_count": { - "type": "integer" - }, - "manual": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "id", - "last_message_id", - "manual", - "mention_count", - "notifications_cursor", - "public_ack", - "user", - "user_id" - ] - }, - "Ban": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "executor_id": { - "type": "string" - }, - "executor": { - "$ref": "#/definitions/User" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor", - "executor_id", - "guild", - "guild_id", - "id", - "ip", - "user", - "user_id" - ] - }, - "Template": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "usage_count": { - "type": "integer" - }, - "creator_id": { - "type": "string" - }, - "creator": { - "$ref": "#/definitions/User" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "serialized_source_guild": { - "$ref": "#/definitions/Guild" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "created_at", - "creator", - "creator_id", - "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" - ] - }, - "Emoji": { - "type": "object", - "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "managed": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "require_colons": { - "type": "boolean" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" - ] - }, - "GuildWelcomeScreen": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "channel_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "description", - "enabled", - "welcome_channels" - ] - }, - "GuildMessagesSearchMessage": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "content": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/PublicUser" - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicUser" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, - "timestamp": { - "type": "string" - }, - "edited_timestamp": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "hit": { - "type": "boolean", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ] - }, - "GuildVanityUrl": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "uses": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "code", - "uses" - ] - }, - "GuildVanityUrlNoInvite": { - "type": "object", - "properties": { - "code": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "code" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "TenorGifResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" - ] - }, - "BackupCode": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "code": { - "type": "string" - }, - "consumed": { - "type": "boolean" - }, - "expired": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "consumed", - "expired", - "id", - "user" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "toJSON": { - "type": "object", - "additionalProperties": false - }, - "_do_validate": { - "type": "object", - "additionalProperties": false - }, - "assign": { - "type": "object", - "additionalProperties": false - }, - "hasId": { - "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", - "type": "object", - "additionalProperties": false - }, - "save": { - "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", - "type": "object", - "additionalProperties": false - }, - "remove": { - "description": "Removes current entity from the database.", - "type": "object", - "additionalProperties": false - }, - "softRemove": { - "description": "Records the delete date of current entity.", - "type": "object", - "additionalProperties": false - }, - "recover": { - "description": "Recovers a given entity in the database.", - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "banner": { - "type": "string" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "_do_validate", - "assign", - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "hasId", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "recover", - "reload", - "remove", - "roles", - "save", - "softRemove", - "stickers", - "toJSON", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "DmChannelDTO": { - "type": "object", - "properties": { - "icon": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": "string" - }, - "last_message_id": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "origin_channel_id": { - "type": [ - "null", - "string" - ] - }, - "owner_id": { - "type": "string" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/MinimalPublicUserDTO" - } - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "icon", - "id", - "last_message_id", - "name", - "origin_channel_id", - "recipients", - "type" - ] - }, - "MinimalPublicUserDTO": { - "type": "object", - "properties": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - }, - "badge_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - }, - "Categories": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "localizations": { - "type": "string" - }, - "is_primary": { - "type": "boolean" - }, - "icon": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "is_primary", - "localizations", - "name" - ] - }, - "GuildVoiceRegion": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "custom": { - "type": "boolean" - }, - "deprecated": { - "type": "boolean" - }, - "optimal": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom", - "deprecated", - "id", - "name", - "optimal" - ] - }, - "UserLimits": { - "type": "object", - "properties": { - "maxGuilds": { - "type": "integer", - "default": 1048576 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - }, - "maxBio": { - "type": "integer", - "default": 190 - } - }, - "additionalProperties": false, - "required": [ - "maxBio", - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "GuildLimits": { - "type": "object", - "properties": { - "maxRoles": { - "type": "integer", - "default": 1000 - }, - "maxEmojis": { - "type": "integer", - "default": 2000 - }, - "maxMembers": { - "type": "integer", - "default": 25000000 - }, - "maxChannels": { - "type": "integer", - "default": 65535 - }, - "maxBulkBanUsers": { - "type": "integer", - "default": 200 - }, - "maxChannelsInCategory": { - "type": "integer", - "default": 65535 - } - }, - "additionalProperties": false, - "required": [ - "maxBulkBanUsers", - "maxChannels", - "maxChannelsInCategory", - "maxEmojis", - "maxMembers", - "maxRoles" - ] - }, - "MessageLimits": { - "type": "object", - "properties": { - "maxCharacters": { - "type": "integer", - "default": 1048576 - }, - "maxTTSCharacters": { - "type": "integer", - "default": 160 - }, - "maxReactions": { - "type": "integer", - "default": 2048 - }, - "maxAttachmentSize": { - "type": "integer", - "default": 1073741824 - }, - "maxBulkDelete": { - "type": "integer", - "default": 1000 - }, - "maxEmbedDownloadSize": { - "type": "integer", - "default": 5242880 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "maxReactions", - "maxTTSCharacters" - ] - }, - "ChannelLimits": { - "type": "object", - "properties": { - "maxPins": { - "type": "integer", - "default": 500 - }, - "maxTopic": { - "type": "integer", - "default": 1024 - }, - "maxWebhooks": { - "type": "integer", - "default": 100 - } - }, - "additionalProperties": false, - "required": [ - "maxPins", - "maxTopic", - "maxWebhooks" - ] - }, - "RateLimits": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": false - }, - "ip": { - "$ref": "#/definitions/RateLimitOptions" - }, - "global": { - "$ref": "#/definitions/RateLimitOptions" - }, - "error": { - "$ref": "#/definitions/RateLimitOptions" - }, - "routes": { - "$ref": "#/definitions/RouteRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "error", - "global", - "ip", - "routes" - ] - }, - "RateLimitOptions": { - "type": "object", - "properties": { - "bot": { - "type": "integer" - }, - "count": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "onyIp": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "window" - ] - }, - "RouteRateLimit": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/definitions/RateLimitOptions" - }, - "webhook": { - "$ref": "#/definitions/RateLimitOptions" - }, - "channel": { - "$ref": "#/definitions/RateLimitOptions" - }, - "auth": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "GlobalRateLimits": { - "type": "object", - "properties": { - "register": { - "$ref": "#/definitions/GlobalRateLimit" - }, - "sendMessage": { - "$ref": "#/definitions/GlobalRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "register", - "sendMessage" - ] - }, - "GlobalRateLimit": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "default": 100 - }, - "window": { - "type": "integer", - "default": 3600000 - }, - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "limit", - "window" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type" - ] - }, - "UserProfile": { - "type": "object", - "properties": { - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "global.Response": { - "type": "object", - "properties": { - "headers": { - "$ref": "#/definitions/Headers" - }, - "ok": { - "type": "boolean" - }, - "status": { - "type": "integer" - }, - "statusText": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ResponseType" - }, - "url": { - "type": "string" - }, - "redirected": { - "type": "boolean" - }, - "body": { - "anyOf": [ - { - "$ref": "#/definitions/ReadableStream" - }, - { - "type": "null" - } - ] - }, - "bodyUsed": { - "type": "boolean" - }, - "arrayBuffer": { - "type": "object", - "additionalProperties": false - }, - "blob": { - "type": "object", - "additionalProperties": false - }, - "formData": { - "type": "object", - "additionalProperties": false - }, - "json": { - "type": "object", - "additionalProperties": false - }, - "text": { - "type": "object", - "additionalProperties": false - }, - "clone": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "arrayBuffer", - "blob", - "body", - "bodyUsed", - "clone", - "formData", - "headers", - "json", - "ok", - "redirected", - "status", - "statusText", - "text", - "type", - "url" - ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "ConnectedAccountTokenData": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - }, - "expires_at": { - "type": "integer" - }, - "fetched_at": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "fetched_at" - ] - }, - "ChannelModifySchema": { - "type": "object", - "properties": { - "name": { - "maxLength": 100, - "type": "string" - }, - "type": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "topic": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - }, - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - } - }, - "parent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActivitySchema": { - "type": "object", - "properties": { - "afk": { - "type": "boolean" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "since": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "status" - ] - }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "Activity": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ActivityType" - }, - "url": { - "type": "string" - }, - "created_at": { - "type": "integer" - }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] - }, - "application_id": { - "type": "string" - }, - "details": { - "type": "string" - }, - "state": { - "type": "string" - }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] - }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false - }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false - }, - "instance": { - "type": "boolean" - }, - "flags": { - "type": "string" - }, - "id": { - "type": "string" - }, - "sync_id": { - "type": "string" - }, - "metadata": { - "type": "object", - "properties": { - "context_uri": { - "type": "string" - }, - "album_id": { - "type": "string" - }, - "artist_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] - }, - "session_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "flags", - "name", - "session_id", - "type" - ] - }, - "ActivityType": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "color": { - "type": "integer" - }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/definitions/EmbedImage" - }, - "thumbnail": { - "$ref": "#/definitions/EmbedImage" - }, - "video": { - "$ref": "#/definitions/EmbedImage" - }, - "provider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - }, - "additionalProperties": false - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActionRowComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.ActionRow" - }, - "components": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/definitions/ButtonComponent" - }, - { - "$ref": "#/definitions/SelectMenuComponent" - }, - { - "$ref": "#/definitions/StringSelectMenuComponent" - }, - { - "$ref": "#/definitions/TextInputComponent" - } - ] - } - } - }, - "additionalProperties": false, - "required": [ - "components", - "type" - ] - }, - "MessageComponentType.ActionRow": { - "type": "number", - "enum": [ - 1 - ] - }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.Button" - }, - "style": { - "$ref": "#/definitions/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "style", - "type" - ] - }, - "MessageComponentType.Button": { - "type": "number", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - "SelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "type" - ] - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "type" - ] - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.StringSelect" - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuOption" - } - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "options", - "type" - ] - }, - "MessageComponentType.StringSelect": { - "type": "number", - "enum": [ - 3 - ] - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "default": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "label", - "value" - ] - }, - "TextInputComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.TextInput" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/definitions/TextInputStyle" - }, - "label": { - "type": "string" - }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" - }, - "value": { - "type": "string" - }, - "placeholder": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "label", - "style", - "type" - ] - }, - "MessageComponentType.TextInput": { - "type": "number", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "PollCreationSchema": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "duration": { - "type": "integer" - }, - "allow_multiselect": { - "type": "boolean" - }, - "layout_type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "answers", - "question" - ] - }, - "PollMedia": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - } - }, - "additionalProperties": false - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" - }, - "poll_media": { - "$ref": "#/definitions/PollMedia" - } - }, - "additionalProperties": false, - "required": [ - "poll_media" - ] - }, - "ChannelOverride": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ] - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "all" - ] - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { - "type": "integer" - }, - "guild_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "integer" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "guild_ids", - "id", - "name" - ] - }, - "GenerateWebAuthnCredentialsSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "password" - ] - }, - "CreateWebAuthnCredentialSchema": { - "type": "object", - "properties": { - "credential": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ticket": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "credential", - "name", - "ticket" - ] - }, - "APIErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "code", - "errors", - "message" - ] - }, - "CaptchaRequiredResponse": { - "type": "object", - "properties": { - "captcha_key": { - "type": "string" - }, - "captcha_sitekey": { - "type": "string" - }, - "captcha_service": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "string" - }, - "afk_channel": { - "$ref": "#/definitions/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { - "type": "string" - }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "template_id": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/definitions/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "Channel": { - "type": "object", - "properties": { - "created_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "type": { - "$ref": "#/definitions/ChannelType" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/Recipient" - } - }, - "last_message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "parent_id": { - "type": [ - "null", - "string" - ] - }, - "parent": { - "$ref": "#/definitions/Channel" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "last_pin_timestamp": { - "type": "integer" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelPermissionOverwrite" - } - }, - "video_quality_mode": { - "type": "integer" - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "rate_limit_per_user": { - "type": "integer" - }, - "topic": { - "type": "string" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "retention_policy_id": { - "type": "string" - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "read_states": { - "type": "array", - "items": { - "$ref": "#/definitions/ReadState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "flags": { - "type": "integer", - "default": 0 - }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "created_at", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "Recipient": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "closed": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "closed", - "id", - "user", - "user_id" - ] - }, - "User": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "desktop": { - "type": "boolean", - "default": false - }, - "mobile": { - "type": "boolean", - "default": false - }, - "premium": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "bot": { - "type": "boolean", - "default": false - }, - "bio": { - "type": "string", - "default": "" - }, - "system": { - "type": "boolean", - "default": false - }, - "nsfw_allowed": { - "type": "boolean", - "default": true - }, - "mfa_enabled": { - "type": "boolean", - "default": false - }, - "webauthn_enabled": { - "type": "boolean", - "default": false - }, - "totp_secret": { - "type": "string", - "default": "" - }, - "totp_last_ticket": { - "type": "string", - "default": "" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "verified": { - "type": "boolean" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "deleted": { - "type": "boolean", - "default": false - }, - "email": { - "type": "string" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "public_flags": { - "type": "integer", - "default": 0 - }, - "purchased_flags": { - "type": "integer", - "default": 0 - }, - "premium_usage_flags": { - "type": "integer", - "default": 0 - }, - "rights": { - "type": "string" - }, - "sessions": { - "type": "array", - "items": { - "$ref": "#/definitions/Session" - } - }, - "relationships": { - "type": "array", - "items": { - "$ref": "#/definitions/Relationship" - } - }, - "connected_accounts": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectedAccount" - } - }, - "data": { - "type": "object", - "properties": { - "valid_tokens_since": { - "type": "string", - "format": "date-time" - }, - "hash": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "valid_tokens_since" - ] - }, - "fingerprints": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "settings": { - "$ref": "#/definitions/UserSettings" - }, - "extended_settings": { - "type": "string", - "default": "{}" - }, - "security_keys": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityKey" - } - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "extended_settings", - "fingerprints", - "flags", - "id", - "mfa_enabled", - "mobile", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "relationships", - "rights", - "security_keys", - "sessions", - "settings", - "system", - "username", - "verified", - "webauthn_enabled" - ] - }, - "Session": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "session_id": { - "type": "string" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "client_info": { - "type": "object", - "properties": { - "client": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "client", - "os", - "version" - ] - }, - "client_status": { - "$ref": "#/definitions/ClientStatus" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "activities", - "client_info", - "client_status", - "id", - "session_id", - "status", - "user", - "user_id" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "Relationship": { - "type": "object", - "properties": { - "from_id": { - "type": "string" - }, - "from": { - "$ref": "#/definitions/User" - }, - "to_id": { - "type": "string" - }, - "to": { - "$ref": "#/definitions/User" - }, - "nickname": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "from", - "from_id", - "id", - "to", - "to_id", - "type" - ] - }, - "RelationshipType": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "ConnectedAccount": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "friend_sync": { - "type": "boolean", - "default": false - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean", - "default": false - }, - "show_activity": { - "type": "integer", - "default": 0 - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean", - "default": true - }, - "visibility": { - "type": "integer", - "default": 0 - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer", - "default": 0 - }, - "two_way_link": { - "type": "boolean", - "default": false - }, - "token_data": { - "anyOf": [ - { - "$ref": "#/definitions/ConnectedAccountTokenData" - }, - { - "type": "null" - } - ] - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "external_id", - "id", - "name", - "type", - "user", - "user_id" - ] - }, - "UserSettings": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "afk_timeout": { - "type": "integer", - "default": 3600 - }, - "allow_accessibility_detection": { - "type": "boolean", - "default": true - }, - "animate_emoji": { - "type": "boolean", - "default": true - }, - "animate_stickers": { - "type": "integer", - "default": 0 - }, - "contact_sync_enabled": { - "type": "boolean", - "default": false - }, - "convert_emoticons": { - "type": "boolean", - "default": false - }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" - }, - { - "type": "null" - } - ], - "default": null - }, - "default_guilds_restricted": { - "type": "boolean", - "default": false - }, - "detect_platform_accounts": { - "type": "boolean", - "default": false - }, - "developer_mode": { - "type": "boolean", - "default": true - }, - "disable_games_tab": { - "type": "boolean", - "default": true - }, - "enable_tts_command": { - "type": "boolean", - "default": false - }, - "explicit_content_filter": { - "type": "integer", - "default": 0 - }, - "friend_discovery_flags": { - "type": "integer", - "default": 0 - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean", - "default": false - }, - "gif_auto_play": { - "type": "boolean", - "default": false - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - }, - "default": [] - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "inline_attachment_media": { - "type": "boolean", - "default": true - }, - "inline_embed_media": { - "type": "boolean", - "default": true - }, - "locale": { - "type": "string", - "default": "en-US" - }, - "message_display_compact": { - "type": "boolean", - "default": false - }, - "native_phone_integration_enabled": { - "type": "boolean", - "default": true - }, - "render_embeds": { - "type": "boolean", - "default": true - }, - "render_reactions": { - "type": "boolean", - "default": true - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "show_current_game": { - "type": "boolean", - "default": true - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "default": "online" - }, - "stream_notifications_enabled": { - "type": "boolean", - "default": false - }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string", - "default": "dark" - }, - "timezone_offset": { - "type": "integer", - "default": 0 - }, - "view_nsfw_guilds": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_discovery_flags", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "index", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset", - "view_nsfw_guilds" - ] - }, - "SecurityKey": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "key_id": { - "type": "string" - }, - "public_key": { - "type": "string" - }, - "counter": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "counter", - "id", - "key_id", - "name", - "public_key", - "user", - "user_id" - ] - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - }, - "Invite": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "temporary": { - "type": "boolean" - }, - "uses": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "max_age": { - "type": "integer" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "inviter_id": { - "type": "string" - }, - "inviter": { - "$ref": "#/definitions/User" - }, - "target_user_id": { - "type": "string" - }, - "target_user": { - "type": "string" - }, - "target_user_type": { - "type": "integer" - }, - "vanity_url": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "code", - "created_at", - "flags", - "guild", - "guild_id", - "inviter", - "max_age", - "max_uses", - "target_user_id", - "temporary", - "uses" - ] - }, - "Message": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "author_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/User" - }, - "member_id": { - "type": "string" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "webhook_id": { - "type": "string" - }, - "webhook": { - "$ref": "#/definitions/Webhook" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "type": "string", - "format": "date-time" - }, - "tts": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "mention_channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/definitions/Reaction" - } - }, - "nonce": { - "type": "string" - }, - "pinned": { - "type": "boolean" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "activity": { - "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "party_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "party_id", - "type" - ] - }, - "flags": { - "type": "integer" - }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type", - "user_id" - ] - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "embeds", - "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "reactions", - "timestamp", - "type" - ] - }, - "Member": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "nick": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "integer" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "pending": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserGuildSettings" - }, - "last_message_id": { - "type": "string" - }, - "joined_by": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "guild", - "guild_id", - "id", - "index", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "user" - ] - }, - "Role": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "color": { - "type": "integer" - }, - "hoist": { - "type": "boolean" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "icon": { - "type": "string" - }, - "unicode_emoji": { - "type": "string" - }, - "tags": { - "type": "object", - "properties": { - "bot_id": { - "type": "string" - }, - "integration_id": { - "type": "string" - }, - "premium_subscriber": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "flags": { - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "UserGuildSettings": { - "type": "object", - "properties": { - "channel_overrides": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - { - "type": "null" - } - ] - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "version": { - "type": "integer" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "type": "number", - "enum": [ - 0 - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_overrides", - "flags", - "guild_id", - "hide_muted_channels", - "message_notifications", - "mobile_push", - "mute_config", - "mute_scheduled_events", - "muted", - "notify_highlights", - "suppress_everyone", - "suppress_roles", - "version" - ] - }, - "Webhook": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/WebhookType" - }, - "name": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "token": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "source_channel_id": { - "type": "string" - }, - "source_channel": { - "$ref": "#/definitions/Channel" - }, - "url": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "application", - "application_id", - "avatar", - "channel", - "channel_id", - "id", - "name", - "source_channel", - "source_channel_id", - "type", - "url", - "user", - "user_id" - ] - }, - "WebhookType": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "Application": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "description": { - "type": "string" - }, - "summary": { - "type": "string", - "default": "" - }, - "type": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "hook": { - "type": "boolean", - "default": true - }, - "bot_public": { - "type": "boolean", - "default": true - }, - "bot_require_code_grant": { - "type": "boolean", - "default": false - }, - "verify_key": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "rpc_application_state": { - "type": "integer", - "default": 0 - }, - "store_application_state": { - "type": "integer", - "default": 1 - }, - "verification_state": { - "type": "integer", - "default": 1 - }, - "interactions_endpoint_url": { - "type": "string" - }, - "integration_public": { - "type": "boolean", - "default": true - }, - "integration_require_code_grant": { - "type": "boolean", - "default": false - }, - "discoverability_state": { - "type": "integer", - "default": 1 - }, - "discovery_eligibility_flags": { - "type": "integer", - "default": 2240 - }, - "bot": { - "$ref": "#/definitions/User" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "cover_image": { - "type": "string" - }, - "install_params": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "permissions", - "scopes" - ] - }, - "terms_of_service_url": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "discoverability_state", - "discovery_eligibility_flags", - "flags", - "hook", - "id", - "integration_public", - "integration_require_code_grant", - "name", - "owner", - "redirect_uris", - "rpc_application_state", - "store_application_state", - "summary", - "verification_state", - "verify_key" - ] - }, - "Team": { - "type": "object", - "properties": { - "icon": { - "type": "string" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/TeamMember" - } - }, - "name": { - "type": "string" - }, - "owner_user_id": { - "type": "string" - }, - "owner_user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "members", - "name", - "owner_user", - "owner_user_id" - ] - }, - "TeamMember": { - "type": "object", - "properties": { - "membership_state": { - "$ref": "#/definitions/TeamMemberState" - }, - "permissions": { - "type": "array", - "items": { - "type": "string" - } - }, - "team_id": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "membership_state", - "permissions", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "Sticker": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" - }, - "pack_id": { - "type": "string" - }, - "pack": { - "$ref": "#/definitions/StickerPack" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "type": { - "$ref": "#/definitions/StickerType" - }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "format_type", - "id", - "name", - "pack", - "type" - ] - }, - "StickerPack": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "cover_sticker_id": { - "type": "string" - }, - "cover_sticker": { - "$ref": "#/definitions/Sticker" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "stickers" - ] - }, - "StickerType": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "Attachment": { - "type": "object", - "properties": { - "filename": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - }, - "content_type": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "message": { - "$ref": "#/definitions/Message" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", - "url" - ] - }, - "Reaction": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "count", - "emoji", - "user_ids" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "Poll": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "expiry": { - "type": "string", - "format": "date-time" - }, - "allow_multiselect": { - "type": "boolean" - }, - "results": { - "$ref": "#/definitions/PollResult" - } - }, - "additionalProperties": false, - "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" - ] - }, - "PollResult": { - "type": "object", - "properties": { - "is_finalized": { - "type": "boolean" - }, - "answer_counts": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswerCount" - } - } - }, - "additionalProperties": false, - "required": [ - "answer_counts", - "is_finalized" - ] - }, - "PollAnswerCount": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "count": { - "type": "integer" - }, - "me_voted": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "id", - "me_voted" - ] - }, - "VoiceState": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "session_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_mute": { - "type": "boolean" - }, - "self_stream": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "suppress": { - "type": "boolean" - }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "deaf", - "guild_id", - "id", - "member", - "mute", - "self_deaf", - "self_mute", - "self_video", - "session_id", - "suppress", - "token", - "user", - "user_id" - ] - }, - "ReadState": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "last_message_id": { - "type": "string" - }, - "public_ack": { - "type": "string" - }, - "notifications_cursor": { - "type": "string" - }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "mention_count": { - "type": "integer" - }, - "manual": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "id", - "last_message_id", - "manual", - "mention_count", - "notifications_cursor", - "public_ack", - "user", - "user_id" - ] - }, - "Ban": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "executor_id": { - "type": "string" - }, - "executor": { - "$ref": "#/definitions/User" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor", - "executor_id", - "guild", - "guild_id", - "id", - "ip", - "user", - "user_id" - ] - }, - "Template": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "usage_count": { - "type": "integer" - }, - "creator_id": { - "type": "string" - }, - "creator": { - "$ref": "#/definitions/User" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "serialized_source_guild": { - "$ref": "#/definitions/Guild" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "created_at", - "creator", - "creator_id", - "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" - ] - }, - "Emoji": { - "type": "object", - "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "managed": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "require_colons": { - "type": "boolean" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" - ] - }, - "GuildWelcomeScreen": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "channel_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "description", - "enabled", - "welcome_channels" - ] - }, - "GuildMessagesSearchMessage": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "content": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/PublicUser" - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicUser" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, - "timestamp": { - "type": "string" - }, - "edited_timestamp": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "hit": { - "type": "boolean", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ] - }, - "GuildVanityUrl": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "uses": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "code", - "uses" - ] - }, - "GuildVanityUrlNoInvite": { - "type": "object", - "properties": { - "code": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "code" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "TenorGifResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" - ] - }, - "BackupCode": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "code": { - "type": "string" - }, - "consumed": { - "type": "boolean" - }, - "expired": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "consumed", - "expired", - "id", - "user" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "toJSON": { - "type": "object", - "additionalProperties": false - }, - "_do_validate": { - "type": "object", - "additionalProperties": false - }, - "assign": { - "type": "object", - "additionalProperties": false - }, - "hasId": { - "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", - "type": "object", - "additionalProperties": false - }, - "save": { - "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", - "type": "object", - "additionalProperties": false - }, - "remove": { - "description": "Removes current entity from the database.", - "type": "object", - "additionalProperties": false - }, - "softRemove": { - "description": "Records the delete date of current entity.", - "type": "object", - "additionalProperties": false - }, - "recover": { - "description": "Recovers a given entity in the database.", - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "banner": { - "type": "string" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "_do_validate", - "assign", - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "hasId", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "recover", - "reload", - "remove", - "roles", - "save", - "softRemove", - "stickers", - "toJSON", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "DmChannelDTO": { - "type": "object", - "properties": { - "icon": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": "string" - }, - "last_message_id": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "origin_channel_id": { - "type": [ - "null", - "string" - ] - }, - "owner_id": { - "type": "string" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/MinimalPublicUserDTO" - } - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "icon", - "id", - "last_message_id", - "name", - "origin_channel_id", - "recipients", - "type" - ] - }, - "MinimalPublicUserDTO": { - "type": "object", - "properties": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - }, - "badge_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - }, - "Categories": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "localizations": { - "type": "string" - }, - "is_primary": { - "type": "boolean" - }, - "icon": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "is_primary", - "localizations", - "name" - ] - }, - "GuildVoiceRegion": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "custom": { - "type": "boolean" - }, - "deprecated": { - "type": "boolean" - }, - "optimal": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom", - "deprecated", - "id", - "name", - "optimal" - ] - }, - "UserLimits": { - "type": "object", - "properties": { - "maxGuilds": { - "type": "integer", - "default": 1048576 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - }, - "maxBio": { - "type": "integer", - "default": 190 - } - }, - "additionalProperties": false, - "required": [ - "maxBio", - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "GuildLimits": { - "type": "object", - "properties": { - "maxRoles": { - "type": "integer", - "default": 1000 - }, - "maxEmojis": { - "type": "integer", - "default": 2000 - }, - "maxMembers": { - "type": "integer", - "default": 25000000 - }, - "maxChannels": { - "type": "integer", - "default": 65535 - }, - "maxBulkBanUsers": { - "type": "integer", - "default": 200 - }, - "maxChannelsInCategory": { - "type": "integer", - "default": 65535 - } - }, - "additionalProperties": false, - "required": [ - "maxBulkBanUsers", - "maxChannels", - "maxChannelsInCategory", - "maxEmojis", - "maxMembers", - "maxRoles" - ] - }, - "MessageLimits": { - "type": "object", - "properties": { - "maxCharacters": { - "type": "integer", - "default": 1048576 - }, - "maxTTSCharacters": { - "type": "integer", - "default": 160 - }, - "maxReactions": { - "type": "integer", - "default": 2048 - }, - "maxAttachmentSize": { - "type": "integer", - "default": 1073741824 - }, - "maxBulkDelete": { - "type": "integer", - "default": 1000 - }, - "maxEmbedDownloadSize": { - "type": "integer", - "default": 5242880 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "maxReactions", - "maxTTSCharacters" - ] - }, - "ChannelLimits": { - "type": "object", - "properties": { - "maxPins": { - "type": "integer", - "default": 500 - }, - "maxTopic": { - "type": "integer", - "default": 1024 - }, - "maxWebhooks": { - "type": "integer", - "default": 100 - } - }, - "additionalProperties": false, - "required": [ - "maxPins", - "maxTopic", - "maxWebhooks" - ] - }, - "RateLimits": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": false - }, - "ip": { - "$ref": "#/definitions/RateLimitOptions" - }, - "global": { - "$ref": "#/definitions/RateLimitOptions" - }, - "error": { - "$ref": "#/definitions/RateLimitOptions" - }, - "routes": { - "$ref": "#/definitions/RouteRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "error", - "global", - "ip", - "routes" - ] - }, - "RateLimitOptions": { - "type": "object", - "properties": { - "bot": { - "type": "integer" - }, - "count": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "onyIp": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "window" - ] - }, - "RouteRateLimit": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/definitions/RateLimitOptions" - }, - "webhook": { - "$ref": "#/definitions/RateLimitOptions" - }, - "channel": { - "$ref": "#/definitions/RateLimitOptions" - }, - "auth": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "GlobalRateLimits": { - "type": "object", - "properties": { - "register": { - "$ref": "#/definitions/GlobalRateLimit" - }, - "sendMessage": { - "$ref": "#/definitions/GlobalRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "register", - "sendMessage" - ] - }, - "GlobalRateLimit": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "default": 100 - }, - "window": { - "type": "integer", - "default": 3600000 - }, - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "limit", - "window" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type" - ] - }, - "UserProfile": { - "type": "object", - "properties": { - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, "ConnectedAccountCommonOAuthTokenResponse": { "type": "object", "properties": { @@ -9783,9543 +57,6 @@ "scope", "token_type" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "ConnectedAccountTokenData": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - }, - "expires_at": { - "type": "integer" - }, - "fetched_at": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "fetched_at" - ] - }, - "ChannelModifySchema": { - "type": "object", - "properties": { - "name": { - "maxLength": 100, - "type": "string" - }, - "type": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "topic": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - }, - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - } - }, - "parent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActivitySchema": { - "type": "object", - "properties": { - "afk": { - "type": "boolean" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "since": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "status" - ] - }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "Activity": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ActivityType" - }, - "url": { - "type": "string" - }, - "created_at": { - "type": "integer" - }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] - }, - "application_id": { - "type": "string" - }, - "details": { - "type": "string" - }, - "state": { - "type": "string" - }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] - }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false - }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false - }, - "instance": { - "type": "boolean" - }, - "flags": { - "type": "string" - }, - "id": { - "type": "string" - }, - "sync_id": { - "type": "string" - }, - "metadata": { - "type": "object", - "properties": { - "context_uri": { - "type": "string" - }, - "album_id": { - "type": "string" - }, - "artist_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] - }, - "session_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "flags", - "name", - "session_id", - "type" - ] - }, - "ActivityType": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "color": { - "type": "integer" - }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/definitions/EmbedImage" - }, - "thumbnail": { - "$ref": "#/definitions/EmbedImage" - }, - "video": { - "$ref": "#/definitions/EmbedImage" - }, - "provider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - }, - "additionalProperties": false - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActionRowComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.ActionRow" - }, - "components": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/definitions/ButtonComponent" - }, - { - "$ref": "#/definitions/SelectMenuComponent" - }, - { - "$ref": "#/definitions/StringSelectMenuComponent" - }, - { - "$ref": "#/definitions/TextInputComponent" - } - ] - } - } - }, - "additionalProperties": false, - "required": [ - "components", - "type" - ] - }, - "MessageComponentType.ActionRow": { - "type": "number", - "enum": [ - 1 - ] - }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.Button" - }, - "style": { - "$ref": "#/definitions/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "style", - "type" - ] - }, - "MessageComponentType.Button": { - "type": "number", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - "SelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "type" - ] - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "type" - ] - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.StringSelect" - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuOption" - } - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "options", - "type" - ] - }, - "MessageComponentType.StringSelect": { - "type": "number", - "enum": [ - 3 - ] - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "default": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "label", - "value" - ] - }, - "TextInputComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.TextInput" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/definitions/TextInputStyle" - }, - "label": { - "type": "string" - }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" - }, - "value": { - "type": "string" - }, - "placeholder": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "label", - "style", - "type" - ] - }, - "MessageComponentType.TextInput": { - "type": "number", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "PollCreationSchema": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "duration": { - "type": "integer" - }, - "allow_multiselect": { - "type": "boolean" - }, - "layout_type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "answers", - "question" - ] - }, - "PollMedia": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - } - }, - "additionalProperties": false - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" - }, - "poll_media": { - "$ref": "#/definitions/PollMedia" - } - }, - "additionalProperties": false, - "required": [ - "poll_media" - ] - }, - "ChannelOverride": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ] - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "all" - ] - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { - "type": "integer" - }, - "guild_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "integer" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "guild_ids", - "id", - "name" - ] - }, - "GenerateWebAuthnCredentialsSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "password" - ] - }, - "CreateWebAuthnCredentialSchema": { - "type": "object", - "properties": { - "credential": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ticket": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "credential", - "name", - "ticket" - ] - }, - "APIErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "code", - "errors", - "message" - ] - }, - "CaptchaRequiredResponse": { - "type": "object", - "properties": { - "captcha_key": { - "type": "string" - }, - "captcha_sitekey": { - "type": "string" - }, - "captcha_service": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "string" - }, - "afk_channel": { - "$ref": "#/definitions/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { - "type": "string" - }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "template_id": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/definitions/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "Channel": { - "type": "object", - "properties": { - "created_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "type": { - "$ref": "#/definitions/ChannelType" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/Recipient" - } - }, - "last_message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "parent_id": { - "type": [ - "null", - "string" - ] - }, - "parent": { - "$ref": "#/definitions/Channel" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "last_pin_timestamp": { - "type": "integer" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelPermissionOverwrite" - } - }, - "video_quality_mode": { - "type": "integer" - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "rate_limit_per_user": { - "type": "integer" - }, - "topic": { - "type": "string" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "retention_policy_id": { - "type": "string" - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "read_states": { - "type": "array", - "items": { - "$ref": "#/definitions/ReadState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "flags": { - "type": "integer", - "default": 0 - }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "created_at", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "Recipient": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "closed": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "closed", - "id", - "user", - "user_id" - ] - }, - "User": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "desktop": { - "type": "boolean", - "default": false - }, - "mobile": { - "type": "boolean", - "default": false - }, - "premium": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "bot": { - "type": "boolean", - "default": false - }, - "bio": { - "type": "string", - "default": "" - }, - "system": { - "type": "boolean", - "default": false - }, - "nsfw_allowed": { - "type": "boolean", - "default": true - }, - "mfa_enabled": { - "type": "boolean", - "default": false - }, - "webauthn_enabled": { - "type": "boolean", - "default": false - }, - "totp_secret": { - "type": "string", - "default": "" - }, - "totp_last_ticket": { - "type": "string", - "default": "" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "verified": { - "type": "boolean" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "deleted": { - "type": "boolean", - "default": false - }, - "email": { - "type": "string" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "public_flags": { - "type": "integer", - "default": 0 - }, - "purchased_flags": { - "type": "integer", - "default": 0 - }, - "premium_usage_flags": { - "type": "integer", - "default": 0 - }, - "rights": { - "type": "string" - }, - "sessions": { - "type": "array", - "items": { - "$ref": "#/definitions/Session" - } - }, - "relationships": { - "type": "array", - "items": { - "$ref": "#/definitions/Relationship" - } - }, - "connected_accounts": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectedAccount" - } - }, - "data": { - "type": "object", - "properties": { - "valid_tokens_since": { - "type": "string", - "format": "date-time" - }, - "hash": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "valid_tokens_since" - ] - }, - "fingerprints": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "settings": { - "$ref": "#/definitions/UserSettings" - }, - "extended_settings": { - "type": "string", - "default": "{}" - }, - "security_keys": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityKey" - } - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "extended_settings", - "fingerprints", - "flags", - "id", - "mfa_enabled", - "mobile", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "relationships", - "rights", - "security_keys", - "sessions", - "settings", - "system", - "username", - "verified", - "webauthn_enabled" - ] - }, - "Session": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "session_id": { - "type": "string" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "client_info": { - "type": "object", - "properties": { - "client": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "client", - "os", - "version" - ] - }, - "client_status": { - "$ref": "#/definitions/ClientStatus" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "activities", - "client_info", - "client_status", - "id", - "session_id", - "status", - "user", - "user_id" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "Relationship": { - "type": "object", - "properties": { - "from_id": { - "type": "string" - }, - "from": { - "$ref": "#/definitions/User" - }, - "to_id": { - "type": "string" - }, - "to": { - "$ref": "#/definitions/User" - }, - "nickname": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "from", - "from_id", - "id", - "to", - "to_id", - "type" - ] - }, - "RelationshipType": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "ConnectedAccount": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "friend_sync": { - "type": "boolean", - "default": false - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean", - "default": false - }, - "show_activity": { - "type": "integer", - "default": 0 - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean", - "default": true - }, - "visibility": { - "type": "integer", - "default": 0 - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer", - "default": 0 - }, - "two_way_link": { - "type": "boolean", - "default": false - }, - "token_data": { - "anyOf": [ - { - "$ref": "#/definitions/ConnectedAccountTokenData" - }, - { - "type": "null" - } - ] - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "external_id", - "id", - "name", - "type", - "user", - "user_id" - ] - }, - "UserSettings": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "afk_timeout": { - "type": "integer", - "default": 3600 - }, - "allow_accessibility_detection": { - "type": "boolean", - "default": true - }, - "animate_emoji": { - "type": "boolean", - "default": true - }, - "animate_stickers": { - "type": "integer", - "default": 0 - }, - "contact_sync_enabled": { - "type": "boolean", - "default": false - }, - "convert_emoticons": { - "type": "boolean", - "default": false - }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" - }, - { - "type": "null" - } - ], - "default": null - }, - "default_guilds_restricted": { - "type": "boolean", - "default": false - }, - "detect_platform_accounts": { - "type": "boolean", - "default": false - }, - "developer_mode": { - "type": "boolean", - "default": true - }, - "disable_games_tab": { - "type": "boolean", - "default": true - }, - "enable_tts_command": { - "type": "boolean", - "default": false - }, - "explicit_content_filter": { - "type": "integer", - "default": 0 - }, - "friend_discovery_flags": { - "type": "integer", - "default": 0 - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean", - "default": false - }, - "gif_auto_play": { - "type": "boolean", - "default": false - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - }, - "default": [] - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "inline_attachment_media": { - "type": "boolean", - "default": true - }, - "inline_embed_media": { - "type": "boolean", - "default": true - }, - "locale": { - "type": "string", - "default": "en-US" - }, - "message_display_compact": { - "type": "boolean", - "default": false - }, - "native_phone_integration_enabled": { - "type": "boolean", - "default": true - }, - "render_embeds": { - "type": "boolean", - "default": true - }, - "render_reactions": { - "type": "boolean", - "default": true - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "show_current_game": { - "type": "boolean", - "default": true - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "default": "online" - }, - "stream_notifications_enabled": { - "type": "boolean", - "default": false - }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string", - "default": "dark" - }, - "timezone_offset": { - "type": "integer", - "default": 0 - }, - "view_nsfw_guilds": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_discovery_flags", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "index", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset", - "view_nsfw_guilds" - ] - }, - "SecurityKey": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "key_id": { - "type": "string" - }, - "public_key": { - "type": "string" - }, - "counter": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "counter", - "id", - "key_id", - "name", - "public_key", - "user", - "user_id" - ] - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - }, - "Invite": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "temporary": { - "type": "boolean" - }, - "uses": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "max_age": { - "type": "integer" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "inviter_id": { - "type": "string" - }, - "inviter": { - "$ref": "#/definitions/User" - }, - "target_user_id": { - "type": "string" - }, - "target_user": { - "type": "string" - }, - "target_user_type": { - "type": "integer" - }, - "vanity_url": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "code", - "created_at", - "flags", - "guild", - "guild_id", - "inviter", - "max_age", - "max_uses", - "target_user_id", - "temporary", - "uses" - ] - }, - "Message": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "author_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/User" - }, - "member_id": { - "type": "string" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "webhook_id": { - "type": "string" - }, - "webhook": { - "$ref": "#/definitions/Webhook" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "type": "string", - "format": "date-time" - }, - "tts": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "mention_channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/definitions/Reaction" - } - }, - "nonce": { - "type": "string" - }, - "pinned": { - "type": "boolean" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "activity": { - "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "party_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "party_id", - "type" - ] - }, - "flags": { - "type": "integer" - }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type", - "user_id" - ] - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "embeds", - "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "reactions", - "timestamp", - "type" - ] - }, - "Member": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "nick": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "integer" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "pending": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserGuildSettings" - }, - "last_message_id": { - "type": "string" - }, - "joined_by": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "guild", - "guild_id", - "id", - "index", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "user" - ] - }, - "Role": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "color": { - "type": "integer" - }, - "hoist": { - "type": "boolean" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "icon": { - "type": "string" - }, - "unicode_emoji": { - "type": "string" - }, - "tags": { - "type": "object", - "properties": { - "bot_id": { - "type": "string" - }, - "integration_id": { - "type": "string" - }, - "premium_subscriber": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "flags": { - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "UserGuildSettings": { - "type": "object", - "properties": { - "channel_overrides": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - { - "type": "null" - } - ] - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "version": { - "type": "integer" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "type": "number", - "enum": [ - 0 - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_overrides", - "flags", - "guild_id", - "hide_muted_channels", - "message_notifications", - "mobile_push", - "mute_config", - "mute_scheduled_events", - "muted", - "notify_highlights", - "suppress_everyone", - "suppress_roles", - "version" - ] - }, - "Webhook": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/WebhookType" - }, - "name": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "token": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "source_channel_id": { - "type": "string" - }, - "source_channel": { - "$ref": "#/definitions/Channel" - }, - "url": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "application", - "application_id", - "avatar", - "channel", - "channel_id", - "id", - "name", - "source_channel", - "source_channel_id", - "type", - "url", - "user", - "user_id" - ] - }, - "WebhookType": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "Application": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "description": { - "type": "string" - }, - "summary": { - "type": "string", - "default": "" - }, - "type": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "hook": { - "type": "boolean", - "default": true - }, - "bot_public": { - "type": "boolean", - "default": true - }, - "bot_require_code_grant": { - "type": "boolean", - "default": false - }, - "verify_key": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "rpc_application_state": { - "type": "integer", - "default": 0 - }, - "store_application_state": { - "type": "integer", - "default": 1 - }, - "verification_state": { - "type": "integer", - "default": 1 - }, - "interactions_endpoint_url": { - "type": "string" - }, - "integration_public": { - "type": "boolean", - "default": true - }, - "integration_require_code_grant": { - "type": "boolean", - "default": false - }, - "discoverability_state": { - "type": "integer", - "default": 1 - }, - "discovery_eligibility_flags": { - "type": "integer", - "default": 2240 - }, - "bot": { - "$ref": "#/definitions/User" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "cover_image": { - "type": "string" - }, - "install_params": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "permissions", - "scopes" - ] - }, - "terms_of_service_url": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "discoverability_state", - "discovery_eligibility_flags", - "flags", - "hook", - "id", - "integration_public", - "integration_require_code_grant", - "name", - "owner", - "redirect_uris", - "rpc_application_state", - "store_application_state", - "summary", - "verification_state", - "verify_key" - ] - }, - "Team": { - "type": "object", - "properties": { - "icon": { - "type": "string" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/TeamMember" - } - }, - "name": { - "type": "string" - }, - "owner_user_id": { - "type": "string" - }, - "owner_user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "members", - "name", - "owner_user", - "owner_user_id" - ] - }, - "TeamMember": { - "type": "object", - "properties": { - "membership_state": { - "$ref": "#/definitions/TeamMemberState" - }, - "permissions": { - "type": "array", - "items": { - "type": "string" - } - }, - "team_id": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "membership_state", - "permissions", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "Sticker": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" - }, - "pack_id": { - "type": "string" - }, - "pack": { - "$ref": "#/definitions/StickerPack" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "type": { - "$ref": "#/definitions/StickerType" - }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "format_type", - "id", - "name", - "pack", - "type" - ] - }, - "StickerPack": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "cover_sticker_id": { - "type": "string" - }, - "cover_sticker": { - "$ref": "#/definitions/Sticker" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "stickers" - ] - }, - "StickerType": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "Attachment": { - "type": "object", - "properties": { - "filename": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - }, - "content_type": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "message": { - "$ref": "#/definitions/Message" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", - "url" - ] - }, - "Reaction": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "count", - "emoji", - "user_ids" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "Poll": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "expiry": { - "type": "string", - "format": "date-time" - }, - "allow_multiselect": { - "type": "boolean" - }, - "results": { - "$ref": "#/definitions/PollResult" - } - }, - "additionalProperties": false, - "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" - ] - }, - "PollResult": { - "type": "object", - "properties": { - "is_finalized": { - "type": "boolean" - }, - "answer_counts": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswerCount" - } - } - }, - "additionalProperties": false, - "required": [ - "answer_counts", - "is_finalized" - ] - }, - "PollAnswerCount": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "count": { - "type": "integer" - }, - "me_voted": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "id", - "me_voted" - ] - }, - "VoiceState": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "session_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_mute": { - "type": "boolean" - }, - "self_stream": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "suppress": { - "type": "boolean" - }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "deaf", - "guild_id", - "id", - "member", - "mute", - "self_deaf", - "self_mute", - "self_video", - "session_id", - "suppress", - "token", - "user", - "user_id" - ] - }, - "ReadState": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "last_message_id": { - "type": "string" - }, - "public_ack": { - "type": "string" - }, - "notifications_cursor": { - "type": "string" - }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "mention_count": { - "type": "integer" - }, - "manual": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "id", - "last_message_id", - "manual", - "mention_count", - "notifications_cursor", - "public_ack", - "user", - "user_id" - ] - }, - "Ban": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "executor_id": { - "type": "string" - }, - "executor": { - "$ref": "#/definitions/User" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor", - "executor_id", - "guild", - "guild_id", - "id", - "ip", - "user", - "user_id" - ] - }, - "Template": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "usage_count": { - "type": "integer" - }, - "creator_id": { - "type": "string" - }, - "creator": { - "$ref": "#/definitions/User" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "serialized_source_guild": { - "$ref": "#/definitions/Guild" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "created_at", - "creator", - "creator_id", - "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" - ] - }, - "Emoji": { - "type": "object", - "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "managed": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "require_colons": { - "type": "boolean" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" - ] - }, - "GuildWelcomeScreen": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "channel_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "description", - "enabled", - "welcome_channels" - ] - }, - "GuildMessagesSearchMessage": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "content": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/PublicUser" - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicUser" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, - "timestamp": { - "type": "string" - }, - "edited_timestamp": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "hit": { - "type": "boolean", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ] - }, - "GuildVanityUrl": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "uses": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "code", - "uses" - ] - }, - "GuildVanityUrlNoInvite": { - "type": "object", - "properties": { - "code": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "code" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "TenorGifResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" - ] - }, - "BackupCode": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "code": { - "type": "string" - }, - "consumed": { - "type": "boolean" - }, - "expired": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "consumed", - "expired", - "id", - "user" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "toJSON": { - "type": "object", - "additionalProperties": false - }, - "_do_validate": { - "type": "object", - "additionalProperties": false - }, - "assign": { - "type": "object", - "additionalProperties": false - }, - "hasId": { - "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", - "type": "object", - "additionalProperties": false - }, - "save": { - "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", - "type": "object", - "additionalProperties": false - }, - "remove": { - "description": "Removes current entity from the database.", - "type": "object", - "additionalProperties": false - }, - "softRemove": { - "description": "Records the delete date of current entity.", - "type": "object", - "additionalProperties": false - }, - "recover": { - "description": "Recovers a given entity in the database.", - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "banner": { - "type": "string" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "_do_validate", - "assign", - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "hasId", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "recover", - "reload", - "remove", - "roles", - "save", - "softRemove", - "stickers", - "toJSON", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "DmChannelDTO": { - "type": "object", - "properties": { - "icon": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": "string" - }, - "last_message_id": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "origin_channel_id": { - "type": [ - "null", - "string" - ] - }, - "owner_id": { - "type": "string" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/MinimalPublicUserDTO" - } - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "icon", - "id", - "last_message_id", - "name", - "origin_channel_id", - "recipients", - "type" - ] - }, - "MinimalPublicUserDTO": { - "type": "object", - "properties": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - }, - "badge_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - }, - "Categories": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "localizations": { - "type": "string" - }, - "is_primary": { - "type": "boolean" - }, - "icon": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "is_primary", - "localizations", - "name" - ] - }, - "GuildVoiceRegion": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "custom": { - "type": "boolean" - }, - "deprecated": { - "type": "boolean" - }, - "optimal": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom", - "deprecated", - "id", - "name", - "optimal" - ] - }, - "UserLimits": { - "type": "object", - "properties": { - "maxGuilds": { - "type": "integer", - "default": 1048576 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - }, - "maxBio": { - "type": "integer", - "default": 190 - } - }, - "additionalProperties": false, - "required": [ - "maxBio", - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "GuildLimits": { - "type": "object", - "properties": { - "maxRoles": { - "type": "integer", - "default": 1000 - }, - "maxEmojis": { - "type": "integer", - "default": 2000 - }, - "maxMembers": { - "type": "integer", - "default": 25000000 - }, - "maxChannels": { - "type": "integer", - "default": 65535 - }, - "maxBulkBanUsers": { - "type": "integer", - "default": 200 - }, - "maxChannelsInCategory": { - "type": "integer", - "default": 65535 - } - }, - "additionalProperties": false, - "required": [ - "maxBulkBanUsers", - "maxChannels", - "maxChannelsInCategory", - "maxEmojis", - "maxMembers", - "maxRoles" - ] - }, - "MessageLimits": { - "type": "object", - "properties": { - "maxCharacters": { - "type": "integer", - "default": 1048576 - }, - "maxTTSCharacters": { - "type": "integer", - "default": 160 - }, - "maxReactions": { - "type": "integer", - "default": 2048 - }, - "maxAttachmentSize": { - "type": "integer", - "default": 1073741824 - }, - "maxBulkDelete": { - "type": "integer", - "default": 1000 - }, - "maxEmbedDownloadSize": { - "type": "integer", - "default": 5242880 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "maxReactions", - "maxTTSCharacters" - ] - }, - "ChannelLimits": { - "type": "object", - "properties": { - "maxPins": { - "type": "integer", - "default": 500 - }, - "maxTopic": { - "type": "integer", - "default": 1024 - }, - "maxWebhooks": { - "type": "integer", - "default": 100 - } - }, - "additionalProperties": false, - "required": [ - "maxPins", - "maxTopic", - "maxWebhooks" - ] - }, - "RateLimits": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": false - }, - "ip": { - "$ref": "#/definitions/RateLimitOptions" - }, - "global": { - "$ref": "#/definitions/RateLimitOptions" - }, - "error": { - "$ref": "#/definitions/RateLimitOptions" - }, - "routes": { - "$ref": "#/definitions/RouteRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "error", - "global", - "ip", - "routes" - ] - }, - "RateLimitOptions": { - "type": "object", - "properties": { - "bot": { - "type": "integer" - }, - "count": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "onyIp": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "window" - ] - }, - "RouteRateLimit": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/definitions/RateLimitOptions" - }, - "webhook": { - "$ref": "#/definitions/RateLimitOptions" - }, - "channel": { - "$ref": "#/definitions/RateLimitOptions" - }, - "auth": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "GlobalRateLimits": { - "type": "object", - "properties": { - "register": { - "$ref": "#/definitions/GlobalRateLimit" - }, - "sendMessage": { - "$ref": "#/definitions/GlobalRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "register", - "sendMessage" - ] - }, - "GlobalRateLimit": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "default": 100 - }, - "window": { - "type": "integer", - "default": 3600000 - }, - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "limit", - "window" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type" - ] - }, - "UserProfile": { - "type": "object", - "properties": { - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ExpressResponse": { - "type": "object", - "additionalProperties": false, - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "ConnectedAccountTokenData": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - }, - "expires_at": { - "type": "integer" - }, - "fetched_at": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "fetched_at" - ] - }, - "ChannelModifySchema": { - "type": "object", - "properties": { - "name": { - "maxLength": 100, - "type": "string" - }, - "type": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "topic": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - }, - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - } - }, - "parent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActivitySchema": { - "type": "object", - "properties": { - "afk": { - "type": "boolean" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "since": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "status" - ] - }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "Activity": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ActivityType" - }, - "url": { - "type": "string" - }, - "created_at": { - "type": "integer" - }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] - }, - "application_id": { - "type": "string" - }, - "details": { - "type": "string" - }, - "state": { - "type": "string" - }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] - }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false - }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false - }, - "instance": { - "type": "boolean" - }, - "flags": { - "type": "string" - }, - "id": { - "type": "string" - }, - "sync_id": { - "type": "string" - }, - "metadata": { - "type": "object", - "properties": { - "context_uri": { - "type": "string" - }, - "album_id": { - "type": "string" - }, - "artist_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] - }, - "session_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "flags", - "name", - "session_id", - "type" - ] - }, - "ActivityType": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "color": { - "type": "integer" - }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/definitions/EmbedImage" - }, - "thumbnail": { - "$ref": "#/definitions/EmbedImage" - }, - "video": { - "$ref": "#/definitions/EmbedImage" - }, - "provider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - }, - "additionalProperties": false - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActionRowComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.ActionRow" - }, - "components": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/definitions/ButtonComponent" - }, - { - "$ref": "#/definitions/SelectMenuComponent" - }, - { - "$ref": "#/definitions/StringSelectMenuComponent" - }, - { - "$ref": "#/definitions/TextInputComponent" - } - ] - } - } - }, - "additionalProperties": false, - "required": [ - "components", - "type" - ] - }, - "MessageComponentType.ActionRow": { - "type": "number", - "enum": [ - 1 - ] - }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.Button" - }, - "style": { - "$ref": "#/definitions/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "style", - "type" - ] - }, - "MessageComponentType.Button": { - "type": "number", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - "SelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "type" - ] - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "type" - ] - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.StringSelect" - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuOption" - } - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "options", - "type" - ] - }, - "MessageComponentType.StringSelect": { - "type": "number", - "enum": [ - 3 - ] - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "default": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "label", - "value" - ] - }, - "TextInputComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.TextInput" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/definitions/TextInputStyle" - }, - "label": { - "type": "string" - }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" - }, - "value": { - "type": "string" - }, - "placeholder": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "label", - "style", - "type" - ] - }, - "MessageComponentType.TextInput": { - "type": "number", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "PollCreationSchema": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "duration": { - "type": "integer" - }, - "allow_multiselect": { - "type": "boolean" - }, - "layout_type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "answers", - "question" - ] - }, - "PollMedia": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - } - }, - "additionalProperties": false - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" - }, - "poll_media": { - "$ref": "#/definitions/PollMedia" - } - }, - "additionalProperties": false, - "required": [ - "poll_media" - ] - }, - "ChannelOverride": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ] - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "all" - ] - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { - "type": "integer" - }, - "guild_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "integer" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "guild_ids", - "id", - "name" - ] - }, - "GenerateWebAuthnCredentialsSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "password" - ] - }, - "CreateWebAuthnCredentialSchema": { - "type": "object", - "properties": { - "credential": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ticket": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "credential", - "name", - "ticket" - ] - }, - "APIErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "code", - "errors", - "message" - ] - }, - "CaptchaRequiredResponse": { - "type": "object", - "properties": { - "captcha_key": { - "type": "string" - }, - "captcha_sitekey": { - "type": "string" - }, - "captcha_service": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "string" - }, - "afk_channel": { - "$ref": "#/definitions/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { - "type": "string" - }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "template_id": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/definitions/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "Channel": { - "type": "object", - "properties": { - "created_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "type": { - "$ref": "#/definitions/ChannelType" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/Recipient" - } - }, - "last_message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "parent_id": { - "type": [ - "null", - "string" - ] - }, - "parent": { - "$ref": "#/definitions/Channel" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "last_pin_timestamp": { - "type": "integer" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelPermissionOverwrite" - } - }, - "video_quality_mode": { - "type": "integer" - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "rate_limit_per_user": { - "type": "integer" - }, - "topic": { - "type": "string" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "retention_policy_id": { - "type": "string" - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "read_states": { - "type": "array", - "items": { - "$ref": "#/definitions/ReadState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "flags": { - "type": "integer", - "default": 0 - }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "created_at", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "Recipient": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "closed": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "closed", - "id", - "user", - "user_id" - ] - }, - "User": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "desktop": { - "type": "boolean", - "default": false - }, - "mobile": { - "type": "boolean", - "default": false - }, - "premium": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "bot": { - "type": "boolean", - "default": false - }, - "bio": { - "type": "string", - "default": "" - }, - "system": { - "type": "boolean", - "default": false - }, - "nsfw_allowed": { - "type": "boolean", - "default": true - }, - "mfa_enabled": { - "type": "boolean", - "default": false - }, - "webauthn_enabled": { - "type": "boolean", - "default": false - }, - "totp_secret": { - "type": "string", - "default": "" - }, - "totp_last_ticket": { - "type": "string", - "default": "" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "verified": { - "type": "boolean" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "deleted": { - "type": "boolean", - "default": false - }, - "email": { - "type": "string" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "public_flags": { - "type": "integer", - "default": 0 - }, - "purchased_flags": { - "type": "integer", - "default": 0 - }, - "premium_usage_flags": { - "type": "integer", - "default": 0 - }, - "rights": { - "type": "string" - }, - "sessions": { - "type": "array", - "items": { - "$ref": "#/definitions/Session" - } - }, - "relationships": { - "type": "array", - "items": { - "$ref": "#/definitions/Relationship" - } - }, - "connected_accounts": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectedAccount" - } - }, - "data": { - "type": "object", - "properties": { - "valid_tokens_since": { - "type": "string", - "format": "date-time" - }, - "hash": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "valid_tokens_since" - ] - }, - "fingerprints": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "settings": { - "$ref": "#/definitions/UserSettings" - }, - "extended_settings": { - "type": "string", - "default": "{}" - }, - "security_keys": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityKey" - } - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "extended_settings", - "fingerprints", - "flags", - "id", - "mfa_enabled", - "mobile", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "relationships", - "rights", - "security_keys", - "sessions", - "settings", - "system", - "username", - "verified", - "webauthn_enabled" - ] - }, - "Session": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "session_id": { - "type": "string" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "client_info": { - "type": "object", - "properties": { - "client": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "client", - "os", - "version" - ] - }, - "client_status": { - "$ref": "#/definitions/ClientStatus" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "activities", - "client_info", - "client_status", - "id", - "session_id", - "status", - "user", - "user_id" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "Relationship": { - "type": "object", - "properties": { - "from_id": { - "type": "string" - }, - "from": { - "$ref": "#/definitions/User" - }, - "to_id": { - "type": "string" - }, - "to": { - "$ref": "#/definitions/User" - }, - "nickname": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "from", - "from_id", - "id", - "to", - "to_id", - "type" - ] - }, - "RelationshipType": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "ConnectedAccount": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "friend_sync": { - "type": "boolean", - "default": false - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean", - "default": false - }, - "show_activity": { - "type": "integer", - "default": 0 - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean", - "default": true - }, - "visibility": { - "type": "integer", - "default": 0 - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer", - "default": 0 - }, - "two_way_link": { - "type": "boolean", - "default": false - }, - "token_data": { - "anyOf": [ - { - "$ref": "#/definitions/ConnectedAccountTokenData" - }, - { - "type": "null" - } - ] - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "external_id", - "id", - "name", - "type", - "user", - "user_id" - ] - }, - "UserSettings": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "afk_timeout": { - "type": "integer", - "default": 3600 - }, - "allow_accessibility_detection": { - "type": "boolean", - "default": true - }, - "animate_emoji": { - "type": "boolean", - "default": true - }, - "animate_stickers": { - "type": "integer", - "default": 0 - }, - "contact_sync_enabled": { - "type": "boolean", - "default": false - }, - "convert_emoticons": { - "type": "boolean", - "default": false - }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" - }, - { - "type": "null" - } - ], - "default": null - }, - "default_guilds_restricted": { - "type": "boolean", - "default": false - }, - "detect_platform_accounts": { - "type": "boolean", - "default": false - }, - "developer_mode": { - "type": "boolean", - "default": true - }, - "disable_games_tab": { - "type": "boolean", - "default": true - }, - "enable_tts_command": { - "type": "boolean", - "default": false - }, - "explicit_content_filter": { - "type": "integer", - "default": 0 - }, - "friend_discovery_flags": { - "type": "integer", - "default": 0 - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean", - "default": false - }, - "gif_auto_play": { - "type": "boolean", - "default": false - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - }, - "default": [] - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "inline_attachment_media": { - "type": "boolean", - "default": true - }, - "inline_embed_media": { - "type": "boolean", - "default": true - }, - "locale": { - "type": "string", - "default": "en-US" - }, - "message_display_compact": { - "type": "boolean", - "default": false - }, - "native_phone_integration_enabled": { - "type": "boolean", - "default": true - }, - "render_embeds": { - "type": "boolean", - "default": true - }, - "render_reactions": { - "type": "boolean", - "default": true - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "show_current_game": { - "type": "boolean", - "default": true - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "default": "online" - }, - "stream_notifications_enabled": { - "type": "boolean", - "default": false - }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string", - "default": "dark" - }, - "timezone_offset": { - "type": "integer", - "default": 0 - }, - "view_nsfw_guilds": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_discovery_flags", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "index", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset", - "view_nsfw_guilds" - ] - }, - "SecurityKey": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "key_id": { - "type": "string" - }, - "public_key": { - "type": "string" - }, - "counter": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "counter", - "id", - "key_id", - "name", - "public_key", - "user", - "user_id" - ] - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - }, - "Invite": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "temporary": { - "type": "boolean" - }, - "uses": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "max_age": { - "type": "integer" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "inviter_id": { - "type": "string" - }, - "inviter": { - "$ref": "#/definitions/User" - }, - "target_user_id": { - "type": "string" - }, - "target_user": { - "type": "string" - }, - "target_user_type": { - "type": "integer" - }, - "vanity_url": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "code", - "created_at", - "flags", - "guild", - "guild_id", - "inviter", - "max_age", - "max_uses", - "target_user_id", - "temporary", - "uses" - ] - }, - "Message": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "author_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/User" - }, - "member_id": { - "type": "string" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "webhook_id": { - "type": "string" - }, - "webhook": { - "$ref": "#/definitions/Webhook" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "type": "string", - "format": "date-time" - }, - "tts": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "mention_channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/definitions/Reaction" - } - }, - "nonce": { - "type": "string" - }, - "pinned": { - "type": "boolean" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "activity": { - "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "party_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "party_id", - "type" - ] - }, - "flags": { - "type": "integer" - }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type", - "user_id" - ] - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "embeds", - "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "reactions", - "timestamp", - "type" - ] - }, - "Member": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "nick": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "integer" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "pending": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserGuildSettings" - }, - "last_message_id": { - "type": "string" - }, - "joined_by": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "guild", - "guild_id", - "id", - "index", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "user" - ] - }, - "Role": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "color": { - "type": "integer" - }, - "hoist": { - "type": "boolean" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "icon": { - "type": "string" - }, - "unicode_emoji": { - "type": "string" - }, - "tags": { - "type": "object", - "properties": { - "bot_id": { - "type": "string" - }, - "integration_id": { - "type": "string" - }, - "premium_subscriber": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "flags": { - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "UserGuildSettings": { - "type": "object", - "properties": { - "channel_overrides": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - { - "type": "null" - } - ] - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "version": { - "type": "integer" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "type": "number", - "enum": [ - 0 - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_overrides", - "flags", - "guild_id", - "hide_muted_channels", - "message_notifications", - "mobile_push", - "mute_config", - "mute_scheduled_events", - "muted", - "notify_highlights", - "suppress_everyone", - "suppress_roles", - "version" - ] - }, - "Webhook": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/WebhookType" - }, - "name": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "token": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "source_channel_id": { - "type": "string" - }, - "source_channel": { - "$ref": "#/definitions/Channel" - }, - "url": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "application", - "application_id", - "avatar", - "channel", - "channel_id", - "id", - "name", - "source_channel", - "source_channel_id", - "type", - "url", - "user", - "user_id" - ] - }, - "WebhookType": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "Application": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "description": { - "type": "string" - }, - "summary": { - "type": "string", - "default": "" - }, - "type": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "hook": { - "type": "boolean", - "default": true - }, - "bot_public": { - "type": "boolean", - "default": true - }, - "bot_require_code_grant": { - "type": "boolean", - "default": false - }, - "verify_key": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "rpc_application_state": { - "type": "integer", - "default": 0 - }, - "store_application_state": { - "type": "integer", - "default": 1 - }, - "verification_state": { - "type": "integer", - "default": 1 - }, - "interactions_endpoint_url": { - "type": "string" - }, - "integration_public": { - "type": "boolean", - "default": true - }, - "integration_require_code_grant": { - "type": "boolean", - "default": false - }, - "discoverability_state": { - "type": "integer", - "default": 1 - }, - "discovery_eligibility_flags": { - "type": "integer", - "default": 2240 - }, - "bot": { - "$ref": "#/definitions/User" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "cover_image": { - "type": "string" - }, - "install_params": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "permissions", - "scopes" - ] - }, - "terms_of_service_url": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "discoverability_state", - "discovery_eligibility_flags", - "flags", - "hook", - "id", - "integration_public", - "integration_require_code_grant", - "name", - "owner", - "redirect_uris", - "rpc_application_state", - "store_application_state", - "summary", - "verification_state", - "verify_key" - ] - }, - "Team": { - "type": "object", - "properties": { - "icon": { - "type": "string" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/TeamMember" - } - }, - "name": { - "type": "string" - }, - "owner_user_id": { - "type": "string" - }, - "owner_user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "members", - "name", - "owner_user", - "owner_user_id" - ] - }, - "TeamMember": { - "type": "object", - "properties": { - "membership_state": { - "$ref": "#/definitions/TeamMemberState" - }, - "permissions": { - "type": "array", - "items": { - "type": "string" - } - }, - "team_id": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "membership_state", - "permissions", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "Sticker": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" - }, - "pack_id": { - "type": "string" - }, - "pack": { - "$ref": "#/definitions/StickerPack" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "type": { - "$ref": "#/definitions/StickerType" - }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "format_type", - "id", - "name", - "pack", - "type" - ] - }, - "StickerPack": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "cover_sticker_id": { - "type": "string" - }, - "cover_sticker": { - "$ref": "#/definitions/Sticker" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "stickers" - ] - }, - "StickerType": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "Attachment": { - "type": "object", - "properties": { - "filename": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - }, - "content_type": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "message": { - "$ref": "#/definitions/Message" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", - "url" - ] - }, - "Reaction": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "count", - "emoji", - "user_ids" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "Poll": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "expiry": { - "type": "string", - "format": "date-time" - }, - "allow_multiselect": { - "type": "boolean" - }, - "results": { - "$ref": "#/definitions/PollResult" - } - }, - "additionalProperties": false, - "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" - ] - }, - "PollResult": { - "type": "object", - "properties": { - "is_finalized": { - "type": "boolean" - }, - "answer_counts": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswerCount" - } - } - }, - "additionalProperties": false, - "required": [ - "answer_counts", - "is_finalized" - ] - }, - "PollAnswerCount": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "count": { - "type": "integer" - }, - "me_voted": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "id", - "me_voted" - ] - }, - "VoiceState": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "session_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_mute": { - "type": "boolean" - }, - "self_stream": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "suppress": { - "type": "boolean" - }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "deaf", - "guild_id", - "id", - "member", - "mute", - "self_deaf", - "self_mute", - "self_video", - "session_id", - "suppress", - "token", - "user", - "user_id" - ] - }, - "ReadState": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "last_message_id": { - "type": "string" - }, - "public_ack": { - "type": "string" - }, - "notifications_cursor": { - "type": "string" - }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "mention_count": { - "type": "integer" - }, - "manual": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "id", - "last_message_id", - "manual", - "mention_count", - "notifications_cursor", - "public_ack", - "user", - "user_id" - ] - }, - "Ban": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "executor_id": { - "type": "string" - }, - "executor": { - "$ref": "#/definitions/User" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor", - "executor_id", - "guild", - "guild_id", - "id", - "ip", - "user", - "user_id" - ] - }, - "Template": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "usage_count": { - "type": "integer" - }, - "creator_id": { - "type": "string" - }, - "creator": { - "$ref": "#/definitions/User" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "serialized_source_guild": { - "$ref": "#/definitions/Guild" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "created_at", - "creator", - "creator_id", - "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" - ] - }, - "Emoji": { - "type": "object", - "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "managed": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "require_colons": { - "type": "boolean" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" - ] - }, - "GuildWelcomeScreen": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "channel_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "description", - "enabled", - "welcome_channels" - ] - }, - "GuildMessagesSearchMessage": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "content": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/PublicUser" - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicUser" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, - "timestamp": { - "type": "string" - }, - "edited_timestamp": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "hit": { - "type": "boolean", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ] - }, - "GuildVanityUrl": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "uses": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "code", - "uses" - ] - }, - "GuildVanityUrlNoInvite": { - "type": "object", - "properties": { - "code": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "code" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "TenorGifResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" - ] - }, - "BackupCode": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "code": { - "type": "string" - }, - "consumed": { - "type": "boolean" - }, - "expired": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "consumed", - "expired", - "id", - "user" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "toJSON": { - "type": "object", - "additionalProperties": false - }, - "_do_validate": { - "type": "object", - "additionalProperties": false - }, - "assign": { - "type": "object", - "additionalProperties": false - }, - "hasId": { - "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", - "type": "object", - "additionalProperties": false - }, - "save": { - "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", - "type": "object", - "additionalProperties": false - }, - "remove": { - "description": "Removes current entity from the database.", - "type": "object", - "additionalProperties": false - }, - "softRemove": { - "description": "Records the delete date of current entity.", - "type": "object", - "additionalProperties": false - }, - "recover": { - "description": "Recovers a given entity in the database.", - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "banner": { - "type": "string" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "_do_validate", - "assign", - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "hasId", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "recover", - "reload", - "remove", - "roles", - "save", - "softRemove", - "stickers", - "toJSON", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "DmChannelDTO": { - "type": "object", - "properties": { - "icon": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": "string" - }, - "last_message_id": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "origin_channel_id": { - "type": [ - "null", - "string" - ] - }, - "owner_id": { - "type": "string" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/MinimalPublicUserDTO" - } - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "icon", - "id", - "last_message_id", - "name", - "origin_channel_id", - "recipients", - "type" - ] - }, - "MinimalPublicUserDTO": { - "type": "object", - "properties": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - }, - "badge_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - }, - "Categories": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "localizations": { - "type": "string" - }, - "is_primary": { - "type": "boolean" - }, - "icon": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "is_primary", - "localizations", - "name" - ] - }, - "GuildVoiceRegion": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "custom": { - "type": "boolean" - }, - "deprecated": { - "type": "boolean" - }, - "optimal": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom", - "deprecated", - "id", - "name", - "optimal" - ] - }, - "UserLimits": { - "type": "object", - "properties": { - "maxGuilds": { - "type": "integer", - "default": 1048576 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - }, - "maxBio": { - "type": "integer", - "default": 190 - } - }, - "additionalProperties": false, - "required": [ - "maxBio", - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "GuildLimits": { - "type": "object", - "properties": { - "maxRoles": { - "type": "integer", - "default": 1000 - }, - "maxEmojis": { - "type": "integer", - "default": 2000 - }, - "maxMembers": { - "type": "integer", - "default": 25000000 - }, - "maxChannels": { - "type": "integer", - "default": 65535 - }, - "maxBulkBanUsers": { - "type": "integer", - "default": 200 - }, - "maxChannelsInCategory": { - "type": "integer", - "default": 65535 - } - }, - "additionalProperties": false, - "required": [ - "maxBulkBanUsers", - "maxChannels", - "maxChannelsInCategory", - "maxEmojis", - "maxMembers", - "maxRoles" - ] - }, - "MessageLimits": { - "type": "object", - "properties": { - "maxCharacters": { - "type": "integer", - "default": 1048576 - }, - "maxTTSCharacters": { - "type": "integer", - "default": 160 - }, - "maxReactions": { - "type": "integer", - "default": 2048 - }, - "maxAttachmentSize": { - "type": "integer", - "default": 1073741824 - }, - "maxBulkDelete": { - "type": "integer", - "default": 1000 - }, - "maxEmbedDownloadSize": { - "type": "integer", - "default": 5242880 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "maxReactions", - "maxTTSCharacters" - ] - }, - "ChannelLimits": { - "type": "object", - "properties": { - "maxPins": { - "type": "integer", - "default": 500 - }, - "maxTopic": { - "type": "integer", - "default": 1024 - }, - "maxWebhooks": { - "type": "integer", - "default": 100 - } - }, - "additionalProperties": false, - "required": [ - "maxPins", - "maxTopic", - "maxWebhooks" - ] - }, - "RateLimits": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": false - }, - "ip": { - "$ref": "#/definitions/RateLimitOptions" - }, - "global": { - "$ref": "#/definitions/RateLimitOptions" - }, - "error": { - "$ref": "#/definitions/RateLimitOptions" - }, - "routes": { - "$ref": "#/definitions/RouteRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "error", - "global", - "ip", - "routes" - ] - }, - "RateLimitOptions": { - "type": "object", - "properties": { - "bot": { - "type": "integer" - }, - "count": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "onyIp": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "window" - ] - }, - "RouteRateLimit": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/definitions/RateLimitOptions" - }, - "webhook": { - "$ref": "#/definitions/RateLimitOptions" - }, - "channel": { - "$ref": "#/definitions/RateLimitOptions" - }, - "auth": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "GlobalRateLimits": { - "type": "object", - "properties": { - "register": { - "$ref": "#/definitions/GlobalRateLimit" - }, - "sendMessage": { - "$ref": "#/definitions/GlobalRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "register", - "sendMessage" - ] - }, - "GlobalRateLimit": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "default": 100 - }, - "window": { - "type": "integer", - "default": 3600000 - }, - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "limit", - "window" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type" - ] - }, - "UserProfile": { - "type": "object", - "properties": { - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "ApplicationAuthorizeSchema": { @@ -19347,4772 +84,6 @@ "guild_id", "permissions" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "ConnectedAccountTokenData": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - }, - "expires_at": { - "type": "integer" - }, - "fetched_at": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "fetched_at" - ] - }, - "ChannelModifySchema": { - "type": "object", - "properties": { - "name": { - "maxLength": 100, - "type": "string" - }, - "type": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "topic": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - }, - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - } - }, - "parent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActivitySchema": { - "type": "object", - "properties": { - "afk": { - "type": "boolean" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "since": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "status" - ] - }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "Activity": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ActivityType" - }, - "url": { - "type": "string" - }, - "created_at": { - "type": "integer" - }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] - }, - "application_id": { - "type": "string" - }, - "details": { - "type": "string" - }, - "state": { - "type": "string" - }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] - }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false - }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false - }, - "instance": { - "type": "boolean" - }, - "flags": { - "type": "string" - }, - "id": { - "type": "string" - }, - "sync_id": { - "type": "string" - }, - "metadata": { - "type": "object", - "properties": { - "context_uri": { - "type": "string" - }, - "album_id": { - "type": "string" - }, - "artist_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] - }, - "session_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "flags", - "name", - "session_id", - "type" - ] - }, - "ActivityType": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "color": { - "type": "integer" - }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/definitions/EmbedImage" - }, - "thumbnail": { - "$ref": "#/definitions/EmbedImage" - }, - "video": { - "$ref": "#/definitions/EmbedImage" - }, - "provider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - }, - "additionalProperties": false - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActionRowComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.ActionRow" - }, - "components": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/definitions/ButtonComponent" - }, - { - "$ref": "#/definitions/SelectMenuComponent" - }, - { - "$ref": "#/definitions/StringSelectMenuComponent" - }, - { - "$ref": "#/definitions/TextInputComponent" - } - ] - } - } - }, - "additionalProperties": false, - "required": [ - "components", - "type" - ] - }, - "MessageComponentType.ActionRow": { - "type": "number", - "enum": [ - 1 - ] - }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.Button" - }, - "style": { - "$ref": "#/definitions/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "style", - "type" - ] - }, - "MessageComponentType.Button": { - "type": "number", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - "SelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "type" - ] - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "type" - ] - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.StringSelect" - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuOption" - } - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "options", - "type" - ] - }, - "MessageComponentType.StringSelect": { - "type": "number", - "enum": [ - 3 - ] - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "default": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "label", - "value" - ] - }, - "TextInputComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.TextInput" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/definitions/TextInputStyle" - }, - "label": { - "type": "string" - }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" - }, - "value": { - "type": "string" - }, - "placeholder": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "label", - "style", - "type" - ] - }, - "MessageComponentType.TextInput": { - "type": "number", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "PollCreationSchema": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "duration": { - "type": "integer" - }, - "allow_multiselect": { - "type": "boolean" - }, - "layout_type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "answers", - "question" - ] - }, - "PollMedia": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - } - }, - "additionalProperties": false - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" - }, - "poll_media": { - "$ref": "#/definitions/PollMedia" - } - }, - "additionalProperties": false, - "required": [ - "poll_media" - ] - }, - "ChannelOverride": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ] - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "all" - ] - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { - "type": "integer" - }, - "guild_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "integer" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "guild_ids", - "id", - "name" - ] - }, - "GenerateWebAuthnCredentialsSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "password" - ] - }, - "CreateWebAuthnCredentialSchema": { - "type": "object", - "properties": { - "credential": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ticket": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "credential", - "name", - "ticket" - ] - }, - "APIErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "code", - "errors", - "message" - ] - }, - "CaptchaRequiredResponse": { - "type": "object", - "properties": { - "captcha_key": { - "type": "string" - }, - "captcha_sitekey": { - "type": "string" - }, - "captcha_service": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "string" - }, - "afk_channel": { - "$ref": "#/definitions/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { - "type": "string" - }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "template_id": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/definitions/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "Channel": { - "type": "object", - "properties": { - "created_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "type": { - "$ref": "#/definitions/ChannelType" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/Recipient" - } - }, - "last_message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "parent_id": { - "type": [ - "null", - "string" - ] - }, - "parent": { - "$ref": "#/definitions/Channel" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "last_pin_timestamp": { - "type": "integer" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelPermissionOverwrite" - } - }, - "video_quality_mode": { - "type": "integer" - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "rate_limit_per_user": { - "type": "integer" - }, - "topic": { - "type": "string" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "retention_policy_id": { - "type": "string" - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "read_states": { - "type": "array", - "items": { - "$ref": "#/definitions/ReadState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "flags": { - "type": "integer", - "default": 0 - }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "created_at", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "Recipient": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "closed": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "closed", - "id", - "user", - "user_id" - ] - }, - "User": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "desktop": { - "type": "boolean", - "default": false - }, - "mobile": { - "type": "boolean", - "default": false - }, - "premium": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "bot": { - "type": "boolean", - "default": false - }, - "bio": { - "type": "string", - "default": "" - }, - "system": { - "type": "boolean", - "default": false - }, - "nsfw_allowed": { - "type": "boolean", - "default": true - }, - "mfa_enabled": { - "type": "boolean", - "default": false - }, - "webauthn_enabled": { - "type": "boolean", - "default": false - }, - "totp_secret": { - "type": "string", - "default": "" - }, - "totp_last_ticket": { - "type": "string", - "default": "" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "verified": { - "type": "boolean" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "deleted": { - "type": "boolean", - "default": false - }, - "email": { - "type": "string" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "public_flags": { - "type": "integer", - "default": 0 - }, - "purchased_flags": { - "type": "integer", - "default": 0 - }, - "premium_usage_flags": { - "type": "integer", - "default": 0 - }, - "rights": { - "type": "string" - }, - "sessions": { - "type": "array", - "items": { - "$ref": "#/definitions/Session" - } - }, - "relationships": { - "type": "array", - "items": { - "$ref": "#/definitions/Relationship" - } - }, - "connected_accounts": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectedAccount" - } - }, - "data": { - "type": "object", - "properties": { - "valid_tokens_since": { - "type": "string", - "format": "date-time" - }, - "hash": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "valid_tokens_since" - ] - }, - "fingerprints": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "settings": { - "$ref": "#/definitions/UserSettings" - }, - "extended_settings": { - "type": "string", - "default": "{}" - }, - "security_keys": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityKey" - } - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "extended_settings", - "fingerprints", - "flags", - "id", - "mfa_enabled", - "mobile", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "relationships", - "rights", - "security_keys", - "sessions", - "settings", - "system", - "username", - "verified", - "webauthn_enabled" - ] - }, - "Session": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "session_id": { - "type": "string" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "client_info": { - "type": "object", - "properties": { - "client": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "client", - "os", - "version" - ] - }, - "client_status": { - "$ref": "#/definitions/ClientStatus" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "activities", - "client_info", - "client_status", - "id", - "session_id", - "status", - "user", - "user_id" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "Relationship": { - "type": "object", - "properties": { - "from_id": { - "type": "string" - }, - "from": { - "$ref": "#/definitions/User" - }, - "to_id": { - "type": "string" - }, - "to": { - "$ref": "#/definitions/User" - }, - "nickname": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "from", - "from_id", - "id", - "to", - "to_id", - "type" - ] - }, - "RelationshipType": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "ConnectedAccount": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "friend_sync": { - "type": "boolean", - "default": false - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean", - "default": false - }, - "show_activity": { - "type": "integer", - "default": 0 - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean", - "default": true - }, - "visibility": { - "type": "integer", - "default": 0 - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer", - "default": 0 - }, - "two_way_link": { - "type": "boolean", - "default": false - }, - "token_data": { - "anyOf": [ - { - "$ref": "#/definitions/ConnectedAccountTokenData" - }, - { - "type": "null" - } - ] - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "external_id", - "id", - "name", - "type", - "user", - "user_id" - ] - }, - "UserSettings": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "afk_timeout": { - "type": "integer", - "default": 3600 - }, - "allow_accessibility_detection": { - "type": "boolean", - "default": true - }, - "animate_emoji": { - "type": "boolean", - "default": true - }, - "animate_stickers": { - "type": "integer", - "default": 0 - }, - "contact_sync_enabled": { - "type": "boolean", - "default": false - }, - "convert_emoticons": { - "type": "boolean", - "default": false - }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" - }, - { - "type": "null" - } - ], - "default": null - }, - "default_guilds_restricted": { - "type": "boolean", - "default": false - }, - "detect_platform_accounts": { - "type": "boolean", - "default": false - }, - "developer_mode": { - "type": "boolean", - "default": true - }, - "disable_games_tab": { - "type": "boolean", - "default": true - }, - "enable_tts_command": { - "type": "boolean", - "default": false - }, - "explicit_content_filter": { - "type": "integer", - "default": 0 - }, - "friend_discovery_flags": { - "type": "integer", - "default": 0 - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean", - "default": false - }, - "gif_auto_play": { - "type": "boolean", - "default": false - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - }, - "default": [] - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "inline_attachment_media": { - "type": "boolean", - "default": true - }, - "inline_embed_media": { - "type": "boolean", - "default": true - }, - "locale": { - "type": "string", - "default": "en-US" - }, - "message_display_compact": { - "type": "boolean", - "default": false - }, - "native_phone_integration_enabled": { - "type": "boolean", - "default": true - }, - "render_embeds": { - "type": "boolean", - "default": true - }, - "render_reactions": { - "type": "boolean", - "default": true - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "show_current_game": { - "type": "boolean", - "default": true - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "default": "online" - }, - "stream_notifications_enabled": { - "type": "boolean", - "default": false - }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string", - "default": "dark" - }, - "timezone_offset": { - "type": "integer", - "default": 0 - }, - "view_nsfw_guilds": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_discovery_flags", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "index", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset", - "view_nsfw_guilds" - ] - }, - "SecurityKey": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "key_id": { - "type": "string" - }, - "public_key": { - "type": "string" - }, - "counter": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "counter", - "id", - "key_id", - "name", - "public_key", - "user", - "user_id" - ] - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - }, - "Invite": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "temporary": { - "type": "boolean" - }, - "uses": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "max_age": { - "type": "integer" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "inviter_id": { - "type": "string" - }, - "inviter": { - "$ref": "#/definitions/User" - }, - "target_user_id": { - "type": "string" - }, - "target_user": { - "type": "string" - }, - "target_user_type": { - "type": "integer" - }, - "vanity_url": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "code", - "created_at", - "flags", - "guild", - "guild_id", - "inviter", - "max_age", - "max_uses", - "target_user_id", - "temporary", - "uses" - ] - }, - "Message": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "author_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/User" - }, - "member_id": { - "type": "string" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "webhook_id": { - "type": "string" - }, - "webhook": { - "$ref": "#/definitions/Webhook" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "type": "string", - "format": "date-time" - }, - "tts": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "mention_channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/definitions/Reaction" - } - }, - "nonce": { - "type": "string" - }, - "pinned": { - "type": "boolean" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "activity": { - "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "party_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "party_id", - "type" - ] - }, - "flags": { - "type": "integer" - }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type", - "user_id" - ] - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "embeds", - "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "reactions", - "timestamp", - "type" - ] - }, - "Member": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "nick": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "integer" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "pending": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserGuildSettings" - }, - "last_message_id": { - "type": "string" - }, - "joined_by": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "guild", - "guild_id", - "id", - "index", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "user" - ] - }, - "Role": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "color": { - "type": "integer" - }, - "hoist": { - "type": "boolean" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "icon": { - "type": "string" - }, - "unicode_emoji": { - "type": "string" - }, - "tags": { - "type": "object", - "properties": { - "bot_id": { - "type": "string" - }, - "integration_id": { - "type": "string" - }, - "premium_subscriber": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "flags": { - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "UserGuildSettings": { - "type": "object", - "properties": { - "channel_overrides": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - { - "type": "null" - } - ] - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "version": { - "type": "integer" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "type": "number", - "enum": [ - 0 - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_overrides", - "flags", - "guild_id", - "hide_muted_channels", - "message_notifications", - "mobile_push", - "mute_config", - "mute_scheduled_events", - "muted", - "notify_highlights", - "suppress_everyone", - "suppress_roles", - "version" - ] - }, - "Webhook": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/WebhookType" - }, - "name": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "token": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "source_channel_id": { - "type": "string" - }, - "source_channel": { - "$ref": "#/definitions/Channel" - }, - "url": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "application", - "application_id", - "avatar", - "channel", - "channel_id", - "id", - "name", - "source_channel", - "source_channel_id", - "type", - "url", - "user", - "user_id" - ] - }, - "WebhookType": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "Application": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "description": { - "type": "string" - }, - "summary": { - "type": "string", - "default": "" - }, - "type": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "hook": { - "type": "boolean", - "default": true - }, - "bot_public": { - "type": "boolean", - "default": true - }, - "bot_require_code_grant": { - "type": "boolean", - "default": false - }, - "verify_key": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "rpc_application_state": { - "type": "integer", - "default": 0 - }, - "store_application_state": { - "type": "integer", - "default": 1 - }, - "verification_state": { - "type": "integer", - "default": 1 - }, - "interactions_endpoint_url": { - "type": "string" - }, - "integration_public": { - "type": "boolean", - "default": true - }, - "integration_require_code_grant": { - "type": "boolean", - "default": false - }, - "discoverability_state": { - "type": "integer", - "default": 1 - }, - "discovery_eligibility_flags": { - "type": "integer", - "default": 2240 - }, - "bot": { - "$ref": "#/definitions/User" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "cover_image": { - "type": "string" - }, - "install_params": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "permissions", - "scopes" - ] - }, - "terms_of_service_url": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "discoverability_state", - "discovery_eligibility_flags", - "flags", - "hook", - "id", - "integration_public", - "integration_require_code_grant", - "name", - "owner", - "redirect_uris", - "rpc_application_state", - "store_application_state", - "summary", - "verification_state", - "verify_key" - ] - }, - "Team": { - "type": "object", - "properties": { - "icon": { - "type": "string" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/TeamMember" - } - }, - "name": { - "type": "string" - }, - "owner_user_id": { - "type": "string" - }, - "owner_user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "members", - "name", - "owner_user", - "owner_user_id" - ] - }, - "TeamMember": { - "type": "object", - "properties": { - "membership_state": { - "$ref": "#/definitions/TeamMemberState" - }, - "permissions": { - "type": "array", - "items": { - "type": "string" - } - }, - "team_id": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "membership_state", - "permissions", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "Sticker": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" - }, - "pack_id": { - "type": "string" - }, - "pack": { - "$ref": "#/definitions/StickerPack" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "type": { - "$ref": "#/definitions/StickerType" - }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "format_type", - "id", - "name", - "pack", - "type" - ] - }, - "StickerPack": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "cover_sticker_id": { - "type": "string" - }, - "cover_sticker": { - "$ref": "#/definitions/Sticker" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "stickers" - ] - }, - "StickerType": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "Attachment": { - "type": "object", - "properties": { - "filename": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - }, - "content_type": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "message": { - "$ref": "#/definitions/Message" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", - "url" - ] - }, - "Reaction": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "count", - "emoji", - "user_ids" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "Poll": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "expiry": { - "type": "string", - "format": "date-time" - }, - "allow_multiselect": { - "type": "boolean" - }, - "results": { - "$ref": "#/definitions/PollResult" - } - }, - "additionalProperties": false, - "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" - ] - }, - "PollResult": { - "type": "object", - "properties": { - "is_finalized": { - "type": "boolean" - }, - "answer_counts": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswerCount" - } - } - }, - "additionalProperties": false, - "required": [ - "answer_counts", - "is_finalized" - ] - }, - "PollAnswerCount": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "count": { - "type": "integer" - }, - "me_voted": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "id", - "me_voted" - ] - }, - "VoiceState": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "session_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_mute": { - "type": "boolean" - }, - "self_stream": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "suppress": { - "type": "boolean" - }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "deaf", - "guild_id", - "id", - "member", - "mute", - "self_deaf", - "self_mute", - "self_video", - "session_id", - "suppress", - "token", - "user", - "user_id" - ] - }, - "ReadState": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "last_message_id": { - "type": "string" - }, - "public_ack": { - "type": "string" - }, - "notifications_cursor": { - "type": "string" - }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "mention_count": { - "type": "integer" - }, - "manual": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "id", - "last_message_id", - "manual", - "mention_count", - "notifications_cursor", - "public_ack", - "user", - "user_id" - ] - }, - "Ban": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "executor_id": { - "type": "string" - }, - "executor": { - "$ref": "#/definitions/User" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor", - "executor_id", - "guild", - "guild_id", - "id", - "ip", - "user", - "user_id" - ] - }, - "Template": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "usage_count": { - "type": "integer" - }, - "creator_id": { - "type": "string" - }, - "creator": { - "$ref": "#/definitions/User" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "serialized_source_guild": { - "$ref": "#/definitions/Guild" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "created_at", - "creator", - "creator_id", - "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" - ] - }, - "Emoji": { - "type": "object", - "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "managed": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "require_colons": { - "type": "boolean" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" - ] - }, - "GuildWelcomeScreen": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "channel_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "description", - "enabled", - "welcome_channels" - ] - }, - "GuildMessagesSearchMessage": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "content": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/PublicUser" - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicUser" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, - "timestamp": { - "type": "string" - }, - "edited_timestamp": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "hit": { - "type": "boolean", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ] - }, - "GuildVanityUrl": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "uses": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "code", - "uses" - ] - }, - "GuildVanityUrlNoInvite": { - "type": "object", - "properties": { - "code": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "code" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "TenorGifResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" - ] - }, - "BackupCode": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "code": { - "type": "string" - }, - "consumed": { - "type": "boolean" - }, - "expired": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "consumed", - "expired", - "id", - "user" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "toJSON": { - "type": "object", - "additionalProperties": false - }, - "_do_validate": { - "type": "object", - "additionalProperties": false - }, - "assign": { - "type": "object", - "additionalProperties": false - }, - "hasId": { - "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", - "type": "object", - "additionalProperties": false - }, - "save": { - "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", - "type": "object", - "additionalProperties": false - }, - "remove": { - "description": "Removes current entity from the database.", - "type": "object", - "additionalProperties": false - }, - "softRemove": { - "description": "Records the delete date of current entity.", - "type": "object", - "additionalProperties": false - }, - "recover": { - "description": "Recovers a given entity in the database.", - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "banner": { - "type": "string" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "_do_validate", - "assign", - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "hasId", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "recover", - "reload", - "remove", - "roles", - "save", - "softRemove", - "stickers", - "toJSON", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "DmChannelDTO": { - "type": "object", - "properties": { - "icon": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": "string" - }, - "last_message_id": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "origin_channel_id": { - "type": [ - "null", - "string" - ] - }, - "owner_id": { - "type": "string" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/MinimalPublicUserDTO" - } - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "icon", - "id", - "last_message_id", - "name", - "origin_channel_id", - "recipients", - "type" - ] - }, - "MinimalPublicUserDTO": { - "type": "object", - "properties": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - }, - "badge_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - }, - "Categories": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "localizations": { - "type": "string" - }, - "is_primary": { - "type": "boolean" - }, - "icon": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "is_primary", - "localizations", - "name" - ] - }, - "GuildVoiceRegion": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "custom": { - "type": "boolean" - }, - "deprecated": { - "type": "boolean" - }, - "optimal": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom", - "deprecated", - "id", - "name", - "optimal" - ] - }, - "UserLimits": { - "type": "object", - "properties": { - "maxGuilds": { - "type": "integer", - "default": 1048576 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - }, - "maxBio": { - "type": "integer", - "default": 190 - } - }, - "additionalProperties": false, - "required": [ - "maxBio", - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "GuildLimits": { - "type": "object", - "properties": { - "maxRoles": { - "type": "integer", - "default": 1000 - }, - "maxEmojis": { - "type": "integer", - "default": 2000 - }, - "maxMembers": { - "type": "integer", - "default": 25000000 - }, - "maxChannels": { - "type": "integer", - "default": 65535 - }, - "maxBulkBanUsers": { - "type": "integer", - "default": 200 - }, - "maxChannelsInCategory": { - "type": "integer", - "default": 65535 - } - }, - "additionalProperties": false, - "required": [ - "maxBulkBanUsers", - "maxChannels", - "maxChannelsInCategory", - "maxEmojis", - "maxMembers", - "maxRoles" - ] - }, - "MessageLimits": { - "type": "object", - "properties": { - "maxCharacters": { - "type": "integer", - "default": 1048576 - }, - "maxTTSCharacters": { - "type": "integer", - "default": 160 - }, - "maxReactions": { - "type": "integer", - "default": 2048 - }, - "maxAttachmentSize": { - "type": "integer", - "default": 1073741824 - }, - "maxBulkDelete": { - "type": "integer", - "default": 1000 - }, - "maxEmbedDownloadSize": { - "type": "integer", - "default": 5242880 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "maxReactions", - "maxTTSCharacters" - ] - }, - "ChannelLimits": { - "type": "object", - "properties": { - "maxPins": { - "type": "integer", - "default": 500 - }, - "maxTopic": { - "type": "integer", - "default": 1024 - }, - "maxWebhooks": { - "type": "integer", - "default": 100 - } - }, - "additionalProperties": false, - "required": [ - "maxPins", - "maxTopic", - "maxWebhooks" - ] - }, - "RateLimits": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": false - }, - "ip": { - "$ref": "#/definitions/RateLimitOptions" - }, - "global": { - "$ref": "#/definitions/RateLimitOptions" - }, - "error": { - "$ref": "#/definitions/RateLimitOptions" - }, - "routes": { - "$ref": "#/definitions/RouteRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "error", - "global", - "ip", - "routes" - ] - }, - "RateLimitOptions": { - "type": "object", - "properties": { - "bot": { - "type": "integer" - }, - "count": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "onyIp": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "window" - ] - }, - "RouteRateLimit": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/definitions/RateLimitOptions" - }, - "webhook": { - "$ref": "#/definitions/RateLimitOptions" - }, - "channel": { - "$ref": "#/definitions/RateLimitOptions" - }, - "auth": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "GlobalRateLimits": { - "type": "object", - "properties": { - "register": { - "$ref": "#/definitions/GlobalRateLimit" - }, - "sendMessage": { - "$ref": "#/definitions/GlobalRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "register", - "sendMessage" - ] - }, - "GlobalRateLimit": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "default": 100 - }, - "window": { - "type": "integer", - "default": 3600000 - }, - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "limit", - "window" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type" - ] - }, - "UserProfile": { - "type": "object", - "properties": { - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "ApplicationCreateSchema": { @@ -24132,4772 +103,6 @@ "required": [ "name" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "ConnectedAccountTokenData": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - }, - "expires_at": { - "type": "integer" - }, - "fetched_at": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "fetched_at" - ] - }, - "ChannelModifySchema": { - "type": "object", - "properties": { - "name": { - "maxLength": 100, - "type": "string" - }, - "type": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "topic": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - }, - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - } - }, - "parent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActivitySchema": { - "type": "object", - "properties": { - "afk": { - "type": "boolean" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "since": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "status" - ] - }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "Activity": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ActivityType" - }, - "url": { - "type": "string" - }, - "created_at": { - "type": "integer" - }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] - }, - "application_id": { - "type": "string" - }, - "details": { - "type": "string" - }, - "state": { - "type": "string" - }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] - }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false - }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false - }, - "instance": { - "type": "boolean" - }, - "flags": { - "type": "string" - }, - "id": { - "type": "string" - }, - "sync_id": { - "type": "string" - }, - "metadata": { - "type": "object", - "properties": { - "context_uri": { - "type": "string" - }, - "album_id": { - "type": "string" - }, - "artist_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] - }, - "session_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "flags", - "name", - "session_id", - "type" - ] - }, - "ActivityType": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "color": { - "type": "integer" - }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/definitions/EmbedImage" - }, - "thumbnail": { - "$ref": "#/definitions/EmbedImage" - }, - "video": { - "$ref": "#/definitions/EmbedImage" - }, - "provider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - }, - "additionalProperties": false - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActionRowComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.ActionRow" - }, - "components": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/definitions/ButtonComponent" - }, - { - "$ref": "#/definitions/SelectMenuComponent" - }, - { - "$ref": "#/definitions/StringSelectMenuComponent" - }, - { - "$ref": "#/definitions/TextInputComponent" - } - ] - } - } - }, - "additionalProperties": false, - "required": [ - "components", - "type" - ] - }, - "MessageComponentType.ActionRow": { - "type": "number", - "enum": [ - 1 - ] - }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.Button" - }, - "style": { - "$ref": "#/definitions/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "style", - "type" - ] - }, - "MessageComponentType.Button": { - "type": "number", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - "SelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "type" - ] - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "type" - ] - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.StringSelect" - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuOption" - } - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "options", - "type" - ] - }, - "MessageComponentType.StringSelect": { - "type": "number", - "enum": [ - 3 - ] - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "default": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "label", - "value" - ] - }, - "TextInputComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.TextInput" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/definitions/TextInputStyle" - }, - "label": { - "type": "string" - }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" - }, - "value": { - "type": "string" - }, - "placeholder": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "label", - "style", - "type" - ] - }, - "MessageComponentType.TextInput": { - "type": "number", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "PollCreationSchema": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "duration": { - "type": "integer" - }, - "allow_multiselect": { - "type": "boolean" - }, - "layout_type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "answers", - "question" - ] - }, - "PollMedia": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - } - }, - "additionalProperties": false - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" - }, - "poll_media": { - "$ref": "#/definitions/PollMedia" - } - }, - "additionalProperties": false, - "required": [ - "poll_media" - ] - }, - "ChannelOverride": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ] - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "all" - ] - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { - "type": "integer" - }, - "guild_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "integer" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "guild_ids", - "id", - "name" - ] - }, - "GenerateWebAuthnCredentialsSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "password" - ] - }, - "CreateWebAuthnCredentialSchema": { - "type": "object", - "properties": { - "credential": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ticket": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "credential", - "name", - "ticket" - ] - }, - "APIErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "code", - "errors", - "message" - ] - }, - "CaptchaRequiredResponse": { - "type": "object", - "properties": { - "captcha_key": { - "type": "string" - }, - "captcha_sitekey": { - "type": "string" - }, - "captcha_service": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "string" - }, - "afk_channel": { - "$ref": "#/definitions/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { - "type": "string" - }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "template_id": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/definitions/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "Channel": { - "type": "object", - "properties": { - "created_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "type": { - "$ref": "#/definitions/ChannelType" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/Recipient" - } - }, - "last_message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "parent_id": { - "type": [ - "null", - "string" - ] - }, - "parent": { - "$ref": "#/definitions/Channel" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "last_pin_timestamp": { - "type": "integer" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelPermissionOverwrite" - } - }, - "video_quality_mode": { - "type": "integer" - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "rate_limit_per_user": { - "type": "integer" - }, - "topic": { - "type": "string" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "retention_policy_id": { - "type": "string" - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "read_states": { - "type": "array", - "items": { - "$ref": "#/definitions/ReadState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "flags": { - "type": "integer", - "default": 0 - }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "created_at", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "Recipient": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "closed": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "closed", - "id", - "user", - "user_id" - ] - }, - "User": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "desktop": { - "type": "boolean", - "default": false - }, - "mobile": { - "type": "boolean", - "default": false - }, - "premium": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "bot": { - "type": "boolean", - "default": false - }, - "bio": { - "type": "string", - "default": "" - }, - "system": { - "type": "boolean", - "default": false - }, - "nsfw_allowed": { - "type": "boolean", - "default": true - }, - "mfa_enabled": { - "type": "boolean", - "default": false - }, - "webauthn_enabled": { - "type": "boolean", - "default": false - }, - "totp_secret": { - "type": "string", - "default": "" - }, - "totp_last_ticket": { - "type": "string", - "default": "" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "verified": { - "type": "boolean" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "deleted": { - "type": "boolean", - "default": false - }, - "email": { - "type": "string" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "public_flags": { - "type": "integer", - "default": 0 - }, - "purchased_flags": { - "type": "integer", - "default": 0 - }, - "premium_usage_flags": { - "type": "integer", - "default": 0 - }, - "rights": { - "type": "string" - }, - "sessions": { - "type": "array", - "items": { - "$ref": "#/definitions/Session" - } - }, - "relationships": { - "type": "array", - "items": { - "$ref": "#/definitions/Relationship" - } - }, - "connected_accounts": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectedAccount" - } - }, - "data": { - "type": "object", - "properties": { - "valid_tokens_since": { - "type": "string", - "format": "date-time" - }, - "hash": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "valid_tokens_since" - ] - }, - "fingerprints": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "settings": { - "$ref": "#/definitions/UserSettings" - }, - "extended_settings": { - "type": "string", - "default": "{}" - }, - "security_keys": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityKey" - } - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "extended_settings", - "fingerprints", - "flags", - "id", - "mfa_enabled", - "mobile", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "relationships", - "rights", - "security_keys", - "sessions", - "settings", - "system", - "username", - "verified", - "webauthn_enabled" - ] - }, - "Session": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "session_id": { - "type": "string" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "client_info": { - "type": "object", - "properties": { - "client": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "client", - "os", - "version" - ] - }, - "client_status": { - "$ref": "#/definitions/ClientStatus" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "activities", - "client_info", - "client_status", - "id", - "session_id", - "status", - "user", - "user_id" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "Relationship": { - "type": "object", - "properties": { - "from_id": { - "type": "string" - }, - "from": { - "$ref": "#/definitions/User" - }, - "to_id": { - "type": "string" - }, - "to": { - "$ref": "#/definitions/User" - }, - "nickname": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "from", - "from_id", - "id", - "to", - "to_id", - "type" - ] - }, - "RelationshipType": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "ConnectedAccount": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "friend_sync": { - "type": "boolean", - "default": false - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean", - "default": false - }, - "show_activity": { - "type": "integer", - "default": 0 - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean", - "default": true - }, - "visibility": { - "type": "integer", - "default": 0 - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer", - "default": 0 - }, - "two_way_link": { - "type": "boolean", - "default": false - }, - "token_data": { - "anyOf": [ - { - "$ref": "#/definitions/ConnectedAccountTokenData" - }, - { - "type": "null" - } - ] - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "external_id", - "id", - "name", - "type", - "user", - "user_id" - ] - }, - "UserSettings": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "afk_timeout": { - "type": "integer", - "default": 3600 - }, - "allow_accessibility_detection": { - "type": "boolean", - "default": true - }, - "animate_emoji": { - "type": "boolean", - "default": true - }, - "animate_stickers": { - "type": "integer", - "default": 0 - }, - "contact_sync_enabled": { - "type": "boolean", - "default": false - }, - "convert_emoticons": { - "type": "boolean", - "default": false - }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" - }, - { - "type": "null" - } - ], - "default": null - }, - "default_guilds_restricted": { - "type": "boolean", - "default": false - }, - "detect_platform_accounts": { - "type": "boolean", - "default": false - }, - "developer_mode": { - "type": "boolean", - "default": true - }, - "disable_games_tab": { - "type": "boolean", - "default": true - }, - "enable_tts_command": { - "type": "boolean", - "default": false - }, - "explicit_content_filter": { - "type": "integer", - "default": 0 - }, - "friend_discovery_flags": { - "type": "integer", - "default": 0 - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean", - "default": false - }, - "gif_auto_play": { - "type": "boolean", - "default": false - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - }, - "default": [] - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "inline_attachment_media": { - "type": "boolean", - "default": true - }, - "inline_embed_media": { - "type": "boolean", - "default": true - }, - "locale": { - "type": "string", - "default": "en-US" - }, - "message_display_compact": { - "type": "boolean", - "default": false - }, - "native_phone_integration_enabled": { - "type": "boolean", - "default": true - }, - "render_embeds": { - "type": "boolean", - "default": true - }, - "render_reactions": { - "type": "boolean", - "default": true - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "show_current_game": { - "type": "boolean", - "default": true - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "default": "online" - }, - "stream_notifications_enabled": { - "type": "boolean", - "default": false - }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string", - "default": "dark" - }, - "timezone_offset": { - "type": "integer", - "default": 0 - }, - "view_nsfw_guilds": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_discovery_flags", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "index", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset", - "view_nsfw_guilds" - ] - }, - "SecurityKey": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "key_id": { - "type": "string" - }, - "public_key": { - "type": "string" - }, - "counter": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "counter", - "id", - "key_id", - "name", - "public_key", - "user", - "user_id" - ] - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - }, - "Invite": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "temporary": { - "type": "boolean" - }, - "uses": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "max_age": { - "type": "integer" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "inviter_id": { - "type": "string" - }, - "inviter": { - "$ref": "#/definitions/User" - }, - "target_user_id": { - "type": "string" - }, - "target_user": { - "type": "string" - }, - "target_user_type": { - "type": "integer" - }, - "vanity_url": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "code", - "created_at", - "flags", - "guild", - "guild_id", - "inviter", - "max_age", - "max_uses", - "target_user_id", - "temporary", - "uses" - ] - }, - "Message": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "author_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/User" - }, - "member_id": { - "type": "string" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "webhook_id": { - "type": "string" - }, - "webhook": { - "$ref": "#/definitions/Webhook" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "type": "string", - "format": "date-time" - }, - "tts": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "mention_channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/definitions/Reaction" - } - }, - "nonce": { - "type": "string" - }, - "pinned": { - "type": "boolean" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "activity": { - "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "party_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "party_id", - "type" - ] - }, - "flags": { - "type": "integer" - }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type", - "user_id" - ] - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "embeds", - "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "reactions", - "timestamp", - "type" - ] - }, - "Member": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "nick": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "integer" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "pending": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserGuildSettings" - }, - "last_message_id": { - "type": "string" - }, - "joined_by": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "guild", - "guild_id", - "id", - "index", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "user" - ] - }, - "Role": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "color": { - "type": "integer" - }, - "hoist": { - "type": "boolean" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "icon": { - "type": "string" - }, - "unicode_emoji": { - "type": "string" - }, - "tags": { - "type": "object", - "properties": { - "bot_id": { - "type": "string" - }, - "integration_id": { - "type": "string" - }, - "premium_subscriber": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "flags": { - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "UserGuildSettings": { - "type": "object", - "properties": { - "channel_overrides": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - { - "type": "null" - } - ] - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "version": { - "type": "integer" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "type": "number", - "enum": [ - 0 - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_overrides", - "flags", - "guild_id", - "hide_muted_channels", - "message_notifications", - "mobile_push", - "mute_config", - "mute_scheduled_events", - "muted", - "notify_highlights", - "suppress_everyone", - "suppress_roles", - "version" - ] - }, - "Webhook": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/WebhookType" - }, - "name": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "token": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "source_channel_id": { - "type": "string" - }, - "source_channel": { - "$ref": "#/definitions/Channel" - }, - "url": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "application", - "application_id", - "avatar", - "channel", - "channel_id", - "id", - "name", - "source_channel", - "source_channel_id", - "type", - "url", - "user", - "user_id" - ] - }, - "WebhookType": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "Application": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "description": { - "type": "string" - }, - "summary": { - "type": "string", - "default": "" - }, - "type": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "hook": { - "type": "boolean", - "default": true - }, - "bot_public": { - "type": "boolean", - "default": true - }, - "bot_require_code_grant": { - "type": "boolean", - "default": false - }, - "verify_key": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "rpc_application_state": { - "type": "integer", - "default": 0 - }, - "store_application_state": { - "type": "integer", - "default": 1 - }, - "verification_state": { - "type": "integer", - "default": 1 - }, - "interactions_endpoint_url": { - "type": "string" - }, - "integration_public": { - "type": "boolean", - "default": true - }, - "integration_require_code_grant": { - "type": "boolean", - "default": false - }, - "discoverability_state": { - "type": "integer", - "default": 1 - }, - "discovery_eligibility_flags": { - "type": "integer", - "default": 2240 - }, - "bot": { - "$ref": "#/definitions/User" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "cover_image": { - "type": "string" - }, - "install_params": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "permissions", - "scopes" - ] - }, - "terms_of_service_url": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "discoverability_state", - "discovery_eligibility_flags", - "flags", - "hook", - "id", - "integration_public", - "integration_require_code_grant", - "name", - "owner", - "redirect_uris", - "rpc_application_state", - "store_application_state", - "summary", - "verification_state", - "verify_key" - ] - }, - "Team": { - "type": "object", - "properties": { - "icon": { - "type": "string" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/TeamMember" - } - }, - "name": { - "type": "string" - }, - "owner_user_id": { - "type": "string" - }, - "owner_user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "members", - "name", - "owner_user", - "owner_user_id" - ] - }, - "TeamMember": { - "type": "object", - "properties": { - "membership_state": { - "$ref": "#/definitions/TeamMemberState" - }, - "permissions": { - "type": "array", - "items": { - "type": "string" - } - }, - "team_id": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "membership_state", - "permissions", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "Sticker": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" - }, - "pack_id": { - "type": "string" - }, - "pack": { - "$ref": "#/definitions/StickerPack" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "type": { - "$ref": "#/definitions/StickerType" - }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "format_type", - "id", - "name", - "pack", - "type" - ] - }, - "StickerPack": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "cover_sticker_id": { - "type": "string" - }, - "cover_sticker": { - "$ref": "#/definitions/Sticker" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "stickers" - ] - }, - "StickerType": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "Attachment": { - "type": "object", - "properties": { - "filename": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - }, - "content_type": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "message": { - "$ref": "#/definitions/Message" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", - "url" - ] - }, - "Reaction": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "count", - "emoji", - "user_ids" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "Poll": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "expiry": { - "type": "string", - "format": "date-time" - }, - "allow_multiselect": { - "type": "boolean" - }, - "results": { - "$ref": "#/definitions/PollResult" - } - }, - "additionalProperties": false, - "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" - ] - }, - "PollResult": { - "type": "object", - "properties": { - "is_finalized": { - "type": "boolean" - }, - "answer_counts": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswerCount" - } - } - }, - "additionalProperties": false, - "required": [ - "answer_counts", - "is_finalized" - ] - }, - "PollAnswerCount": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "count": { - "type": "integer" - }, - "me_voted": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "id", - "me_voted" - ] - }, - "VoiceState": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "session_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_mute": { - "type": "boolean" - }, - "self_stream": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "suppress": { - "type": "boolean" - }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "deaf", - "guild_id", - "id", - "member", - "mute", - "self_deaf", - "self_mute", - "self_video", - "session_id", - "suppress", - "token", - "user", - "user_id" - ] - }, - "ReadState": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "last_message_id": { - "type": "string" - }, - "public_ack": { - "type": "string" - }, - "notifications_cursor": { - "type": "string" - }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "mention_count": { - "type": "integer" - }, - "manual": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "id", - "last_message_id", - "manual", - "mention_count", - "notifications_cursor", - "public_ack", - "user", - "user_id" - ] - }, - "Ban": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "executor_id": { - "type": "string" - }, - "executor": { - "$ref": "#/definitions/User" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor", - "executor_id", - "guild", - "guild_id", - "id", - "ip", - "user", - "user_id" - ] - }, - "Template": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "usage_count": { - "type": "integer" - }, - "creator_id": { - "type": "string" - }, - "creator": { - "$ref": "#/definitions/User" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "serialized_source_guild": { - "$ref": "#/definitions/Guild" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "created_at", - "creator", - "creator_id", - "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" - ] - }, - "Emoji": { - "type": "object", - "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "managed": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "require_colons": { - "type": "boolean" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" - ] - }, - "GuildWelcomeScreen": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "channel_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "description", - "enabled", - "welcome_channels" - ] - }, - "GuildMessagesSearchMessage": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "content": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/PublicUser" - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicUser" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, - "timestamp": { - "type": "string" - }, - "edited_timestamp": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "hit": { - "type": "boolean", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ] - }, - "GuildVanityUrl": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "uses": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "code", - "uses" - ] - }, - "GuildVanityUrlNoInvite": { - "type": "object", - "properties": { - "code": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "code" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "TenorGifResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" - ] - }, - "BackupCode": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "code": { - "type": "string" - }, - "consumed": { - "type": "boolean" - }, - "expired": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "consumed", - "expired", - "id", - "user" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "toJSON": { - "type": "object", - "additionalProperties": false - }, - "_do_validate": { - "type": "object", - "additionalProperties": false - }, - "assign": { - "type": "object", - "additionalProperties": false - }, - "hasId": { - "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", - "type": "object", - "additionalProperties": false - }, - "save": { - "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", - "type": "object", - "additionalProperties": false - }, - "remove": { - "description": "Removes current entity from the database.", - "type": "object", - "additionalProperties": false - }, - "softRemove": { - "description": "Records the delete date of current entity.", - "type": "object", - "additionalProperties": false - }, - "recover": { - "description": "Recovers a given entity in the database.", - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "banner": { - "type": "string" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "_do_validate", - "assign", - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "hasId", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "recover", - "reload", - "remove", - "roles", - "save", - "softRemove", - "stickers", - "toJSON", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "DmChannelDTO": { - "type": "object", - "properties": { - "icon": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": "string" - }, - "last_message_id": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "origin_channel_id": { - "type": [ - "null", - "string" - ] - }, - "owner_id": { - "type": "string" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/MinimalPublicUserDTO" - } - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "icon", - "id", - "last_message_id", - "name", - "origin_channel_id", - "recipients", - "type" - ] - }, - "MinimalPublicUserDTO": { - "type": "object", - "properties": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - }, - "badge_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - }, - "Categories": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "localizations": { - "type": "string" - }, - "is_primary": { - "type": "boolean" - }, - "icon": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "is_primary", - "localizations", - "name" - ] - }, - "GuildVoiceRegion": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "custom": { - "type": "boolean" - }, - "deprecated": { - "type": "boolean" - }, - "optimal": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom", - "deprecated", - "id", - "name", - "optimal" - ] - }, - "UserLimits": { - "type": "object", - "properties": { - "maxGuilds": { - "type": "integer", - "default": 1048576 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - }, - "maxBio": { - "type": "integer", - "default": 190 - } - }, - "additionalProperties": false, - "required": [ - "maxBio", - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "GuildLimits": { - "type": "object", - "properties": { - "maxRoles": { - "type": "integer", - "default": 1000 - }, - "maxEmojis": { - "type": "integer", - "default": 2000 - }, - "maxMembers": { - "type": "integer", - "default": 25000000 - }, - "maxChannels": { - "type": "integer", - "default": 65535 - }, - "maxBulkBanUsers": { - "type": "integer", - "default": 200 - }, - "maxChannelsInCategory": { - "type": "integer", - "default": 65535 - } - }, - "additionalProperties": false, - "required": [ - "maxBulkBanUsers", - "maxChannels", - "maxChannelsInCategory", - "maxEmojis", - "maxMembers", - "maxRoles" - ] - }, - "MessageLimits": { - "type": "object", - "properties": { - "maxCharacters": { - "type": "integer", - "default": 1048576 - }, - "maxTTSCharacters": { - "type": "integer", - "default": 160 - }, - "maxReactions": { - "type": "integer", - "default": 2048 - }, - "maxAttachmentSize": { - "type": "integer", - "default": 1073741824 - }, - "maxBulkDelete": { - "type": "integer", - "default": 1000 - }, - "maxEmbedDownloadSize": { - "type": "integer", - "default": 5242880 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "maxReactions", - "maxTTSCharacters" - ] - }, - "ChannelLimits": { - "type": "object", - "properties": { - "maxPins": { - "type": "integer", - "default": 500 - }, - "maxTopic": { - "type": "integer", - "default": 1024 - }, - "maxWebhooks": { - "type": "integer", - "default": 100 - } - }, - "additionalProperties": false, - "required": [ - "maxPins", - "maxTopic", - "maxWebhooks" - ] - }, - "RateLimits": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": false - }, - "ip": { - "$ref": "#/definitions/RateLimitOptions" - }, - "global": { - "$ref": "#/definitions/RateLimitOptions" - }, - "error": { - "$ref": "#/definitions/RateLimitOptions" - }, - "routes": { - "$ref": "#/definitions/RouteRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "error", - "global", - "ip", - "routes" - ] - }, - "RateLimitOptions": { - "type": "object", - "properties": { - "bot": { - "type": "integer" - }, - "count": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "onyIp": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "window" - ] - }, - "RouteRateLimit": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/definitions/RateLimitOptions" - }, - "webhook": { - "$ref": "#/definitions/RateLimitOptions" - }, - "channel": { - "$ref": "#/definitions/RateLimitOptions" - }, - "auth": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "GlobalRateLimits": { - "type": "object", - "properties": { - "register": { - "$ref": "#/definitions/GlobalRateLimit" - }, - "sendMessage": { - "$ref": "#/definitions/GlobalRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "register", - "sendMessage" - ] - }, - "GlobalRateLimit": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "default": 100 - }, - "window": { - "type": "integer", - "default": 3600000 - }, - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "limit", - "window" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type" - ] - }, - "UserProfile": { - "type": "object", - "properties": { - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "ApplicationModifySchema": { @@ -28947,4772 +152,6 @@ } }, "additionalProperties": false, - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "ConnectedAccountTokenData": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - }, - "expires_at": { - "type": "integer" - }, - "fetched_at": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "fetched_at" - ] - }, - "ChannelModifySchema": { - "type": "object", - "properties": { - "name": { - "maxLength": 100, - "type": "string" - }, - "type": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "topic": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - }, - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - } - }, - "parent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActivitySchema": { - "type": "object", - "properties": { - "afk": { - "type": "boolean" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "since": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "status" - ] - }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "Activity": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ActivityType" - }, - "url": { - "type": "string" - }, - "created_at": { - "type": "integer" - }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] - }, - "application_id": { - "type": "string" - }, - "details": { - "type": "string" - }, - "state": { - "type": "string" - }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] - }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false - }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false - }, - "instance": { - "type": "boolean" - }, - "flags": { - "type": "string" - }, - "id": { - "type": "string" - }, - "sync_id": { - "type": "string" - }, - "metadata": { - "type": "object", - "properties": { - "context_uri": { - "type": "string" - }, - "album_id": { - "type": "string" - }, - "artist_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] - }, - "session_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "flags", - "name", - "session_id", - "type" - ] - }, - "ActivityType": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "color": { - "type": "integer" - }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/definitions/EmbedImage" - }, - "thumbnail": { - "$ref": "#/definitions/EmbedImage" - }, - "video": { - "$ref": "#/definitions/EmbedImage" - }, - "provider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - }, - "additionalProperties": false - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActionRowComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.ActionRow" - }, - "components": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/definitions/ButtonComponent" - }, - { - "$ref": "#/definitions/SelectMenuComponent" - }, - { - "$ref": "#/definitions/StringSelectMenuComponent" - }, - { - "$ref": "#/definitions/TextInputComponent" - } - ] - } - } - }, - "additionalProperties": false, - "required": [ - "components", - "type" - ] - }, - "MessageComponentType.ActionRow": { - "type": "number", - "enum": [ - 1 - ] - }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.Button" - }, - "style": { - "$ref": "#/definitions/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "style", - "type" - ] - }, - "MessageComponentType.Button": { - "type": "number", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - "SelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "type" - ] - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "type" - ] - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.StringSelect" - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuOption" - } - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "options", - "type" - ] - }, - "MessageComponentType.StringSelect": { - "type": "number", - "enum": [ - 3 - ] - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "default": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "label", - "value" - ] - }, - "TextInputComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.TextInput" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/definitions/TextInputStyle" - }, - "label": { - "type": "string" - }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" - }, - "value": { - "type": "string" - }, - "placeholder": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "label", - "style", - "type" - ] - }, - "MessageComponentType.TextInput": { - "type": "number", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "PollCreationSchema": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "duration": { - "type": "integer" - }, - "allow_multiselect": { - "type": "boolean" - }, - "layout_type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "answers", - "question" - ] - }, - "PollMedia": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - } - }, - "additionalProperties": false - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" - }, - "poll_media": { - "$ref": "#/definitions/PollMedia" - } - }, - "additionalProperties": false, - "required": [ - "poll_media" - ] - }, - "ChannelOverride": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ] - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "all" - ] - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { - "type": "integer" - }, - "guild_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "integer" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "guild_ids", - "id", - "name" - ] - }, - "GenerateWebAuthnCredentialsSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "password" - ] - }, - "CreateWebAuthnCredentialSchema": { - "type": "object", - "properties": { - "credential": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ticket": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "credential", - "name", - "ticket" - ] - }, - "APIErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "code", - "errors", - "message" - ] - }, - "CaptchaRequiredResponse": { - "type": "object", - "properties": { - "captcha_key": { - "type": "string" - }, - "captcha_sitekey": { - "type": "string" - }, - "captcha_service": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "string" - }, - "afk_channel": { - "$ref": "#/definitions/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { - "type": "string" - }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "template_id": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/definitions/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "Channel": { - "type": "object", - "properties": { - "created_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "type": { - "$ref": "#/definitions/ChannelType" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/Recipient" - } - }, - "last_message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "parent_id": { - "type": [ - "null", - "string" - ] - }, - "parent": { - "$ref": "#/definitions/Channel" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "last_pin_timestamp": { - "type": "integer" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelPermissionOverwrite" - } - }, - "video_quality_mode": { - "type": "integer" - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "rate_limit_per_user": { - "type": "integer" - }, - "topic": { - "type": "string" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "retention_policy_id": { - "type": "string" - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "read_states": { - "type": "array", - "items": { - "$ref": "#/definitions/ReadState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "flags": { - "type": "integer", - "default": 0 - }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "created_at", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "Recipient": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "closed": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "closed", - "id", - "user", - "user_id" - ] - }, - "User": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "desktop": { - "type": "boolean", - "default": false - }, - "mobile": { - "type": "boolean", - "default": false - }, - "premium": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "bot": { - "type": "boolean", - "default": false - }, - "bio": { - "type": "string", - "default": "" - }, - "system": { - "type": "boolean", - "default": false - }, - "nsfw_allowed": { - "type": "boolean", - "default": true - }, - "mfa_enabled": { - "type": "boolean", - "default": false - }, - "webauthn_enabled": { - "type": "boolean", - "default": false - }, - "totp_secret": { - "type": "string", - "default": "" - }, - "totp_last_ticket": { - "type": "string", - "default": "" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "verified": { - "type": "boolean" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "deleted": { - "type": "boolean", - "default": false - }, - "email": { - "type": "string" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "public_flags": { - "type": "integer", - "default": 0 - }, - "purchased_flags": { - "type": "integer", - "default": 0 - }, - "premium_usage_flags": { - "type": "integer", - "default": 0 - }, - "rights": { - "type": "string" - }, - "sessions": { - "type": "array", - "items": { - "$ref": "#/definitions/Session" - } - }, - "relationships": { - "type": "array", - "items": { - "$ref": "#/definitions/Relationship" - } - }, - "connected_accounts": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectedAccount" - } - }, - "data": { - "type": "object", - "properties": { - "valid_tokens_since": { - "type": "string", - "format": "date-time" - }, - "hash": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "valid_tokens_since" - ] - }, - "fingerprints": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "settings": { - "$ref": "#/definitions/UserSettings" - }, - "extended_settings": { - "type": "string", - "default": "{}" - }, - "security_keys": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityKey" - } - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "extended_settings", - "fingerprints", - "flags", - "id", - "mfa_enabled", - "mobile", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "relationships", - "rights", - "security_keys", - "sessions", - "settings", - "system", - "username", - "verified", - "webauthn_enabled" - ] - }, - "Session": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "session_id": { - "type": "string" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "client_info": { - "type": "object", - "properties": { - "client": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "client", - "os", - "version" - ] - }, - "client_status": { - "$ref": "#/definitions/ClientStatus" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "activities", - "client_info", - "client_status", - "id", - "session_id", - "status", - "user", - "user_id" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "Relationship": { - "type": "object", - "properties": { - "from_id": { - "type": "string" - }, - "from": { - "$ref": "#/definitions/User" - }, - "to_id": { - "type": "string" - }, - "to": { - "$ref": "#/definitions/User" - }, - "nickname": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "from", - "from_id", - "id", - "to", - "to_id", - "type" - ] - }, - "RelationshipType": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "ConnectedAccount": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "friend_sync": { - "type": "boolean", - "default": false - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean", - "default": false - }, - "show_activity": { - "type": "integer", - "default": 0 - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean", - "default": true - }, - "visibility": { - "type": "integer", - "default": 0 - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer", - "default": 0 - }, - "two_way_link": { - "type": "boolean", - "default": false - }, - "token_data": { - "anyOf": [ - { - "$ref": "#/definitions/ConnectedAccountTokenData" - }, - { - "type": "null" - } - ] - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "external_id", - "id", - "name", - "type", - "user", - "user_id" - ] - }, - "UserSettings": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "afk_timeout": { - "type": "integer", - "default": 3600 - }, - "allow_accessibility_detection": { - "type": "boolean", - "default": true - }, - "animate_emoji": { - "type": "boolean", - "default": true - }, - "animate_stickers": { - "type": "integer", - "default": 0 - }, - "contact_sync_enabled": { - "type": "boolean", - "default": false - }, - "convert_emoticons": { - "type": "boolean", - "default": false - }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" - }, - { - "type": "null" - } - ], - "default": null - }, - "default_guilds_restricted": { - "type": "boolean", - "default": false - }, - "detect_platform_accounts": { - "type": "boolean", - "default": false - }, - "developer_mode": { - "type": "boolean", - "default": true - }, - "disable_games_tab": { - "type": "boolean", - "default": true - }, - "enable_tts_command": { - "type": "boolean", - "default": false - }, - "explicit_content_filter": { - "type": "integer", - "default": 0 - }, - "friend_discovery_flags": { - "type": "integer", - "default": 0 - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean", - "default": false - }, - "gif_auto_play": { - "type": "boolean", - "default": false - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - }, - "default": [] - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "inline_attachment_media": { - "type": "boolean", - "default": true - }, - "inline_embed_media": { - "type": "boolean", - "default": true - }, - "locale": { - "type": "string", - "default": "en-US" - }, - "message_display_compact": { - "type": "boolean", - "default": false - }, - "native_phone_integration_enabled": { - "type": "boolean", - "default": true - }, - "render_embeds": { - "type": "boolean", - "default": true - }, - "render_reactions": { - "type": "boolean", - "default": true - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "show_current_game": { - "type": "boolean", - "default": true - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "default": "online" - }, - "stream_notifications_enabled": { - "type": "boolean", - "default": false - }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string", - "default": "dark" - }, - "timezone_offset": { - "type": "integer", - "default": 0 - }, - "view_nsfw_guilds": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_discovery_flags", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "index", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset", - "view_nsfw_guilds" - ] - }, - "SecurityKey": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "key_id": { - "type": "string" - }, - "public_key": { - "type": "string" - }, - "counter": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "counter", - "id", - "key_id", - "name", - "public_key", - "user", - "user_id" - ] - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - }, - "Invite": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "temporary": { - "type": "boolean" - }, - "uses": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "max_age": { - "type": "integer" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "inviter_id": { - "type": "string" - }, - "inviter": { - "$ref": "#/definitions/User" - }, - "target_user_id": { - "type": "string" - }, - "target_user": { - "type": "string" - }, - "target_user_type": { - "type": "integer" - }, - "vanity_url": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "code", - "created_at", - "flags", - "guild", - "guild_id", - "inviter", - "max_age", - "max_uses", - "target_user_id", - "temporary", - "uses" - ] - }, - "Message": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "author_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/User" - }, - "member_id": { - "type": "string" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "webhook_id": { - "type": "string" - }, - "webhook": { - "$ref": "#/definitions/Webhook" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "type": "string", - "format": "date-time" - }, - "tts": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "mention_channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/definitions/Reaction" - } - }, - "nonce": { - "type": "string" - }, - "pinned": { - "type": "boolean" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "activity": { - "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "party_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "party_id", - "type" - ] - }, - "flags": { - "type": "integer" - }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type", - "user_id" - ] - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "embeds", - "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "reactions", - "timestamp", - "type" - ] - }, - "Member": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "nick": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "integer" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "pending": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserGuildSettings" - }, - "last_message_id": { - "type": "string" - }, - "joined_by": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "guild", - "guild_id", - "id", - "index", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "user" - ] - }, - "Role": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "color": { - "type": "integer" - }, - "hoist": { - "type": "boolean" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "icon": { - "type": "string" - }, - "unicode_emoji": { - "type": "string" - }, - "tags": { - "type": "object", - "properties": { - "bot_id": { - "type": "string" - }, - "integration_id": { - "type": "string" - }, - "premium_subscriber": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "flags": { - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "UserGuildSettings": { - "type": "object", - "properties": { - "channel_overrides": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - { - "type": "null" - } - ] - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "version": { - "type": "integer" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "type": "number", - "enum": [ - 0 - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_overrides", - "flags", - "guild_id", - "hide_muted_channels", - "message_notifications", - "mobile_push", - "mute_config", - "mute_scheduled_events", - "muted", - "notify_highlights", - "suppress_everyone", - "suppress_roles", - "version" - ] - }, - "Webhook": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/WebhookType" - }, - "name": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "token": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "source_channel_id": { - "type": "string" - }, - "source_channel": { - "$ref": "#/definitions/Channel" - }, - "url": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "application", - "application_id", - "avatar", - "channel", - "channel_id", - "id", - "name", - "source_channel", - "source_channel_id", - "type", - "url", - "user", - "user_id" - ] - }, - "WebhookType": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "Application": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "description": { - "type": "string" - }, - "summary": { - "type": "string", - "default": "" - }, - "type": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "hook": { - "type": "boolean", - "default": true - }, - "bot_public": { - "type": "boolean", - "default": true - }, - "bot_require_code_grant": { - "type": "boolean", - "default": false - }, - "verify_key": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "rpc_application_state": { - "type": "integer", - "default": 0 - }, - "store_application_state": { - "type": "integer", - "default": 1 - }, - "verification_state": { - "type": "integer", - "default": 1 - }, - "interactions_endpoint_url": { - "type": "string" - }, - "integration_public": { - "type": "boolean", - "default": true - }, - "integration_require_code_grant": { - "type": "boolean", - "default": false - }, - "discoverability_state": { - "type": "integer", - "default": 1 - }, - "discovery_eligibility_flags": { - "type": "integer", - "default": 2240 - }, - "bot": { - "$ref": "#/definitions/User" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "cover_image": { - "type": "string" - }, - "install_params": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "permissions", - "scopes" - ] - }, - "terms_of_service_url": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "discoverability_state", - "discovery_eligibility_flags", - "flags", - "hook", - "id", - "integration_public", - "integration_require_code_grant", - "name", - "owner", - "redirect_uris", - "rpc_application_state", - "store_application_state", - "summary", - "verification_state", - "verify_key" - ] - }, - "Team": { - "type": "object", - "properties": { - "icon": { - "type": "string" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/TeamMember" - } - }, - "name": { - "type": "string" - }, - "owner_user_id": { - "type": "string" - }, - "owner_user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "members", - "name", - "owner_user", - "owner_user_id" - ] - }, - "TeamMember": { - "type": "object", - "properties": { - "membership_state": { - "$ref": "#/definitions/TeamMemberState" - }, - "permissions": { - "type": "array", - "items": { - "type": "string" - } - }, - "team_id": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "membership_state", - "permissions", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "Sticker": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" - }, - "pack_id": { - "type": "string" - }, - "pack": { - "$ref": "#/definitions/StickerPack" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "type": { - "$ref": "#/definitions/StickerType" - }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "format_type", - "id", - "name", - "pack", - "type" - ] - }, - "StickerPack": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "cover_sticker_id": { - "type": "string" - }, - "cover_sticker": { - "$ref": "#/definitions/Sticker" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "stickers" - ] - }, - "StickerType": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "Attachment": { - "type": "object", - "properties": { - "filename": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - }, - "content_type": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "message": { - "$ref": "#/definitions/Message" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", - "url" - ] - }, - "Reaction": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "count", - "emoji", - "user_ids" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "Poll": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "expiry": { - "type": "string", - "format": "date-time" - }, - "allow_multiselect": { - "type": "boolean" - }, - "results": { - "$ref": "#/definitions/PollResult" - } - }, - "additionalProperties": false, - "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" - ] - }, - "PollResult": { - "type": "object", - "properties": { - "is_finalized": { - "type": "boolean" - }, - "answer_counts": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswerCount" - } - } - }, - "additionalProperties": false, - "required": [ - "answer_counts", - "is_finalized" - ] - }, - "PollAnswerCount": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "count": { - "type": "integer" - }, - "me_voted": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "id", - "me_voted" - ] - }, - "VoiceState": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "session_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_mute": { - "type": "boolean" - }, - "self_stream": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "suppress": { - "type": "boolean" - }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "deaf", - "guild_id", - "id", - "member", - "mute", - "self_deaf", - "self_mute", - "self_video", - "session_id", - "suppress", - "token", - "user", - "user_id" - ] - }, - "ReadState": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "last_message_id": { - "type": "string" - }, - "public_ack": { - "type": "string" - }, - "notifications_cursor": { - "type": "string" - }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "mention_count": { - "type": "integer" - }, - "manual": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "id", - "last_message_id", - "manual", - "mention_count", - "notifications_cursor", - "public_ack", - "user", - "user_id" - ] - }, - "Ban": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "executor_id": { - "type": "string" - }, - "executor": { - "$ref": "#/definitions/User" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor", - "executor_id", - "guild", - "guild_id", - "id", - "ip", - "user", - "user_id" - ] - }, - "Template": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "usage_count": { - "type": "integer" - }, - "creator_id": { - "type": "string" - }, - "creator": { - "$ref": "#/definitions/User" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "serialized_source_guild": { - "$ref": "#/definitions/Guild" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "created_at", - "creator", - "creator_id", - "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" - ] - }, - "Emoji": { - "type": "object", - "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "managed": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "require_colons": { - "type": "boolean" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" - ] - }, - "GuildWelcomeScreen": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "channel_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "description", - "enabled", - "welcome_channels" - ] - }, - "GuildMessagesSearchMessage": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "content": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/PublicUser" - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicUser" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, - "timestamp": { - "type": "string" - }, - "edited_timestamp": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "hit": { - "type": "boolean", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ] - }, - "GuildVanityUrl": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "uses": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "code", - "uses" - ] - }, - "GuildVanityUrlNoInvite": { - "type": "object", - "properties": { - "code": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "code" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "TenorGifResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" - ] - }, - "BackupCode": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "code": { - "type": "string" - }, - "consumed": { - "type": "boolean" - }, - "expired": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "consumed", - "expired", - "id", - "user" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "toJSON": { - "type": "object", - "additionalProperties": false - }, - "_do_validate": { - "type": "object", - "additionalProperties": false - }, - "assign": { - "type": "object", - "additionalProperties": false - }, - "hasId": { - "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", - "type": "object", - "additionalProperties": false - }, - "save": { - "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", - "type": "object", - "additionalProperties": false - }, - "remove": { - "description": "Removes current entity from the database.", - "type": "object", - "additionalProperties": false - }, - "softRemove": { - "description": "Records the delete date of current entity.", - "type": "object", - "additionalProperties": false - }, - "recover": { - "description": "Recovers a given entity in the database.", - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "banner": { - "type": "string" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "_do_validate", - "assign", - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "hasId", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "recover", - "reload", - "remove", - "roles", - "save", - "softRemove", - "stickers", - "toJSON", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "DmChannelDTO": { - "type": "object", - "properties": { - "icon": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": "string" - }, - "last_message_id": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "origin_channel_id": { - "type": [ - "null", - "string" - ] - }, - "owner_id": { - "type": "string" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/MinimalPublicUserDTO" - } - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "icon", - "id", - "last_message_id", - "name", - "origin_channel_id", - "recipients", - "type" - ] - }, - "MinimalPublicUserDTO": { - "type": "object", - "properties": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - }, - "badge_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - }, - "Categories": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "localizations": { - "type": "string" - }, - "is_primary": { - "type": "boolean" - }, - "icon": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "is_primary", - "localizations", - "name" - ] - }, - "GuildVoiceRegion": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "custom": { - "type": "boolean" - }, - "deprecated": { - "type": "boolean" - }, - "optimal": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom", - "deprecated", - "id", - "name", - "optimal" - ] - }, - "UserLimits": { - "type": "object", - "properties": { - "maxGuilds": { - "type": "integer", - "default": 1048576 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - }, - "maxBio": { - "type": "integer", - "default": 190 - } - }, - "additionalProperties": false, - "required": [ - "maxBio", - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "GuildLimits": { - "type": "object", - "properties": { - "maxRoles": { - "type": "integer", - "default": 1000 - }, - "maxEmojis": { - "type": "integer", - "default": 2000 - }, - "maxMembers": { - "type": "integer", - "default": 25000000 - }, - "maxChannels": { - "type": "integer", - "default": 65535 - }, - "maxBulkBanUsers": { - "type": "integer", - "default": 200 - }, - "maxChannelsInCategory": { - "type": "integer", - "default": 65535 - } - }, - "additionalProperties": false, - "required": [ - "maxBulkBanUsers", - "maxChannels", - "maxChannelsInCategory", - "maxEmojis", - "maxMembers", - "maxRoles" - ] - }, - "MessageLimits": { - "type": "object", - "properties": { - "maxCharacters": { - "type": "integer", - "default": 1048576 - }, - "maxTTSCharacters": { - "type": "integer", - "default": 160 - }, - "maxReactions": { - "type": "integer", - "default": 2048 - }, - "maxAttachmentSize": { - "type": "integer", - "default": 1073741824 - }, - "maxBulkDelete": { - "type": "integer", - "default": 1000 - }, - "maxEmbedDownloadSize": { - "type": "integer", - "default": 5242880 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "maxReactions", - "maxTTSCharacters" - ] - }, - "ChannelLimits": { - "type": "object", - "properties": { - "maxPins": { - "type": "integer", - "default": 500 - }, - "maxTopic": { - "type": "integer", - "default": 1024 - }, - "maxWebhooks": { - "type": "integer", - "default": 100 - } - }, - "additionalProperties": false, - "required": [ - "maxPins", - "maxTopic", - "maxWebhooks" - ] - }, - "RateLimits": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": false - }, - "ip": { - "$ref": "#/definitions/RateLimitOptions" - }, - "global": { - "$ref": "#/definitions/RateLimitOptions" - }, - "error": { - "$ref": "#/definitions/RateLimitOptions" - }, - "routes": { - "$ref": "#/definitions/RouteRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "error", - "global", - "ip", - "routes" - ] - }, - "RateLimitOptions": { - "type": "object", - "properties": { - "bot": { - "type": "integer" - }, - "count": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "onyIp": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "window" - ] - }, - "RouteRateLimit": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/definitions/RateLimitOptions" - }, - "webhook": { - "$ref": "#/definitions/RateLimitOptions" - }, - "channel": { - "$ref": "#/definitions/RateLimitOptions" - }, - "auth": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "GlobalRateLimits": { - "type": "object", - "properties": { - "register": { - "$ref": "#/definitions/GlobalRateLimit" - }, - "sendMessage": { - "$ref": "#/definitions/GlobalRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "register", - "sendMessage" - ] - }, - "GlobalRateLimit": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "default": 100 - }, - "window": { - "type": "integer", - "default": 3600000 - }, - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "limit", - "window" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type" - ] - }, - "UserProfile": { - "type": "object", - "properties": { - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "BackupCodesChallengeSchema": { @@ -33726,4772 +165,6 @@ "required": [ "password" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "ConnectedAccountTokenData": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - }, - "expires_at": { - "type": "integer" - }, - "fetched_at": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "fetched_at" - ] - }, - "ChannelModifySchema": { - "type": "object", - "properties": { - "name": { - "maxLength": 100, - "type": "string" - }, - "type": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "topic": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - }, - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - } - }, - "parent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActivitySchema": { - "type": "object", - "properties": { - "afk": { - "type": "boolean" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "since": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "status" - ] - }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "Activity": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ActivityType" - }, - "url": { - "type": "string" - }, - "created_at": { - "type": "integer" - }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] - }, - "application_id": { - "type": "string" - }, - "details": { - "type": "string" - }, - "state": { - "type": "string" - }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] - }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false - }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false - }, - "instance": { - "type": "boolean" - }, - "flags": { - "type": "string" - }, - "id": { - "type": "string" - }, - "sync_id": { - "type": "string" - }, - "metadata": { - "type": "object", - "properties": { - "context_uri": { - "type": "string" - }, - "album_id": { - "type": "string" - }, - "artist_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] - }, - "session_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "flags", - "name", - "session_id", - "type" - ] - }, - "ActivityType": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "color": { - "type": "integer" - }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/definitions/EmbedImage" - }, - "thumbnail": { - "$ref": "#/definitions/EmbedImage" - }, - "video": { - "$ref": "#/definitions/EmbedImage" - }, - "provider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - }, - "additionalProperties": false - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActionRowComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.ActionRow" - }, - "components": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/definitions/ButtonComponent" - }, - { - "$ref": "#/definitions/SelectMenuComponent" - }, - { - "$ref": "#/definitions/StringSelectMenuComponent" - }, - { - "$ref": "#/definitions/TextInputComponent" - } - ] - } - } - }, - "additionalProperties": false, - "required": [ - "components", - "type" - ] - }, - "MessageComponentType.ActionRow": { - "type": "number", - "enum": [ - 1 - ] - }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.Button" - }, - "style": { - "$ref": "#/definitions/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "style", - "type" - ] - }, - "MessageComponentType.Button": { - "type": "number", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - "SelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "type" - ] - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "type" - ] - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.StringSelect" - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuOption" - } - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "options", - "type" - ] - }, - "MessageComponentType.StringSelect": { - "type": "number", - "enum": [ - 3 - ] - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "default": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "label", - "value" - ] - }, - "TextInputComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.TextInput" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/definitions/TextInputStyle" - }, - "label": { - "type": "string" - }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" - }, - "value": { - "type": "string" - }, - "placeholder": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "label", - "style", - "type" - ] - }, - "MessageComponentType.TextInput": { - "type": "number", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "PollCreationSchema": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "duration": { - "type": "integer" - }, - "allow_multiselect": { - "type": "boolean" - }, - "layout_type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "answers", - "question" - ] - }, - "PollMedia": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - } - }, - "additionalProperties": false - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" - }, - "poll_media": { - "$ref": "#/definitions/PollMedia" - } - }, - "additionalProperties": false, - "required": [ - "poll_media" - ] - }, - "ChannelOverride": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ] - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "all" - ] - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { - "type": "integer" - }, - "guild_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "integer" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "guild_ids", - "id", - "name" - ] - }, - "GenerateWebAuthnCredentialsSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "password" - ] - }, - "CreateWebAuthnCredentialSchema": { - "type": "object", - "properties": { - "credential": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ticket": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "credential", - "name", - "ticket" - ] - }, - "APIErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "code", - "errors", - "message" - ] - }, - "CaptchaRequiredResponse": { - "type": "object", - "properties": { - "captcha_key": { - "type": "string" - }, - "captcha_sitekey": { - "type": "string" - }, - "captcha_service": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "string" - }, - "afk_channel": { - "$ref": "#/definitions/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { - "type": "string" - }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "template_id": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/definitions/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "Channel": { - "type": "object", - "properties": { - "created_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "type": { - "$ref": "#/definitions/ChannelType" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/Recipient" - } - }, - "last_message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "parent_id": { - "type": [ - "null", - "string" - ] - }, - "parent": { - "$ref": "#/definitions/Channel" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "last_pin_timestamp": { - "type": "integer" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelPermissionOverwrite" - } - }, - "video_quality_mode": { - "type": "integer" - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "rate_limit_per_user": { - "type": "integer" - }, - "topic": { - "type": "string" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "retention_policy_id": { - "type": "string" - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "read_states": { - "type": "array", - "items": { - "$ref": "#/definitions/ReadState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "flags": { - "type": "integer", - "default": 0 - }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "created_at", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "Recipient": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "closed": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "closed", - "id", - "user", - "user_id" - ] - }, - "User": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "desktop": { - "type": "boolean", - "default": false - }, - "mobile": { - "type": "boolean", - "default": false - }, - "premium": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "bot": { - "type": "boolean", - "default": false - }, - "bio": { - "type": "string", - "default": "" - }, - "system": { - "type": "boolean", - "default": false - }, - "nsfw_allowed": { - "type": "boolean", - "default": true - }, - "mfa_enabled": { - "type": "boolean", - "default": false - }, - "webauthn_enabled": { - "type": "boolean", - "default": false - }, - "totp_secret": { - "type": "string", - "default": "" - }, - "totp_last_ticket": { - "type": "string", - "default": "" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "verified": { - "type": "boolean" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "deleted": { - "type": "boolean", - "default": false - }, - "email": { - "type": "string" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "public_flags": { - "type": "integer", - "default": 0 - }, - "purchased_flags": { - "type": "integer", - "default": 0 - }, - "premium_usage_flags": { - "type": "integer", - "default": 0 - }, - "rights": { - "type": "string" - }, - "sessions": { - "type": "array", - "items": { - "$ref": "#/definitions/Session" - } - }, - "relationships": { - "type": "array", - "items": { - "$ref": "#/definitions/Relationship" - } - }, - "connected_accounts": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectedAccount" - } - }, - "data": { - "type": "object", - "properties": { - "valid_tokens_since": { - "type": "string", - "format": "date-time" - }, - "hash": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "valid_tokens_since" - ] - }, - "fingerprints": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "settings": { - "$ref": "#/definitions/UserSettings" - }, - "extended_settings": { - "type": "string", - "default": "{}" - }, - "security_keys": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityKey" - } - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "extended_settings", - "fingerprints", - "flags", - "id", - "mfa_enabled", - "mobile", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "relationships", - "rights", - "security_keys", - "sessions", - "settings", - "system", - "username", - "verified", - "webauthn_enabled" - ] - }, - "Session": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "session_id": { - "type": "string" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "client_info": { - "type": "object", - "properties": { - "client": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "client", - "os", - "version" - ] - }, - "client_status": { - "$ref": "#/definitions/ClientStatus" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "activities", - "client_info", - "client_status", - "id", - "session_id", - "status", - "user", - "user_id" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "Relationship": { - "type": "object", - "properties": { - "from_id": { - "type": "string" - }, - "from": { - "$ref": "#/definitions/User" - }, - "to_id": { - "type": "string" - }, - "to": { - "$ref": "#/definitions/User" - }, - "nickname": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "from", - "from_id", - "id", - "to", - "to_id", - "type" - ] - }, - "RelationshipType": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "ConnectedAccount": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "friend_sync": { - "type": "boolean", - "default": false - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean", - "default": false - }, - "show_activity": { - "type": "integer", - "default": 0 - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean", - "default": true - }, - "visibility": { - "type": "integer", - "default": 0 - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer", - "default": 0 - }, - "two_way_link": { - "type": "boolean", - "default": false - }, - "token_data": { - "anyOf": [ - { - "$ref": "#/definitions/ConnectedAccountTokenData" - }, - { - "type": "null" - } - ] - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "external_id", - "id", - "name", - "type", - "user", - "user_id" - ] - }, - "UserSettings": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "afk_timeout": { - "type": "integer", - "default": 3600 - }, - "allow_accessibility_detection": { - "type": "boolean", - "default": true - }, - "animate_emoji": { - "type": "boolean", - "default": true - }, - "animate_stickers": { - "type": "integer", - "default": 0 - }, - "contact_sync_enabled": { - "type": "boolean", - "default": false - }, - "convert_emoticons": { - "type": "boolean", - "default": false - }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" - }, - { - "type": "null" - } - ], - "default": null - }, - "default_guilds_restricted": { - "type": "boolean", - "default": false - }, - "detect_platform_accounts": { - "type": "boolean", - "default": false - }, - "developer_mode": { - "type": "boolean", - "default": true - }, - "disable_games_tab": { - "type": "boolean", - "default": true - }, - "enable_tts_command": { - "type": "boolean", - "default": false - }, - "explicit_content_filter": { - "type": "integer", - "default": 0 - }, - "friend_discovery_flags": { - "type": "integer", - "default": 0 - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean", - "default": false - }, - "gif_auto_play": { - "type": "boolean", - "default": false - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - }, - "default": [] - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "inline_attachment_media": { - "type": "boolean", - "default": true - }, - "inline_embed_media": { - "type": "boolean", - "default": true - }, - "locale": { - "type": "string", - "default": "en-US" - }, - "message_display_compact": { - "type": "boolean", - "default": false - }, - "native_phone_integration_enabled": { - "type": "boolean", - "default": true - }, - "render_embeds": { - "type": "boolean", - "default": true - }, - "render_reactions": { - "type": "boolean", - "default": true - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "show_current_game": { - "type": "boolean", - "default": true - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "default": "online" - }, - "stream_notifications_enabled": { - "type": "boolean", - "default": false - }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string", - "default": "dark" - }, - "timezone_offset": { - "type": "integer", - "default": 0 - }, - "view_nsfw_guilds": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_discovery_flags", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "index", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset", - "view_nsfw_guilds" - ] - }, - "SecurityKey": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "key_id": { - "type": "string" - }, - "public_key": { - "type": "string" - }, - "counter": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "counter", - "id", - "key_id", - "name", - "public_key", - "user", - "user_id" - ] - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - }, - "Invite": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "temporary": { - "type": "boolean" - }, - "uses": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "max_age": { - "type": "integer" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "inviter_id": { - "type": "string" - }, - "inviter": { - "$ref": "#/definitions/User" - }, - "target_user_id": { - "type": "string" - }, - "target_user": { - "type": "string" - }, - "target_user_type": { - "type": "integer" - }, - "vanity_url": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "code", - "created_at", - "flags", - "guild", - "guild_id", - "inviter", - "max_age", - "max_uses", - "target_user_id", - "temporary", - "uses" - ] - }, - "Message": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "author_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/User" - }, - "member_id": { - "type": "string" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "webhook_id": { - "type": "string" - }, - "webhook": { - "$ref": "#/definitions/Webhook" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "type": "string", - "format": "date-time" - }, - "tts": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "mention_channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/definitions/Reaction" - } - }, - "nonce": { - "type": "string" - }, - "pinned": { - "type": "boolean" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "activity": { - "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "party_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "party_id", - "type" - ] - }, - "flags": { - "type": "integer" - }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type", - "user_id" - ] - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "embeds", - "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "reactions", - "timestamp", - "type" - ] - }, - "Member": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "nick": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "integer" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "pending": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserGuildSettings" - }, - "last_message_id": { - "type": "string" - }, - "joined_by": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "guild", - "guild_id", - "id", - "index", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "user" - ] - }, - "Role": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "color": { - "type": "integer" - }, - "hoist": { - "type": "boolean" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "icon": { - "type": "string" - }, - "unicode_emoji": { - "type": "string" - }, - "tags": { - "type": "object", - "properties": { - "bot_id": { - "type": "string" - }, - "integration_id": { - "type": "string" - }, - "premium_subscriber": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "flags": { - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "UserGuildSettings": { - "type": "object", - "properties": { - "channel_overrides": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - { - "type": "null" - } - ] - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "version": { - "type": "integer" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "type": "number", - "enum": [ - 0 - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_overrides", - "flags", - "guild_id", - "hide_muted_channels", - "message_notifications", - "mobile_push", - "mute_config", - "mute_scheduled_events", - "muted", - "notify_highlights", - "suppress_everyone", - "suppress_roles", - "version" - ] - }, - "Webhook": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/WebhookType" - }, - "name": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "token": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "source_channel_id": { - "type": "string" - }, - "source_channel": { - "$ref": "#/definitions/Channel" - }, - "url": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "application", - "application_id", - "avatar", - "channel", - "channel_id", - "id", - "name", - "source_channel", - "source_channel_id", - "type", - "url", - "user", - "user_id" - ] - }, - "WebhookType": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "Application": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "description": { - "type": "string" - }, - "summary": { - "type": "string", - "default": "" - }, - "type": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "hook": { - "type": "boolean", - "default": true - }, - "bot_public": { - "type": "boolean", - "default": true - }, - "bot_require_code_grant": { - "type": "boolean", - "default": false - }, - "verify_key": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "rpc_application_state": { - "type": "integer", - "default": 0 - }, - "store_application_state": { - "type": "integer", - "default": 1 - }, - "verification_state": { - "type": "integer", - "default": 1 - }, - "interactions_endpoint_url": { - "type": "string" - }, - "integration_public": { - "type": "boolean", - "default": true - }, - "integration_require_code_grant": { - "type": "boolean", - "default": false - }, - "discoverability_state": { - "type": "integer", - "default": 1 - }, - "discovery_eligibility_flags": { - "type": "integer", - "default": 2240 - }, - "bot": { - "$ref": "#/definitions/User" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "cover_image": { - "type": "string" - }, - "install_params": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "permissions", - "scopes" - ] - }, - "terms_of_service_url": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "discoverability_state", - "discovery_eligibility_flags", - "flags", - "hook", - "id", - "integration_public", - "integration_require_code_grant", - "name", - "owner", - "redirect_uris", - "rpc_application_state", - "store_application_state", - "summary", - "verification_state", - "verify_key" - ] - }, - "Team": { - "type": "object", - "properties": { - "icon": { - "type": "string" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/TeamMember" - } - }, - "name": { - "type": "string" - }, - "owner_user_id": { - "type": "string" - }, - "owner_user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "members", - "name", - "owner_user", - "owner_user_id" - ] - }, - "TeamMember": { - "type": "object", - "properties": { - "membership_state": { - "$ref": "#/definitions/TeamMemberState" - }, - "permissions": { - "type": "array", - "items": { - "type": "string" - } - }, - "team_id": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "membership_state", - "permissions", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "Sticker": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" - }, - "pack_id": { - "type": "string" - }, - "pack": { - "$ref": "#/definitions/StickerPack" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "type": { - "$ref": "#/definitions/StickerType" - }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "format_type", - "id", - "name", - "pack", - "type" - ] - }, - "StickerPack": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "cover_sticker_id": { - "type": "string" - }, - "cover_sticker": { - "$ref": "#/definitions/Sticker" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "stickers" - ] - }, - "StickerType": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "Attachment": { - "type": "object", - "properties": { - "filename": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - }, - "content_type": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "message": { - "$ref": "#/definitions/Message" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", - "url" - ] - }, - "Reaction": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "count", - "emoji", - "user_ids" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "Poll": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "expiry": { - "type": "string", - "format": "date-time" - }, - "allow_multiselect": { - "type": "boolean" - }, - "results": { - "$ref": "#/definitions/PollResult" - } - }, - "additionalProperties": false, - "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" - ] - }, - "PollResult": { - "type": "object", - "properties": { - "is_finalized": { - "type": "boolean" - }, - "answer_counts": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswerCount" - } - } - }, - "additionalProperties": false, - "required": [ - "answer_counts", - "is_finalized" - ] - }, - "PollAnswerCount": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "count": { - "type": "integer" - }, - "me_voted": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "id", - "me_voted" - ] - }, - "VoiceState": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "session_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_mute": { - "type": "boolean" - }, - "self_stream": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "suppress": { - "type": "boolean" - }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "deaf", - "guild_id", - "id", - "member", - "mute", - "self_deaf", - "self_mute", - "self_video", - "session_id", - "suppress", - "token", - "user", - "user_id" - ] - }, - "ReadState": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "last_message_id": { - "type": "string" - }, - "public_ack": { - "type": "string" - }, - "notifications_cursor": { - "type": "string" - }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "mention_count": { - "type": "integer" - }, - "manual": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "id", - "last_message_id", - "manual", - "mention_count", - "notifications_cursor", - "public_ack", - "user", - "user_id" - ] - }, - "Ban": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "executor_id": { - "type": "string" - }, - "executor": { - "$ref": "#/definitions/User" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor", - "executor_id", - "guild", - "guild_id", - "id", - "ip", - "user", - "user_id" - ] - }, - "Template": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "usage_count": { - "type": "integer" - }, - "creator_id": { - "type": "string" - }, - "creator": { - "$ref": "#/definitions/User" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "serialized_source_guild": { - "$ref": "#/definitions/Guild" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "created_at", - "creator", - "creator_id", - "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" - ] - }, - "Emoji": { - "type": "object", - "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "managed": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "require_colons": { - "type": "boolean" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" - ] - }, - "GuildWelcomeScreen": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "channel_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "description", - "enabled", - "welcome_channels" - ] - }, - "GuildMessagesSearchMessage": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "content": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/PublicUser" - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicUser" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, - "timestamp": { - "type": "string" - }, - "edited_timestamp": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "hit": { - "type": "boolean", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ] - }, - "GuildVanityUrl": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "uses": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "code", - "uses" - ] - }, - "GuildVanityUrlNoInvite": { - "type": "object", - "properties": { - "code": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "code" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "TenorGifResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" - ] - }, - "BackupCode": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "code": { - "type": "string" - }, - "consumed": { - "type": "boolean" - }, - "expired": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "consumed", - "expired", - "id", - "user" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "toJSON": { - "type": "object", - "additionalProperties": false - }, - "_do_validate": { - "type": "object", - "additionalProperties": false - }, - "assign": { - "type": "object", - "additionalProperties": false - }, - "hasId": { - "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", - "type": "object", - "additionalProperties": false - }, - "save": { - "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", - "type": "object", - "additionalProperties": false - }, - "remove": { - "description": "Removes current entity from the database.", - "type": "object", - "additionalProperties": false - }, - "softRemove": { - "description": "Records the delete date of current entity.", - "type": "object", - "additionalProperties": false - }, - "recover": { - "description": "Recovers a given entity in the database.", - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "banner": { - "type": "string" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "_do_validate", - "assign", - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "hasId", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "recover", - "reload", - "remove", - "roles", - "save", - "softRemove", - "stickers", - "toJSON", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "DmChannelDTO": { - "type": "object", - "properties": { - "icon": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": "string" - }, - "last_message_id": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "origin_channel_id": { - "type": [ - "null", - "string" - ] - }, - "owner_id": { - "type": "string" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/MinimalPublicUserDTO" - } - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "icon", - "id", - "last_message_id", - "name", - "origin_channel_id", - "recipients", - "type" - ] - }, - "MinimalPublicUserDTO": { - "type": "object", - "properties": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - }, - "badge_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - }, - "Categories": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "localizations": { - "type": "string" - }, - "is_primary": { - "type": "boolean" - }, - "icon": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "is_primary", - "localizations", - "name" - ] - }, - "GuildVoiceRegion": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "custom": { - "type": "boolean" - }, - "deprecated": { - "type": "boolean" - }, - "optimal": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom", - "deprecated", - "id", - "name", - "optimal" - ] - }, - "UserLimits": { - "type": "object", - "properties": { - "maxGuilds": { - "type": "integer", - "default": 1048576 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - }, - "maxBio": { - "type": "integer", - "default": 190 - } - }, - "additionalProperties": false, - "required": [ - "maxBio", - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "GuildLimits": { - "type": "object", - "properties": { - "maxRoles": { - "type": "integer", - "default": 1000 - }, - "maxEmojis": { - "type": "integer", - "default": 2000 - }, - "maxMembers": { - "type": "integer", - "default": 25000000 - }, - "maxChannels": { - "type": "integer", - "default": 65535 - }, - "maxBulkBanUsers": { - "type": "integer", - "default": 200 - }, - "maxChannelsInCategory": { - "type": "integer", - "default": 65535 - } - }, - "additionalProperties": false, - "required": [ - "maxBulkBanUsers", - "maxChannels", - "maxChannelsInCategory", - "maxEmojis", - "maxMembers", - "maxRoles" - ] - }, - "MessageLimits": { - "type": "object", - "properties": { - "maxCharacters": { - "type": "integer", - "default": 1048576 - }, - "maxTTSCharacters": { - "type": "integer", - "default": 160 - }, - "maxReactions": { - "type": "integer", - "default": 2048 - }, - "maxAttachmentSize": { - "type": "integer", - "default": 1073741824 - }, - "maxBulkDelete": { - "type": "integer", - "default": 1000 - }, - "maxEmbedDownloadSize": { - "type": "integer", - "default": 5242880 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "maxReactions", - "maxTTSCharacters" - ] - }, - "ChannelLimits": { - "type": "object", - "properties": { - "maxPins": { - "type": "integer", - "default": 500 - }, - "maxTopic": { - "type": "integer", - "default": 1024 - }, - "maxWebhooks": { - "type": "integer", - "default": 100 - } - }, - "additionalProperties": false, - "required": [ - "maxPins", - "maxTopic", - "maxWebhooks" - ] - }, - "RateLimits": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": false - }, - "ip": { - "$ref": "#/definitions/RateLimitOptions" - }, - "global": { - "$ref": "#/definitions/RateLimitOptions" - }, - "error": { - "$ref": "#/definitions/RateLimitOptions" - }, - "routes": { - "$ref": "#/definitions/RouteRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "error", - "global", - "ip", - "routes" - ] - }, - "RateLimitOptions": { - "type": "object", - "properties": { - "bot": { - "type": "integer" - }, - "count": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "onyIp": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "window" - ] - }, - "RouteRateLimit": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/definitions/RateLimitOptions" - }, - "webhook": { - "$ref": "#/definitions/RateLimitOptions" - }, - "channel": { - "$ref": "#/definitions/RateLimitOptions" - }, - "auth": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "GlobalRateLimits": { - "type": "object", - "properties": { - "register": { - "$ref": "#/definitions/GlobalRateLimit" - }, - "sendMessage": { - "$ref": "#/definitions/GlobalRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "register", - "sendMessage" - ] - }, - "GlobalRateLimit": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "default": 100 - }, - "window": { - "type": "integer", - "default": 3600000 - }, - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "limit", - "window" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type" - ] - }, - "UserProfile": { - "type": "object", - "properties": { - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "BanCreateSchema": { @@ -38508,4772 +181,6 @@ } }, "additionalProperties": false, - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "ConnectedAccountTokenData": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - }, - "expires_at": { - "type": "integer" - }, - "fetched_at": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "fetched_at" - ] - }, - "ChannelModifySchema": { - "type": "object", - "properties": { - "name": { - "maxLength": 100, - "type": "string" - }, - "type": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "topic": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - }, - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - } - }, - "parent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActivitySchema": { - "type": "object", - "properties": { - "afk": { - "type": "boolean" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "since": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "status" - ] - }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "Activity": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ActivityType" - }, - "url": { - "type": "string" - }, - "created_at": { - "type": "integer" - }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] - }, - "application_id": { - "type": "string" - }, - "details": { - "type": "string" - }, - "state": { - "type": "string" - }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] - }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false - }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false - }, - "instance": { - "type": "boolean" - }, - "flags": { - "type": "string" - }, - "id": { - "type": "string" - }, - "sync_id": { - "type": "string" - }, - "metadata": { - "type": "object", - "properties": { - "context_uri": { - "type": "string" - }, - "album_id": { - "type": "string" - }, - "artist_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] - }, - "session_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "flags", - "name", - "session_id", - "type" - ] - }, - "ActivityType": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "color": { - "type": "integer" - }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/definitions/EmbedImage" - }, - "thumbnail": { - "$ref": "#/definitions/EmbedImage" - }, - "video": { - "$ref": "#/definitions/EmbedImage" - }, - "provider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - }, - "additionalProperties": false - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActionRowComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.ActionRow" - }, - "components": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/definitions/ButtonComponent" - }, - { - "$ref": "#/definitions/SelectMenuComponent" - }, - { - "$ref": "#/definitions/StringSelectMenuComponent" - }, - { - "$ref": "#/definitions/TextInputComponent" - } - ] - } - } - }, - "additionalProperties": false, - "required": [ - "components", - "type" - ] - }, - "MessageComponentType.ActionRow": { - "type": "number", - "enum": [ - 1 - ] - }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.Button" - }, - "style": { - "$ref": "#/definitions/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "style", - "type" - ] - }, - "MessageComponentType.Button": { - "type": "number", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - "SelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "type" - ] - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "type" - ] - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.StringSelect" - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuOption" - } - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "options", - "type" - ] - }, - "MessageComponentType.StringSelect": { - "type": "number", - "enum": [ - 3 - ] - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "default": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "label", - "value" - ] - }, - "TextInputComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.TextInput" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/definitions/TextInputStyle" - }, - "label": { - "type": "string" - }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" - }, - "value": { - "type": "string" - }, - "placeholder": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "label", - "style", - "type" - ] - }, - "MessageComponentType.TextInput": { - "type": "number", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "PollCreationSchema": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "duration": { - "type": "integer" - }, - "allow_multiselect": { - "type": "boolean" - }, - "layout_type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "answers", - "question" - ] - }, - "PollMedia": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - } - }, - "additionalProperties": false - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" - }, - "poll_media": { - "$ref": "#/definitions/PollMedia" - } - }, - "additionalProperties": false, - "required": [ - "poll_media" - ] - }, - "ChannelOverride": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ] - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "all" - ] - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { - "type": "integer" - }, - "guild_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "integer" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "guild_ids", - "id", - "name" - ] - }, - "GenerateWebAuthnCredentialsSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "password" - ] - }, - "CreateWebAuthnCredentialSchema": { - "type": "object", - "properties": { - "credential": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ticket": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "credential", - "name", - "ticket" - ] - }, - "APIErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "code", - "errors", - "message" - ] - }, - "CaptchaRequiredResponse": { - "type": "object", - "properties": { - "captcha_key": { - "type": "string" - }, - "captcha_sitekey": { - "type": "string" - }, - "captcha_service": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "string" - }, - "afk_channel": { - "$ref": "#/definitions/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { - "type": "string" - }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "template_id": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/definitions/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "Channel": { - "type": "object", - "properties": { - "created_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "type": { - "$ref": "#/definitions/ChannelType" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/Recipient" - } - }, - "last_message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "parent_id": { - "type": [ - "null", - "string" - ] - }, - "parent": { - "$ref": "#/definitions/Channel" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "last_pin_timestamp": { - "type": "integer" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelPermissionOverwrite" - } - }, - "video_quality_mode": { - "type": "integer" - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "rate_limit_per_user": { - "type": "integer" - }, - "topic": { - "type": "string" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "retention_policy_id": { - "type": "string" - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "read_states": { - "type": "array", - "items": { - "$ref": "#/definitions/ReadState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "flags": { - "type": "integer", - "default": 0 - }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "created_at", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "Recipient": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "closed": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "closed", - "id", - "user", - "user_id" - ] - }, - "User": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "desktop": { - "type": "boolean", - "default": false - }, - "mobile": { - "type": "boolean", - "default": false - }, - "premium": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "bot": { - "type": "boolean", - "default": false - }, - "bio": { - "type": "string", - "default": "" - }, - "system": { - "type": "boolean", - "default": false - }, - "nsfw_allowed": { - "type": "boolean", - "default": true - }, - "mfa_enabled": { - "type": "boolean", - "default": false - }, - "webauthn_enabled": { - "type": "boolean", - "default": false - }, - "totp_secret": { - "type": "string", - "default": "" - }, - "totp_last_ticket": { - "type": "string", - "default": "" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "verified": { - "type": "boolean" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "deleted": { - "type": "boolean", - "default": false - }, - "email": { - "type": "string" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "public_flags": { - "type": "integer", - "default": 0 - }, - "purchased_flags": { - "type": "integer", - "default": 0 - }, - "premium_usage_flags": { - "type": "integer", - "default": 0 - }, - "rights": { - "type": "string" - }, - "sessions": { - "type": "array", - "items": { - "$ref": "#/definitions/Session" - } - }, - "relationships": { - "type": "array", - "items": { - "$ref": "#/definitions/Relationship" - } - }, - "connected_accounts": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectedAccount" - } - }, - "data": { - "type": "object", - "properties": { - "valid_tokens_since": { - "type": "string", - "format": "date-time" - }, - "hash": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "valid_tokens_since" - ] - }, - "fingerprints": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "settings": { - "$ref": "#/definitions/UserSettings" - }, - "extended_settings": { - "type": "string", - "default": "{}" - }, - "security_keys": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityKey" - } - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "extended_settings", - "fingerprints", - "flags", - "id", - "mfa_enabled", - "mobile", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "relationships", - "rights", - "security_keys", - "sessions", - "settings", - "system", - "username", - "verified", - "webauthn_enabled" - ] - }, - "Session": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "session_id": { - "type": "string" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "client_info": { - "type": "object", - "properties": { - "client": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "client", - "os", - "version" - ] - }, - "client_status": { - "$ref": "#/definitions/ClientStatus" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "activities", - "client_info", - "client_status", - "id", - "session_id", - "status", - "user", - "user_id" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "Relationship": { - "type": "object", - "properties": { - "from_id": { - "type": "string" - }, - "from": { - "$ref": "#/definitions/User" - }, - "to_id": { - "type": "string" - }, - "to": { - "$ref": "#/definitions/User" - }, - "nickname": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "from", - "from_id", - "id", - "to", - "to_id", - "type" - ] - }, - "RelationshipType": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "ConnectedAccount": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "friend_sync": { - "type": "boolean", - "default": false - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean", - "default": false - }, - "show_activity": { - "type": "integer", - "default": 0 - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean", - "default": true - }, - "visibility": { - "type": "integer", - "default": 0 - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer", - "default": 0 - }, - "two_way_link": { - "type": "boolean", - "default": false - }, - "token_data": { - "anyOf": [ - { - "$ref": "#/definitions/ConnectedAccountTokenData" - }, - { - "type": "null" - } - ] - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "external_id", - "id", - "name", - "type", - "user", - "user_id" - ] - }, - "UserSettings": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "afk_timeout": { - "type": "integer", - "default": 3600 - }, - "allow_accessibility_detection": { - "type": "boolean", - "default": true - }, - "animate_emoji": { - "type": "boolean", - "default": true - }, - "animate_stickers": { - "type": "integer", - "default": 0 - }, - "contact_sync_enabled": { - "type": "boolean", - "default": false - }, - "convert_emoticons": { - "type": "boolean", - "default": false - }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" - }, - { - "type": "null" - } - ], - "default": null - }, - "default_guilds_restricted": { - "type": "boolean", - "default": false - }, - "detect_platform_accounts": { - "type": "boolean", - "default": false - }, - "developer_mode": { - "type": "boolean", - "default": true - }, - "disable_games_tab": { - "type": "boolean", - "default": true - }, - "enable_tts_command": { - "type": "boolean", - "default": false - }, - "explicit_content_filter": { - "type": "integer", - "default": 0 - }, - "friend_discovery_flags": { - "type": "integer", - "default": 0 - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean", - "default": false - }, - "gif_auto_play": { - "type": "boolean", - "default": false - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - }, - "default": [] - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "inline_attachment_media": { - "type": "boolean", - "default": true - }, - "inline_embed_media": { - "type": "boolean", - "default": true - }, - "locale": { - "type": "string", - "default": "en-US" - }, - "message_display_compact": { - "type": "boolean", - "default": false - }, - "native_phone_integration_enabled": { - "type": "boolean", - "default": true - }, - "render_embeds": { - "type": "boolean", - "default": true - }, - "render_reactions": { - "type": "boolean", - "default": true - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "show_current_game": { - "type": "boolean", - "default": true - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "default": "online" - }, - "stream_notifications_enabled": { - "type": "boolean", - "default": false - }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string", - "default": "dark" - }, - "timezone_offset": { - "type": "integer", - "default": 0 - }, - "view_nsfw_guilds": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_discovery_flags", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "index", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset", - "view_nsfw_guilds" - ] - }, - "SecurityKey": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "key_id": { - "type": "string" - }, - "public_key": { - "type": "string" - }, - "counter": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "counter", - "id", - "key_id", - "name", - "public_key", - "user", - "user_id" - ] - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - }, - "Invite": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "temporary": { - "type": "boolean" - }, - "uses": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "max_age": { - "type": "integer" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "inviter_id": { - "type": "string" - }, - "inviter": { - "$ref": "#/definitions/User" - }, - "target_user_id": { - "type": "string" - }, - "target_user": { - "type": "string" - }, - "target_user_type": { - "type": "integer" - }, - "vanity_url": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "code", - "created_at", - "flags", - "guild", - "guild_id", - "inviter", - "max_age", - "max_uses", - "target_user_id", - "temporary", - "uses" - ] - }, - "Message": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "author_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/User" - }, - "member_id": { - "type": "string" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "webhook_id": { - "type": "string" - }, - "webhook": { - "$ref": "#/definitions/Webhook" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "type": "string", - "format": "date-time" - }, - "tts": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "mention_channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/definitions/Reaction" - } - }, - "nonce": { - "type": "string" - }, - "pinned": { - "type": "boolean" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "activity": { - "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "party_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "party_id", - "type" - ] - }, - "flags": { - "type": "integer" - }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type", - "user_id" - ] - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "embeds", - "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "reactions", - "timestamp", - "type" - ] - }, - "Member": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "nick": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "integer" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "pending": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserGuildSettings" - }, - "last_message_id": { - "type": "string" - }, - "joined_by": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "guild", - "guild_id", - "id", - "index", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "user" - ] - }, - "Role": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "color": { - "type": "integer" - }, - "hoist": { - "type": "boolean" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "icon": { - "type": "string" - }, - "unicode_emoji": { - "type": "string" - }, - "tags": { - "type": "object", - "properties": { - "bot_id": { - "type": "string" - }, - "integration_id": { - "type": "string" - }, - "premium_subscriber": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "flags": { - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "UserGuildSettings": { - "type": "object", - "properties": { - "channel_overrides": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - { - "type": "null" - } - ] - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "version": { - "type": "integer" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "type": "number", - "enum": [ - 0 - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_overrides", - "flags", - "guild_id", - "hide_muted_channels", - "message_notifications", - "mobile_push", - "mute_config", - "mute_scheduled_events", - "muted", - "notify_highlights", - "suppress_everyone", - "suppress_roles", - "version" - ] - }, - "Webhook": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/WebhookType" - }, - "name": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "token": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "source_channel_id": { - "type": "string" - }, - "source_channel": { - "$ref": "#/definitions/Channel" - }, - "url": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "application", - "application_id", - "avatar", - "channel", - "channel_id", - "id", - "name", - "source_channel", - "source_channel_id", - "type", - "url", - "user", - "user_id" - ] - }, - "WebhookType": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "Application": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "description": { - "type": "string" - }, - "summary": { - "type": "string", - "default": "" - }, - "type": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "hook": { - "type": "boolean", - "default": true - }, - "bot_public": { - "type": "boolean", - "default": true - }, - "bot_require_code_grant": { - "type": "boolean", - "default": false - }, - "verify_key": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "rpc_application_state": { - "type": "integer", - "default": 0 - }, - "store_application_state": { - "type": "integer", - "default": 1 - }, - "verification_state": { - "type": "integer", - "default": 1 - }, - "interactions_endpoint_url": { - "type": "string" - }, - "integration_public": { - "type": "boolean", - "default": true - }, - "integration_require_code_grant": { - "type": "boolean", - "default": false - }, - "discoverability_state": { - "type": "integer", - "default": 1 - }, - "discovery_eligibility_flags": { - "type": "integer", - "default": 2240 - }, - "bot": { - "$ref": "#/definitions/User" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "cover_image": { - "type": "string" - }, - "install_params": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "permissions", - "scopes" - ] - }, - "terms_of_service_url": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "discoverability_state", - "discovery_eligibility_flags", - "flags", - "hook", - "id", - "integration_public", - "integration_require_code_grant", - "name", - "owner", - "redirect_uris", - "rpc_application_state", - "store_application_state", - "summary", - "verification_state", - "verify_key" - ] - }, - "Team": { - "type": "object", - "properties": { - "icon": { - "type": "string" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/TeamMember" - } - }, - "name": { - "type": "string" - }, - "owner_user_id": { - "type": "string" - }, - "owner_user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "members", - "name", - "owner_user", - "owner_user_id" - ] - }, - "TeamMember": { - "type": "object", - "properties": { - "membership_state": { - "$ref": "#/definitions/TeamMemberState" - }, - "permissions": { - "type": "array", - "items": { - "type": "string" - } - }, - "team_id": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "membership_state", - "permissions", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "Sticker": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" - }, - "pack_id": { - "type": "string" - }, - "pack": { - "$ref": "#/definitions/StickerPack" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "type": { - "$ref": "#/definitions/StickerType" - }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "format_type", - "id", - "name", - "pack", - "type" - ] - }, - "StickerPack": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "cover_sticker_id": { - "type": "string" - }, - "cover_sticker": { - "$ref": "#/definitions/Sticker" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "stickers" - ] - }, - "StickerType": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "Attachment": { - "type": "object", - "properties": { - "filename": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - }, - "content_type": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "message": { - "$ref": "#/definitions/Message" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", - "url" - ] - }, - "Reaction": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "count", - "emoji", - "user_ids" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "Poll": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "expiry": { - "type": "string", - "format": "date-time" - }, - "allow_multiselect": { - "type": "boolean" - }, - "results": { - "$ref": "#/definitions/PollResult" - } - }, - "additionalProperties": false, - "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" - ] - }, - "PollResult": { - "type": "object", - "properties": { - "is_finalized": { - "type": "boolean" - }, - "answer_counts": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswerCount" - } - } - }, - "additionalProperties": false, - "required": [ - "answer_counts", - "is_finalized" - ] - }, - "PollAnswerCount": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "count": { - "type": "integer" - }, - "me_voted": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "id", - "me_voted" - ] - }, - "VoiceState": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "session_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_mute": { - "type": "boolean" - }, - "self_stream": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "suppress": { - "type": "boolean" - }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "deaf", - "guild_id", - "id", - "member", - "mute", - "self_deaf", - "self_mute", - "self_video", - "session_id", - "suppress", - "token", - "user", - "user_id" - ] - }, - "ReadState": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "last_message_id": { - "type": "string" - }, - "public_ack": { - "type": "string" - }, - "notifications_cursor": { - "type": "string" - }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "mention_count": { - "type": "integer" - }, - "manual": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "id", - "last_message_id", - "manual", - "mention_count", - "notifications_cursor", - "public_ack", - "user", - "user_id" - ] - }, - "Ban": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "executor_id": { - "type": "string" - }, - "executor": { - "$ref": "#/definitions/User" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor", - "executor_id", - "guild", - "guild_id", - "id", - "ip", - "user", - "user_id" - ] - }, - "Template": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "usage_count": { - "type": "integer" - }, - "creator_id": { - "type": "string" - }, - "creator": { - "$ref": "#/definitions/User" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "serialized_source_guild": { - "$ref": "#/definitions/Guild" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "created_at", - "creator", - "creator_id", - "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" - ] - }, - "Emoji": { - "type": "object", - "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "managed": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "require_colons": { - "type": "boolean" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" - ] - }, - "GuildWelcomeScreen": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "channel_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "description", - "enabled", - "welcome_channels" - ] - }, - "GuildMessagesSearchMessage": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "content": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/PublicUser" - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicUser" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, - "timestamp": { - "type": "string" - }, - "edited_timestamp": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "hit": { - "type": "boolean", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ] - }, - "GuildVanityUrl": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "uses": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "code", - "uses" - ] - }, - "GuildVanityUrlNoInvite": { - "type": "object", - "properties": { - "code": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "code" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "TenorGifResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" - ] - }, - "BackupCode": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "code": { - "type": "string" - }, - "consumed": { - "type": "boolean" - }, - "expired": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "consumed", - "expired", - "id", - "user" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "toJSON": { - "type": "object", - "additionalProperties": false - }, - "_do_validate": { - "type": "object", - "additionalProperties": false - }, - "assign": { - "type": "object", - "additionalProperties": false - }, - "hasId": { - "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", - "type": "object", - "additionalProperties": false - }, - "save": { - "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", - "type": "object", - "additionalProperties": false - }, - "remove": { - "description": "Removes current entity from the database.", - "type": "object", - "additionalProperties": false - }, - "softRemove": { - "description": "Records the delete date of current entity.", - "type": "object", - "additionalProperties": false - }, - "recover": { - "description": "Recovers a given entity in the database.", - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "banner": { - "type": "string" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "_do_validate", - "assign", - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "hasId", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "recover", - "reload", - "remove", - "roles", - "save", - "softRemove", - "stickers", - "toJSON", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "DmChannelDTO": { - "type": "object", - "properties": { - "icon": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": "string" - }, - "last_message_id": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "origin_channel_id": { - "type": [ - "null", - "string" - ] - }, - "owner_id": { - "type": "string" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/MinimalPublicUserDTO" - } - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "icon", - "id", - "last_message_id", - "name", - "origin_channel_id", - "recipients", - "type" - ] - }, - "MinimalPublicUserDTO": { - "type": "object", - "properties": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - }, - "badge_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - }, - "Categories": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "localizations": { - "type": "string" - }, - "is_primary": { - "type": "boolean" - }, - "icon": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "is_primary", - "localizations", - "name" - ] - }, - "GuildVoiceRegion": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "custom": { - "type": "boolean" - }, - "deprecated": { - "type": "boolean" - }, - "optimal": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom", - "deprecated", - "id", - "name", - "optimal" - ] - }, - "UserLimits": { - "type": "object", - "properties": { - "maxGuilds": { - "type": "integer", - "default": 1048576 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - }, - "maxBio": { - "type": "integer", - "default": 190 - } - }, - "additionalProperties": false, - "required": [ - "maxBio", - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "GuildLimits": { - "type": "object", - "properties": { - "maxRoles": { - "type": "integer", - "default": 1000 - }, - "maxEmojis": { - "type": "integer", - "default": 2000 - }, - "maxMembers": { - "type": "integer", - "default": 25000000 - }, - "maxChannels": { - "type": "integer", - "default": 65535 - }, - "maxBulkBanUsers": { - "type": "integer", - "default": 200 - }, - "maxChannelsInCategory": { - "type": "integer", - "default": 65535 - } - }, - "additionalProperties": false, - "required": [ - "maxBulkBanUsers", - "maxChannels", - "maxChannelsInCategory", - "maxEmojis", - "maxMembers", - "maxRoles" - ] - }, - "MessageLimits": { - "type": "object", - "properties": { - "maxCharacters": { - "type": "integer", - "default": 1048576 - }, - "maxTTSCharacters": { - "type": "integer", - "default": 160 - }, - "maxReactions": { - "type": "integer", - "default": 2048 - }, - "maxAttachmentSize": { - "type": "integer", - "default": 1073741824 - }, - "maxBulkDelete": { - "type": "integer", - "default": 1000 - }, - "maxEmbedDownloadSize": { - "type": "integer", - "default": 5242880 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "maxReactions", - "maxTTSCharacters" - ] - }, - "ChannelLimits": { - "type": "object", - "properties": { - "maxPins": { - "type": "integer", - "default": 500 - }, - "maxTopic": { - "type": "integer", - "default": 1024 - }, - "maxWebhooks": { - "type": "integer", - "default": 100 - } - }, - "additionalProperties": false, - "required": [ - "maxPins", - "maxTopic", - "maxWebhooks" - ] - }, - "RateLimits": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": false - }, - "ip": { - "$ref": "#/definitions/RateLimitOptions" - }, - "global": { - "$ref": "#/definitions/RateLimitOptions" - }, - "error": { - "$ref": "#/definitions/RateLimitOptions" - }, - "routes": { - "$ref": "#/definitions/RouteRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "error", - "global", - "ip", - "routes" - ] - }, - "RateLimitOptions": { - "type": "object", - "properties": { - "bot": { - "type": "integer" - }, - "count": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "onyIp": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "window" - ] - }, - "RouteRateLimit": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/definitions/RateLimitOptions" - }, - "webhook": { - "$ref": "#/definitions/RateLimitOptions" - }, - "channel": { - "$ref": "#/definitions/RateLimitOptions" - }, - "auth": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "GlobalRateLimits": { - "type": "object", - "properties": { - "register": { - "$ref": "#/definitions/GlobalRateLimit" - }, - "sendMessage": { - "$ref": "#/definitions/GlobalRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "register", - "sendMessage" - ] - }, - "GlobalRateLimit": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "default": 100 - }, - "window": { - "type": "integer", - "default": 3600000 - }, - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "limit", - "window" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type" - ] - }, - "UserProfile": { - "type": "object", - "properties": { - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "BanModeratorSchema": { @@ -43302,4772 +209,6 @@ "id", "user_id" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "ConnectedAccountTokenData": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - }, - "expires_at": { - "type": "integer" - }, - "fetched_at": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "fetched_at" - ] - }, - "ChannelModifySchema": { - "type": "object", - "properties": { - "name": { - "maxLength": 100, - "type": "string" - }, - "type": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "topic": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - }, - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - } - }, - "parent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActivitySchema": { - "type": "object", - "properties": { - "afk": { - "type": "boolean" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "since": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "status" - ] - }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "Activity": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ActivityType" - }, - "url": { - "type": "string" - }, - "created_at": { - "type": "integer" - }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] - }, - "application_id": { - "type": "string" - }, - "details": { - "type": "string" - }, - "state": { - "type": "string" - }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] - }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false - }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false - }, - "instance": { - "type": "boolean" - }, - "flags": { - "type": "string" - }, - "id": { - "type": "string" - }, - "sync_id": { - "type": "string" - }, - "metadata": { - "type": "object", - "properties": { - "context_uri": { - "type": "string" - }, - "album_id": { - "type": "string" - }, - "artist_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] - }, - "session_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "flags", - "name", - "session_id", - "type" - ] - }, - "ActivityType": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "color": { - "type": "integer" - }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/definitions/EmbedImage" - }, - "thumbnail": { - "$ref": "#/definitions/EmbedImage" - }, - "video": { - "$ref": "#/definitions/EmbedImage" - }, - "provider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - }, - "additionalProperties": false - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActionRowComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.ActionRow" - }, - "components": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/definitions/ButtonComponent" - }, - { - "$ref": "#/definitions/SelectMenuComponent" - }, - { - "$ref": "#/definitions/StringSelectMenuComponent" - }, - { - "$ref": "#/definitions/TextInputComponent" - } - ] - } - } - }, - "additionalProperties": false, - "required": [ - "components", - "type" - ] - }, - "MessageComponentType.ActionRow": { - "type": "number", - "enum": [ - 1 - ] - }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.Button" - }, - "style": { - "$ref": "#/definitions/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "style", - "type" - ] - }, - "MessageComponentType.Button": { - "type": "number", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - "SelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "type" - ] - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "type" - ] - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.StringSelect" - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuOption" - } - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "options", - "type" - ] - }, - "MessageComponentType.StringSelect": { - "type": "number", - "enum": [ - 3 - ] - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "default": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "label", - "value" - ] - }, - "TextInputComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.TextInput" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/definitions/TextInputStyle" - }, - "label": { - "type": "string" - }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" - }, - "value": { - "type": "string" - }, - "placeholder": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "label", - "style", - "type" - ] - }, - "MessageComponentType.TextInput": { - "type": "number", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "PollCreationSchema": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "duration": { - "type": "integer" - }, - "allow_multiselect": { - "type": "boolean" - }, - "layout_type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "answers", - "question" - ] - }, - "PollMedia": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - } - }, - "additionalProperties": false - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" - }, - "poll_media": { - "$ref": "#/definitions/PollMedia" - } - }, - "additionalProperties": false, - "required": [ - "poll_media" - ] - }, - "ChannelOverride": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ] - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "all" - ] - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { - "type": "integer" - }, - "guild_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "integer" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "guild_ids", - "id", - "name" - ] - }, - "GenerateWebAuthnCredentialsSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "password" - ] - }, - "CreateWebAuthnCredentialSchema": { - "type": "object", - "properties": { - "credential": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ticket": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "credential", - "name", - "ticket" - ] - }, - "APIErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "code", - "errors", - "message" - ] - }, - "CaptchaRequiredResponse": { - "type": "object", - "properties": { - "captcha_key": { - "type": "string" - }, - "captcha_sitekey": { - "type": "string" - }, - "captcha_service": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "string" - }, - "afk_channel": { - "$ref": "#/definitions/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { - "type": "string" - }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "template_id": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/definitions/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "Channel": { - "type": "object", - "properties": { - "created_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "type": { - "$ref": "#/definitions/ChannelType" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/Recipient" - } - }, - "last_message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "parent_id": { - "type": [ - "null", - "string" - ] - }, - "parent": { - "$ref": "#/definitions/Channel" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "last_pin_timestamp": { - "type": "integer" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelPermissionOverwrite" - } - }, - "video_quality_mode": { - "type": "integer" - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "rate_limit_per_user": { - "type": "integer" - }, - "topic": { - "type": "string" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "retention_policy_id": { - "type": "string" - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "read_states": { - "type": "array", - "items": { - "$ref": "#/definitions/ReadState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "flags": { - "type": "integer", - "default": 0 - }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "created_at", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "Recipient": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "closed": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "closed", - "id", - "user", - "user_id" - ] - }, - "User": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "desktop": { - "type": "boolean", - "default": false - }, - "mobile": { - "type": "boolean", - "default": false - }, - "premium": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "bot": { - "type": "boolean", - "default": false - }, - "bio": { - "type": "string", - "default": "" - }, - "system": { - "type": "boolean", - "default": false - }, - "nsfw_allowed": { - "type": "boolean", - "default": true - }, - "mfa_enabled": { - "type": "boolean", - "default": false - }, - "webauthn_enabled": { - "type": "boolean", - "default": false - }, - "totp_secret": { - "type": "string", - "default": "" - }, - "totp_last_ticket": { - "type": "string", - "default": "" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "verified": { - "type": "boolean" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "deleted": { - "type": "boolean", - "default": false - }, - "email": { - "type": "string" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "public_flags": { - "type": "integer", - "default": 0 - }, - "purchased_flags": { - "type": "integer", - "default": 0 - }, - "premium_usage_flags": { - "type": "integer", - "default": 0 - }, - "rights": { - "type": "string" - }, - "sessions": { - "type": "array", - "items": { - "$ref": "#/definitions/Session" - } - }, - "relationships": { - "type": "array", - "items": { - "$ref": "#/definitions/Relationship" - } - }, - "connected_accounts": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectedAccount" - } - }, - "data": { - "type": "object", - "properties": { - "valid_tokens_since": { - "type": "string", - "format": "date-time" - }, - "hash": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "valid_tokens_since" - ] - }, - "fingerprints": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "settings": { - "$ref": "#/definitions/UserSettings" - }, - "extended_settings": { - "type": "string", - "default": "{}" - }, - "security_keys": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityKey" - } - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "extended_settings", - "fingerprints", - "flags", - "id", - "mfa_enabled", - "mobile", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "relationships", - "rights", - "security_keys", - "sessions", - "settings", - "system", - "username", - "verified", - "webauthn_enabled" - ] - }, - "Session": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "session_id": { - "type": "string" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "client_info": { - "type": "object", - "properties": { - "client": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "client", - "os", - "version" - ] - }, - "client_status": { - "$ref": "#/definitions/ClientStatus" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "activities", - "client_info", - "client_status", - "id", - "session_id", - "status", - "user", - "user_id" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "Relationship": { - "type": "object", - "properties": { - "from_id": { - "type": "string" - }, - "from": { - "$ref": "#/definitions/User" - }, - "to_id": { - "type": "string" - }, - "to": { - "$ref": "#/definitions/User" - }, - "nickname": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "from", - "from_id", - "id", - "to", - "to_id", - "type" - ] - }, - "RelationshipType": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "ConnectedAccount": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "friend_sync": { - "type": "boolean", - "default": false - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean", - "default": false - }, - "show_activity": { - "type": "integer", - "default": 0 - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean", - "default": true - }, - "visibility": { - "type": "integer", - "default": 0 - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer", - "default": 0 - }, - "two_way_link": { - "type": "boolean", - "default": false - }, - "token_data": { - "anyOf": [ - { - "$ref": "#/definitions/ConnectedAccountTokenData" - }, - { - "type": "null" - } - ] - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "external_id", - "id", - "name", - "type", - "user", - "user_id" - ] - }, - "UserSettings": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "afk_timeout": { - "type": "integer", - "default": 3600 - }, - "allow_accessibility_detection": { - "type": "boolean", - "default": true - }, - "animate_emoji": { - "type": "boolean", - "default": true - }, - "animate_stickers": { - "type": "integer", - "default": 0 - }, - "contact_sync_enabled": { - "type": "boolean", - "default": false - }, - "convert_emoticons": { - "type": "boolean", - "default": false - }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" - }, - { - "type": "null" - } - ], - "default": null - }, - "default_guilds_restricted": { - "type": "boolean", - "default": false - }, - "detect_platform_accounts": { - "type": "boolean", - "default": false - }, - "developer_mode": { - "type": "boolean", - "default": true - }, - "disable_games_tab": { - "type": "boolean", - "default": true - }, - "enable_tts_command": { - "type": "boolean", - "default": false - }, - "explicit_content_filter": { - "type": "integer", - "default": 0 - }, - "friend_discovery_flags": { - "type": "integer", - "default": 0 - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean", - "default": false - }, - "gif_auto_play": { - "type": "boolean", - "default": false - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - }, - "default": [] - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "inline_attachment_media": { - "type": "boolean", - "default": true - }, - "inline_embed_media": { - "type": "boolean", - "default": true - }, - "locale": { - "type": "string", - "default": "en-US" - }, - "message_display_compact": { - "type": "boolean", - "default": false - }, - "native_phone_integration_enabled": { - "type": "boolean", - "default": true - }, - "render_embeds": { - "type": "boolean", - "default": true - }, - "render_reactions": { - "type": "boolean", - "default": true - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "show_current_game": { - "type": "boolean", - "default": true - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "default": "online" - }, - "stream_notifications_enabled": { - "type": "boolean", - "default": false - }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string", - "default": "dark" - }, - "timezone_offset": { - "type": "integer", - "default": 0 - }, - "view_nsfw_guilds": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_discovery_flags", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "index", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset", - "view_nsfw_guilds" - ] - }, - "SecurityKey": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "key_id": { - "type": "string" - }, - "public_key": { - "type": "string" - }, - "counter": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "counter", - "id", - "key_id", - "name", - "public_key", - "user", - "user_id" - ] - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - }, - "Invite": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "temporary": { - "type": "boolean" - }, - "uses": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "max_age": { - "type": "integer" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "inviter_id": { - "type": "string" - }, - "inviter": { - "$ref": "#/definitions/User" - }, - "target_user_id": { - "type": "string" - }, - "target_user": { - "type": "string" - }, - "target_user_type": { - "type": "integer" - }, - "vanity_url": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "code", - "created_at", - "flags", - "guild", - "guild_id", - "inviter", - "max_age", - "max_uses", - "target_user_id", - "temporary", - "uses" - ] - }, - "Message": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "author_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/User" - }, - "member_id": { - "type": "string" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "webhook_id": { - "type": "string" - }, - "webhook": { - "$ref": "#/definitions/Webhook" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "type": "string", - "format": "date-time" - }, - "tts": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "mention_channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/definitions/Reaction" - } - }, - "nonce": { - "type": "string" - }, - "pinned": { - "type": "boolean" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "activity": { - "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "party_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "party_id", - "type" - ] - }, - "flags": { - "type": "integer" - }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type", - "user_id" - ] - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "embeds", - "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "reactions", - "timestamp", - "type" - ] - }, - "Member": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "nick": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "integer" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "pending": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserGuildSettings" - }, - "last_message_id": { - "type": "string" - }, - "joined_by": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "guild", - "guild_id", - "id", - "index", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "user" - ] - }, - "Role": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "color": { - "type": "integer" - }, - "hoist": { - "type": "boolean" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "icon": { - "type": "string" - }, - "unicode_emoji": { - "type": "string" - }, - "tags": { - "type": "object", - "properties": { - "bot_id": { - "type": "string" - }, - "integration_id": { - "type": "string" - }, - "premium_subscriber": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "flags": { - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "UserGuildSettings": { - "type": "object", - "properties": { - "channel_overrides": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - { - "type": "null" - } - ] - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "version": { - "type": "integer" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "type": "number", - "enum": [ - 0 - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_overrides", - "flags", - "guild_id", - "hide_muted_channels", - "message_notifications", - "mobile_push", - "mute_config", - "mute_scheduled_events", - "muted", - "notify_highlights", - "suppress_everyone", - "suppress_roles", - "version" - ] - }, - "Webhook": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/WebhookType" - }, - "name": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "token": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "source_channel_id": { - "type": "string" - }, - "source_channel": { - "$ref": "#/definitions/Channel" - }, - "url": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "application", - "application_id", - "avatar", - "channel", - "channel_id", - "id", - "name", - "source_channel", - "source_channel_id", - "type", - "url", - "user", - "user_id" - ] - }, - "WebhookType": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "Application": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "description": { - "type": "string" - }, - "summary": { - "type": "string", - "default": "" - }, - "type": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "hook": { - "type": "boolean", - "default": true - }, - "bot_public": { - "type": "boolean", - "default": true - }, - "bot_require_code_grant": { - "type": "boolean", - "default": false - }, - "verify_key": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "rpc_application_state": { - "type": "integer", - "default": 0 - }, - "store_application_state": { - "type": "integer", - "default": 1 - }, - "verification_state": { - "type": "integer", - "default": 1 - }, - "interactions_endpoint_url": { - "type": "string" - }, - "integration_public": { - "type": "boolean", - "default": true - }, - "integration_require_code_grant": { - "type": "boolean", - "default": false - }, - "discoverability_state": { - "type": "integer", - "default": 1 - }, - "discovery_eligibility_flags": { - "type": "integer", - "default": 2240 - }, - "bot": { - "$ref": "#/definitions/User" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "cover_image": { - "type": "string" - }, - "install_params": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "permissions", - "scopes" - ] - }, - "terms_of_service_url": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "discoverability_state", - "discovery_eligibility_flags", - "flags", - "hook", - "id", - "integration_public", - "integration_require_code_grant", - "name", - "owner", - "redirect_uris", - "rpc_application_state", - "store_application_state", - "summary", - "verification_state", - "verify_key" - ] - }, - "Team": { - "type": "object", - "properties": { - "icon": { - "type": "string" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/TeamMember" - } - }, - "name": { - "type": "string" - }, - "owner_user_id": { - "type": "string" - }, - "owner_user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "members", - "name", - "owner_user", - "owner_user_id" - ] - }, - "TeamMember": { - "type": "object", - "properties": { - "membership_state": { - "$ref": "#/definitions/TeamMemberState" - }, - "permissions": { - "type": "array", - "items": { - "type": "string" - } - }, - "team_id": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "membership_state", - "permissions", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "Sticker": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" - }, - "pack_id": { - "type": "string" - }, - "pack": { - "$ref": "#/definitions/StickerPack" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "type": { - "$ref": "#/definitions/StickerType" - }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "format_type", - "id", - "name", - "pack", - "type" - ] - }, - "StickerPack": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "cover_sticker_id": { - "type": "string" - }, - "cover_sticker": { - "$ref": "#/definitions/Sticker" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "stickers" - ] - }, - "StickerType": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "Attachment": { - "type": "object", - "properties": { - "filename": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - }, - "content_type": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "message": { - "$ref": "#/definitions/Message" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", - "url" - ] - }, - "Reaction": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "count", - "emoji", - "user_ids" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "Poll": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "expiry": { - "type": "string", - "format": "date-time" - }, - "allow_multiselect": { - "type": "boolean" - }, - "results": { - "$ref": "#/definitions/PollResult" - } - }, - "additionalProperties": false, - "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" - ] - }, - "PollResult": { - "type": "object", - "properties": { - "is_finalized": { - "type": "boolean" - }, - "answer_counts": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswerCount" - } - } - }, - "additionalProperties": false, - "required": [ - "answer_counts", - "is_finalized" - ] - }, - "PollAnswerCount": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "count": { - "type": "integer" - }, - "me_voted": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "id", - "me_voted" - ] - }, - "VoiceState": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "session_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_mute": { - "type": "boolean" - }, - "self_stream": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "suppress": { - "type": "boolean" - }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "deaf", - "guild_id", - "id", - "member", - "mute", - "self_deaf", - "self_mute", - "self_video", - "session_id", - "suppress", - "token", - "user", - "user_id" - ] - }, - "ReadState": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "last_message_id": { - "type": "string" - }, - "public_ack": { - "type": "string" - }, - "notifications_cursor": { - "type": "string" - }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "mention_count": { - "type": "integer" - }, - "manual": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "id", - "last_message_id", - "manual", - "mention_count", - "notifications_cursor", - "public_ack", - "user", - "user_id" - ] - }, - "Ban": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "executor_id": { - "type": "string" - }, - "executor": { - "$ref": "#/definitions/User" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor", - "executor_id", - "guild", - "guild_id", - "id", - "ip", - "user", - "user_id" - ] - }, - "Template": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "usage_count": { - "type": "integer" - }, - "creator_id": { - "type": "string" - }, - "creator": { - "$ref": "#/definitions/User" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "serialized_source_guild": { - "$ref": "#/definitions/Guild" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "created_at", - "creator", - "creator_id", - "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" - ] - }, - "Emoji": { - "type": "object", - "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "managed": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "require_colons": { - "type": "boolean" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" - ] - }, - "GuildWelcomeScreen": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "channel_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "description", - "enabled", - "welcome_channels" - ] - }, - "GuildMessagesSearchMessage": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "content": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/PublicUser" - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicUser" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, - "timestamp": { - "type": "string" - }, - "edited_timestamp": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "hit": { - "type": "boolean", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ] - }, - "GuildVanityUrl": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "uses": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "code", - "uses" - ] - }, - "GuildVanityUrlNoInvite": { - "type": "object", - "properties": { - "code": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "code" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "TenorGifResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" - ] - }, - "BackupCode": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "code": { - "type": "string" - }, - "consumed": { - "type": "boolean" - }, - "expired": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "consumed", - "expired", - "id", - "user" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "toJSON": { - "type": "object", - "additionalProperties": false - }, - "_do_validate": { - "type": "object", - "additionalProperties": false - }, - "assign": { - "type": "object", - "additionalProperties": false - }, - "hasId": { - "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", - "type": "object", - "additionalProperties": false - }, - "save": { - "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", - "type": "object", - "additionalProperties": false - }, - "remove": { - "description": "Removes current entity from the database.", - "type": "object", - "additionalProperties": false - }, - "softRemove": { - "description": "Records the delete date of current entity.", - "type": "object", - "additionalProperties": false - }, - "recover": { - "description": "Recovers a given entity in the database.", - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "banner": { - "type": "string" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "_do_validate", - "assign", - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "hasId", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "recover", - "reload", - "remove", - "roles", - "save", - "softRemove", - "stickers", - "toJSON", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "DmChannelDTO": { - "type": "object", - "properties": { - "icon": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": "string" - }, - "last_message_id": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "origin_channel_id": { - "type": [ - "null", - "string" - ] - }, - "owner_id": { - "type": "string" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/MinimalPublicUserDTO" - } - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "icon", - "id", - "last_message_id", - "name", - "origin_channel_id", - "recipients", - "type" - ] - }, - "MinimalPublicUserDTO": { - "type": "object", - "properties": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - }, - "badge_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - }, - "Categories": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "localizations": { - "type": "string" - }, - "is_primary": { - "type": "boolean" - }, - "icon": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "is_primary", - "localizations", - "name" - ] - }, - "GuildVoiceRegion": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "custom": { - "type": "boolean" - }, - "deprecated": { - "type": "boolean" - }, - "optimal": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom", - "deprecated", - "id", - "name", - "optimal" - ] - }, - "UserLimits": { - "type": "object", - "properties": { - "maxGuilds": { - "type": "integer", - "default": 1048576 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - }, - "maxBio": { - "type": "integer", - "default": 190 - } - }, - "additionalProperties": false, - "required": [ - "maxBio", - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "GuildLimits": { - "type": "object", - "properties": { - "maxRoles": { - "type": "integer", - "default": 1000 - }, - "maxEmojis": { - "type": "integer", - "default": 2000 - }, - "maxMembers": { - "type": "integer", - "default": 25000000 - }, - "maxChannels": { - "type": "integer", - "default": 65535 - }, - "maxBulkBanUsers": { - "type": "integer", - "default": 200 - }, - "maxChannelsInCategory": { - "type": "integer", - "default": 65535 - } - }, - "additionalProperties": false, - "required": [ - "maxBulkBanUsers", - "maxChannels", - "maxChannelsInCategory", - "maxEmojis", - "maxMembers", - "maxRoles" - ] - }, - "MessageLimits": { - "type": "object", - "properties": { - "maxCharacters": { - "type": "integer", - "default": 1048576 - }, - "maxTTSCharacters": { - "type": "integer", - "default": 160 - }, - "maxReactions": { - "type": "integer", - "default": 2048 - }, - "maxAttachmentSize": { - "type": "integer", - "default": 1073741824 - }, - "maxBulkDelete": { - "type": "integer", - "default": 1000 - }, - "maxEmbedDownloadSize": { - "type": "integer", - "default": 5242880 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "maxReactions", - "maxTTSCharacters" - ] - }, - "ChannelLimits": { - "type": "object", - "properties": { - "maxPins": { - "type": "integer", - "default": 500 - }, - "maxTopic": { - "type": "integer", - "default": 1024 - }, - "maxWebhooks": { - "type": "integer", - "default": 100 - } - }, - "additionalProperties": false, - "required": [ - "maxPins", - "maxTopic", - "maxWebhooks" - ] - }, - "RateLimits": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": false - }, - "ip": { - "$ref": "#/definitions/RateLimitOptions" - }, - "global": { - "$ref": "#/definitions/RateLimitOptions" - }, - "error": { - "$ref": "#/definitions/RateLimitOptions" - }, - "routes": { - "$ref": "#/definitions/RouteRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "error", - "global", - "ip", - "routes" - ] - }, - "RateLimitOptions": { - "type": "object", - "properties": { - "bot": { - "type": "integer" - }, - "count": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "onyIp": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "window" - ] - }, - "RouteRateLimit": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/definitions/RateLimitOptions" - }, - "webhook": { - "$ref": "#/definitions/RateLimitOptions" - }, - "channel": { - "$ref": "#/definitions/RateLimitOptions" - }, - "auth": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "GlobalRateLimits": { - "type": "object", - "properties": { - "register": { - "$ref": "#/definitions/GlobalRateLimit" - }, - "sendMessage": { - "$ref": "#/definitions/GlobalRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "register", - "sendMessage" - ] - }, - "GlobalRateLimit": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "default": 100 - }, - "window": { - "type": "integer", - "default": 3600000 - }, - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "limit", - "window" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type" - ] - }, - "UserProfile": { - "type": "object", - "properties": { - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "BanRegistrySchema": { @@ -48099,4772 +240,6 @@ "id", "user_id" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "ConnectedAccountTokenData": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - }, - "expires_at": { - "type": "integer" - }, - "fetched_at": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "fetched_at" - ] - }, - "ChannelModifySchema": { - "type": "object", - "properties": { - "name": { - "maxLength": 100, - "type": "string" - }, - "type": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "topic": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - }, - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - } - }, - "parent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActivitySchema": { - "type": "object", - "properties": { - "afk": { - "type": "boolean" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "since": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "status" - ] - }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "Activity": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ActivityType" - }, - "url": { - "type": "string" - }, - "created_at": { - "type": "integer" - }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] - }, - "application_id": { - "type": "string" - }, - "details": { - "type": "string" - }, - "state": { - "type": "string" - }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] - }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false - }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false - }, - "instance": { - "type": "boolean" - }, - "flags": { - "type": "string" - }, - "id": { - "type": "string" - }, - "sync_id": { - "type": "string" - }, - "metadata": { - "type": "object", - "properties": { - "context_uri": { - "type": "string" - }, - "album_id": { - "type": "string" - }, - "artist_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] - }, - "session_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "flags", - "name", - "session_id", - "type" - ] - }, - "ActivityType": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "color": { - "type": "integer" - }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/definitions/EmbedImage" - }, - "thumbnail": { - "$ref": "#/definitions/EmbedImage" - }, - "video": { - "$ref": "#/definitions/EmbedImage" - }, - "provider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - }, - "additionalProperties": false - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActionRowComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.ActionRow" - }, - "components": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/definitions/ButtonComponent" - }, - { - "$ref": "#/definitions/SelectMenuComponent" - }, - { - "$ref": "#/definitions/StringSelectMenuComponent" - }, - { - "$ref": "#/definitions/TextInputComponent" - } - ] - } - } - }, - "additionalProperties": false, - "required": [ - "components", - "type" - ] - }, - "MessageComponentType.ActionRow": { - "type": "number", - "enum": [ - 1 - ] - }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.Button" - }, - "style": { - "$ref": "#/definitions/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "style", - "type" - ] - }, - "MessageComponentType.Button": { - "type": "number", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - "SelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "type" - ] - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "type" - ] - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.StringSelect" - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuOption" - } - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "options", - "type" - ] - }, - "MessageComponentType.StringSelect": { - "type": "number", - "enum": [ - 3 - ] - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "default": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "label", - "value" - ] - }, - "TextInputComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.TextInput" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/definitions/TextInputStyle" - }, - "label": { - "type": "string" - }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" - }, - "value": { - "type": "string" - }, - "placeholder": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "label", - "style", - "type" - ] - }, - "MessageComponentType.TextInput": { - "type": "number", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "PollCreationSchema": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "duration": { - "type": "integer" - }, - "allow_multiselect": { - "type": "boolean" - }, - "layout_type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "answers", - "question" - ] - }, - "PollMedia": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - } - }, - "additionalProperties": false - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" - }, - "poll_media": { - "$ref": "#/definitions/PollMedia" - } - }, - "additionalProperties": false, - "required": [ - "poll_media" - ] - }, - "ChannelOverride": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ] - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "all" - ] - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { - "type": "integer" - }, - "guild_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "integer" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "guild_ids", - "id", - "name" - ] - }, - "GenerateWebAuthnCredentialsSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "password" - ] - }, - "CreateWebAuthnCredentialSchema": { - "type": "object", - "properties": { - "credential": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ticket": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "credential", - "name", - "ticket" - ] - }, - "APIErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "code", - "errors", - "message" - ] - }, - "CaptchaRequiredResponse": { - "type": "object", - "properties": { - "captcha_key": { - "type": "string" - }, - "captcha_sitekey": { - "type": "string" - }, - "captcha_service": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "string" - }, - "afk_channel": { - "$ref": "#/definitions/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { - "type": "string" - }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "template_id": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/definitions/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "Channel": { - "type": "object", - "properties": { - "created_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "type": { - "$ref": "#/definitions/ChannelType" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/Recipient" - } - }, - "last_message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "parent_id": { - "type": [ - "null", - "string" - ] - }, - "parent": { - "$ref": "#/definitions/Channel" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "last_pin_timestamp": { - "type": "integer" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelPermissionOverwrite" - } - }, - "video_quality_mode": { - "type": "integer" - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "rate_limit_per_user": { - "type": "integer" - }, - "topic": { - "type": "string" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "retention_policy_id": { - "type": "string" - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "read_states": { - "type": "array", - "items": { - "$ref": "#/definitions/ReadState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "flags": { - "type": "integer", - "default": 0 - }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "created_at", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "Recipient": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "closed": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "closed", - "id", - "user", - "user_id" - ] - }, - "User": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "desktop": { - "type": "boolean", - "default": false - }, - "mobile": { - "type": "boolean", - "default": false - }, - "premium": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "bot": { - "type": "boolean", - "default": false - }, - "bio": { - "type": "string", - "default": "" - }, - "system": { - "type": "boolean", - "default": false - }, - "nsfw_allowed": { - "type": "boolean", - "default": true - }, - "mfa_enabled": { - "type": "boolean", - "default": false - }, - "webauthn_enabled": { - "type": "boolean", - "default": false - }, - "totp_secret": { - "type": "string", - "default": "" - }, - "totp_last_ticket": { - "type": "string", - "default": "" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "verified": { - "type": "boolean" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "deleted": { - "type": "boolean", - "default": false - }, - "email": { - "type": "string" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "public_flags": { - "type": "integer", - "default": 0 - }, - "purchased_flags": { - "type": "integer", - "default": 0 - }, - "premium_usage_flags": { - "type": "integer", - "default": 0 - }, - "rights": { - "type": "string" - }, - "sessions": { - "type": "array", - "items": { - "$ref": "#/definitions/Session" - } - }, - "relationships": { - "type": "array", - "items": { - "$ref": "#/definitions/Relationship" - } - }, - "connected_accounts": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectedAccount" - } - }, - "data": { - "type": "object", - "properties": { - "valid_tokens_since": { - "type": "string", - "format": "date-time" - }, - "hash": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "valid_tokens_since" - ] - }, - "fingerprints": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "settings": { - "$ref": "#/definitions/UserSettings" - }, - "extended_settings": { - "type": "string", - "default": "{}" - }, - "security_keys": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityKey" - } - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "extended_settings", - "fingerprints", - "flags", - "id", - "mfa_enabled", - "mobile", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "relationships", - "rights", - "security_keys", - "sessions", - "settings", - "system", - "username", - "verified", - "webauthn_enabled" - ] - }, - "Session": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "session_id": { - "type": "string" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "client_info": { - "type": "object", - "properties": { - "client": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "client", - "os", - "version" - ] - }, - "client_status": { - "$ref": "#/definitions/ClientStatus" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "activities", - "client_info", - "client_status", - "id", - "session_id", - "status", - "user", - "user_id" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "Relationship": { - "type": "object", - "properties": { - "from_id": { - "type": "string" - }, - "from": { - "$ref": "#/definitions/User" - }, - "to_id": { - "type": "string" - }, - "to": { - "$ref": "#/definitions/User" - }, - "nickname": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "from", - "from_id", - "id", - "to", - "to_id", - "type" - ] - }, - "RelationshipType": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "ConnectedAccount": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "friend_sync": { - "type": "boolean", - "default": false - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean", - "default": false - }, - "show_activity": { - "type": "integer", - "default": 0 - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean", - "default": true - }, - "visibility": { - "type": "integer", - "default": 0 - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer", - "default": 0 - }, - "two_way_link": { - "type": "boolean", - "default": false - }, - "token_data": { - "anyOf": [ - { - "$ref": "#/definitions/ConnectedAccountTokenData" - }, - { - "type": "null" - } - ] - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "external_id", - "id", - "name", - "type", - "user", - "user_id" - ] - }, - "UserSettings": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "afk_timeout": { - "type": "integer", - "default": 3600 - }, - "allow_accessibility_detection": { - "type": "boolean", - "default": true - }, - "animate_emoji": { - "type": "boolean", - "default": true - }, - "animate_stickers": { - "type": "integer", - "default": 0 - }, - "contact_sync_enabled": { - "type": "boolean", - "default": false - }, - "convert_emoticons": { - "type": "boolean", - "default": false - }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" - }, - { - "type": "null" - } - ], - "default": null - }, - "default_guilds_restricted": { - "type": "boolean", - "default": false - }, - "detect_platform_accounts": { - "type": "boolean", - "default": false - }, - "developer_mode": { - "type": "boolean", - "default": true - }, - "disable_games_tab": { - "type": "boolean", - "default": true - }, - "enable_tts_command": { - "type": "boolean", - "default": false - }, - "explicit_content_filter": { - "type": "integer", - "default": 0 - }, - "friend_discovery_flags": { - "type": "integer", - "default": 0 - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean", - "default": false - }, - "gif_auto_play": { - "type": "boolean", - "default": false - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - }, - "default": [] - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "inline_attachment_media": { - "type": "boolean", - "default": true - }, - "inline_embed_media": { - "type": "boolean", - "default": true - }, - "locale": { - "type": "string", - "default": "en-US" - }, - "message_display_compact": { - "type": "boolean", - "default": false - }, - "native_phone_integration_enabled": { - "type": "boolean", - "default": true - }, - "render_embeds": { - "type": "boolean", - "default": true - }, - "render_reactions": { - "type": "boolean", - "default": true - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "show_current_game": { - "type": "boolean", - "default": true - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "default": "online" - }, - "stream_notifications_enabled": { - "type": "boolean", - "default": false - }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string", - "default": "dark" - }, - "timezone_offset": { - "type": "integer", - "default": 0 - }, - "view_nsfw_guilds": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_discovery_flags", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "index", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset", - "view_nsfw_guilds" - ] - }, - "SecurityKey": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "key_id": { - "type": "string" - }, - "public_key": { - "type": "string" - }, - "counter": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "counter", - "id", - "key_id", - "name", - "public_key", - "user", - "user_id" - ] - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - }, - "Invite": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "temporary": { - "type": "boolean" - }, - "uses": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "max_age": { - "type": "integer" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "inviter_id": { - "type": "string" - }, - "inviter": { - "$ref": "#/definitions/User" - }, - "target_user_id": { - "type": "string" - }, - "target_user": { - "type": "string" - }, - "target_user_type": { - "type": "integer" - }, - "vanity_url": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "code", - "created_at", - "flags", - "guild", - "guild_id", - "inviter", - "max_age", - "max_uses", - "target_user_id", - "temporary", - "uses" - ] - }, - "Message": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "author_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/User" - }, - "member_id": { - "type": "string" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "webhook_id": { - "type": "string" - }, - "webhook": { - "$ref": "#/definitions/Webhook" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "type": "string", - "format": "date-time" - }, - "tts": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "mention_channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/definitions/Reaction" - } - }, - "nonce": { - "type": "string" - }, - "pinned": { - "type": "boolean" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "activity": { - "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "party_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "party_id", - "type" - ] - }, - "flags": { - "type": "integer" - }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type", - "user_id" - ] - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "embeds", - "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "reactions", - "timestamp", - "type" - ] - }, - "Member": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "nick": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "integer" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "pending": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserGuildSettings" - }, - "last_message_id": { - "type": "string" - }, - "joined_by": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "guild", - "guild_id", - "id", - "index", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "user" - ] - }, - "Role": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "color": { - "type": "integer" - }, - "hoist": { - "type": "boolean" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "icon": { - "type": "string" - }, - "unicode_emoji": { - "type": "string" - }, - "tags": { - "type": "object", - "properties": { - "bot_id": { - "type": "string" - }, - "integration_id": { - "type": "string" - }, - "premium_subscriber": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "flags": { - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "UserGuildSettings": { - "type": "object", - "properties": { - "channel_overrides": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - { - "type": "null" - } - ] - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "version": { - "type": "integer" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "type": "number", - "enum": [ - 0 - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_overrides", - "flags", - "guild_id", - "hide_muted_channels", - "message_notifications", - "mobile_push", - "mute_config", - "mute_scheduled_events", - "muted", - "notify_highlights", - "suppress_everyone", - "suppress_roles", - "version" - ] - }, - "Webhook": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/WebhookType" - }, - "name": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "token": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "source_channel_id": { - "type": "string" - }, - "source_channel": { - "$ref": "#/definitions/Channel" - }, - "url": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "application", - "application_id", - "avatar", - "channel", - "channel_id", - "id", - "name", - "source_channel", - "source_channel_id", - "type", - "url", - "user", - "user_id" - ] - }, - "WebhookType": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "Application": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "description": { - "type": "string" - }, - "summary": { - "type": "string", - "default": "" - }, - "type": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "hook": { - "type": "boolean", - "default": true - }, - "bot_public": { - "type": "boolean", - "default": true - }, - "bot_require_code_grant": { - "type": "boolean", - "default": false - }, - "verify_key": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "rpc_application_state": { - "type": "integer", - "default": 0 - }, - "store_application_state": { - "type": "integer", - "default": 1 - }, - "verification_state": { - "type": "integer", - "default": 1 - }, - "interactions_endpoint_url": { - "type": "string" - }, - "integration_public": { - "type": "boolean", - "default": true - }, - "integration_require_code_grant": { - "type": "boolean", - "default": false - }, - "discoverability_state": { - "type": "integer", - "default": 1 - }, - "discovery_eligibility_flags": { - "type": "integer", - "default": 2240 - }, - "bot": { - "$ref": "#/definitions/User" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "cover_image": { - "type": "string" - }, - "install_params": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "permissions", - "scopes" - ] - }, - "terms_of_service_url": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "discoverability_state", - "discovery_eligibility_flags", - "flags", - "hook", - "id", - "integration_public", - "integration_require_code_grant", - "name", - "owner", - "redirect_uris", - "rpc_application_state", - "store_application_state", - "summary", - "verification_state", - "verify_key" - ] - }, - "Team": { - "type": "object", - "properties": { - "icon": { - "type": "string" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/TeamMember" - } - }, - "name": { - "type": "string" - }, - "owner_user_id": { - "type": "string" - }, - "owner_user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "members", - "name", - "owner_user", - "owner_user_id" - ] - }, - "TeamMember": { - "type": "object", - "properties": { - "membership_state": { - "$ref": "#/definitions/TeamMemberState" - }, - "permissions": { - "type": "array", - "items": { - "type": "string" - } - }, - "team_id": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "membership_state", - "permissions", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "Sticker": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" - }, - "pack_id": { - "type": "string" - }, - "pack": { - "$ref": "#/definitions/StickerPack" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "type": { - "$ref": "#/definitions/StickerType" - }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "format_type", - "id", - "name", - "pack", - "type" - ] - }, - "StickerPack": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "cover_sticker_id": { - "type": "string" - }, - "cover_sticker": { - "$ref": "#/definitions/Sticker" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "stickers" - ] - }, - "StickerType": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "Attachment": { - "type": "object", - "properties": { - "filename": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - }, - "content_type": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "message": { - "$ref": "#/definitions/Message" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", - "url" - ] - }, - "Reaction": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "count", - "emoji", - "user_ids" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "Poll": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "expiry": { - "type": "string", - "format": "date-time" - }, - "allow_multiselect": { - "type": "boolean" - }, - "results": { - "$ref": "#/definitions/PollResult" - } - }, - "additionalProperties": false, - "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" - ] - }, - "PollResult": { - "type": "object", - "properties": { - "is_finalized": { - "type": "boolean" - }, - "answer_counts": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswerCount" - } - } - }, - "additionalProperties": false, - "required": [ - "answer_counts", - "is_finalized" - ] - }, - "PollAnswerCount": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "count": { - "type": "integer" - }, - "me_voted": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "id", - "me_voted" - ] - }, - "VoiceState": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "session_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_mute": { - "type": "boolean" - }, - "self_stream": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "suppress": { - "type": "boolean" - }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "deaf", - "guild_id", - "id", - "member", - "mute", - "self_deaf", - "self_mute", - "self_video", - "session_id", - "suppress", - "token", - "user", - "user_id" - ] - }, - "ReadState": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "last_message_id": { - "type": "string" - }, - "public_ack": { - "type": "string" - }, - "notifications_cursor": { - "type": "string" - }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "mention_count": { - "type": "integer" - }, - "manual": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "id", - "last_message_id", - "manual", - "mention_count", - "notifications_cursor", - "public_ack", - "user", - "user_id" - ] - }, - "Ban": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "executor_id": { - "type": "string" - }, - "executor": { - "$ref": "#/definitions/User" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor", - "executor_id", - "guild", - "guild_id", - "id", - "ip", - "user", - "user_id" - ] - }, - "Template": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "usage_count": { - "type": "integer" - }, - "creator_id": { - "type": "string" - }, - "creator": { - "$ref": "#/definitions/User" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "serialized_source_guild": { - "$ref": "#/definitions/Guild" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "created_at", - "creator", - "creator_id", - "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" - ] - }, - "Emoji": { - "type": "object", - "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "managed": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "require_colons": { - "type": "boolean" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" - ] - }, - "GuildWelcomeScreen": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "channel_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "description", - "enabled", - "welcome_channels" - ] - }, - "GuildMessagesSearchMessage": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "content": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/PublicUser" - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicUser" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, - "timestamp": { - "type": "string" - }, - "edited_timestamp": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "hit": { - "type": "boolean", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ] - }, - "GuildVanityUrl": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "uses": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "code", - "uses" - ] - }, - "GuildVanityUrlNoInvite": { - "type": "object", - "properties": { - "code": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "code" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "TenorGifResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" - ] - }, - "BackupCode": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "code": { - "type": "string" - }, - "consumed": { - "type": "boolean" - }, - "expired": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "consumed", - "expired", - "id", - "user" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "toJSON": { - "type": "object", - "additionalProperties": false - }, - "_do_validate": { - "type": "object", - "additionalProperties": false - }, - "assign": { - "type": "object", - "additionalProperties": false - }, - "hasId": { - "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", - "type": "object", - "additionalProperties": false - }, - "save": { - "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", - "type": "object", - "additionalProperties": false - }, - "remove": { - "description": "Removes current entity from the database.", - "type": "object", - "additionalProperties": false - }, - "softRemove": { - "description": "Records the delete date of current entity.", - "type": "object", - "additionalProperties": false - }, - "recover": { - "description": "Recovers a given entity in the database.", - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "banner": { - "type": "string" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "_do_validate", - "assign", - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "hasId", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "recover", - "reload", - "remove", - "roles", - "save", - "softRemove", - "stickers", - "toJSON", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "DmChannelDTO": { - "type": "object", - "properties": { - "icon": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": "string" - }, - "last_message_id": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "origin_channel_id": { - "type": [ - "null", - "string" - ] - }, - "owner_id": { - "type": "string" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/MinimalPublicUserDTO" - } - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "icon", - "id", - "last_message_id", - "name", - "origin_channel_id", - "recipients", - "type" - ] - }, - "MinimalPublicUserDTO": { - "type": "object", - "properties": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - }, - "badge_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - }, - "Categories": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "localizations": { - "type": "string" - }, - "is_primary": { - "type": "boolean" - }, - "icon": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "is_primary", - "localizations", - "name" - ] - }, - "GuildVoiceRegion": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "custom": { - "type": "boolean" - }, - "deprecated": { - "type": "boolean" - }, - "optimal": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom", - "deprecated", - "id", - "name", - "optimal" - ] - }, - "UserLimits": { - "type": "object", - "properties": { - "maxGuilds": { - "type": "integer", - "default": 1048576 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - }, - "maxBio": { - "type": "integer", - "default": 190 - } - }, - "additionalProperties": false, - "required": [ - "maxBio", - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "GuildLimits": { - "type": "object", - "properties": { - "maxRoles": { - "type": "integer", - "default": 1000 - }, - "maxEmojis": { - "type": "integer", - "default": 2000 - }, - "maxMembers": { - "type": "integer", - "default": 25000000 - }, - "maxChannels": { - "type": "integer", - "default": 65535 - }, - "maxBulkBanUsers": { - "type": "integer", - "default": 200 - }, - "maxChannelsInCategory": { - "type": "integer", - "default": 65535 - } - }, - "additionalProperties": false, - "required": [ - "maxBulkBanUsers", - "maxChannels", - "maxChannelsInCategory", - "maxEmojis", - "maxMembers", - "maxRoles" - ] - }, - "MessageLimits": { - "type": "object", - "properties": { - "maxCharacters": { - "type": "integer", - "default": 1048576 - }, - "maxTTSCharacters": { - "type": "integer", - "default": 160 - }, - "maxReactions": { - "type": "integer", - "default": 2048 - }, - "maxAttachmentSize": { - "type": "integer", - "default": 1073741824 - }, - "maxBulkDelete": { - "type": "integer", - "default": 1000 - }, - "maxEmbedDownloadSize": { - "type": "integer", - "default": 5242880 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "maxReactions", - "maxTTSCharacters" - ] - }, - "ChannelLimits": { - "type": "object", - "properties": { - "maxPins": { - "type": "integer", - "default": 500 - }, - "maxTopic": { - "type": "integer", - "default": 1024 - }, - "maxWebhooks": { - "type": "integer", - "default": 100 - } - }, - "additionalProperties": false, - "required": [ - "maxPins", - "maxTopic", - "maxWebhooks" - ] - }, - "RateLimits": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": false - }, - "ip": { - "$ref": "#/definitions/RateLimitOptions" - }, - "global": { - "$ref": "#/definitions/RateLimitOptions" - }, - "error": { - "$ref": "#/definitions/RateLimitOptions" - }, - "routes": { - "$ref": "#/definitions/RouteRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "error", - "global", - "ip", - "routes" - ] - }, - "RateLimitOptions": { - "type": "object", - "properties": { - "bot": { - "type": "integer" - }, - "count": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "onyIp": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "window" - ] - }, - "RouteRateLimit": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/definitions/RateLimitOptions" - }, - "webhook": { - "$ref": "#/definitions/RateLimitOptions" - }, - "channel": { - "$ref": "#/definitions/RateLimitOptions" - }, - "auth": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "GlobalRateLimits": { - "type": "object", - "properties": { - "register": { - "$ref": "#/definitions/GlobalRateLimit" - }, - "sendMessage": { - "$ref": "#/definitions/GlobalRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "register", - "sendMessage" - ] - }, - "GlobalRateLimit": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "default": 100 - }, - "window": { - "type": "integer", - "default": 3600000 - }, - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "limit", - "window" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type" - ] - }, - "UserProfile": { - "type": "object", - "properties": { - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "BotModifySchema": { @@ -52878,4772 +253,6 @@ } }, "additionalProperties": false, - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "ConnectedAccountTokenData": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - }, - "expires_at": { - "type": "integer" - }, - "fetched_at": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "fetched_at" - ] - }, - "ChannelModifySchema": { - "type": "object", - "properties": { - "name": { - "maxLength": 100, - "type": "string" - }, - "type": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "topic": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - }, - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - } - }, - "parent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActivitySchema": { - "type": "object", - "properties": { - "afk": { - "type": "boolean" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "since": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "status" - ] - }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "Activity": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ActivityType" - }, - "url": { - "type": "string" - }, - "created_at": { - "type": "integer" - }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] - }, - "application_id": { - "type": "string" - }, - "details": { - "type": "string" - }, - "state": { - "type": "string" - }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] - }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false - }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false - }, - "instance": { - "type": "boolean" - }, - "flags": { - "type": "string" - }, - "id": { - "type": "string" - }, - "sync_id": { - "type": "string" - }, - "metadata": { - "type": "object", - "properties": { - "context_uri": { - "type": "string" - }, - "album_id": { - "type": "string" - }, - "artist_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] - }, - "session_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "flags", - "name", - "session_id", - "type" - ] - }, - "ActivityType": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "color": { - "type": "integer" - }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/definitions/EmbedImage" - }, - "thumbnail": { - "$ref": "#/definitions/EmbedImage" - }, - "video": { - "$ref": "#/definitions/EmbedImage" - }, - "provider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - }, - "additionalProperties": false - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - }, - "additionalProperties": false - }, - "ActionRowComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.ActionRow" - }, - "components": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/definitions/ButtonComponent" - }, - { - "$ref": "#/definitions/SelectMenuComponent" - }, - { - "$ref": "#/definitions/StringSelectMenuComponent" - }, - { - "$ref": "#/definitions/TextInputComponent" - } - ] - } - } - }, - "additionalProperties": false, - "required": [ - "components", - "type" - ] - }, - "MessageComponentType.ActionRow": { - "type": "number", - "enum": [ - 1 - ] - }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.Button" - }, - "style": { - "$ref": "#/definitions/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "style", - "type" - ] - }, - "MessageComponentType.Button": { - "type": "number", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - "SelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "type" - ] - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "type" - ] - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.StringSelect" - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuOption" - } - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "options", - "type" - ] - }, - "MessageComponentType.StringSelect": { - "type": "number", - "enum": [ - 3 - ] - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "default": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "label", - "value" - ] - }, - "TextInputComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.TextInput" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/definitions/TextInputStyle" - }, - "label": { - "type": "string" - }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" - }, - "value": { - "type": "string" - }, - "placeholder": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "label", - "style", - "type" - ] - }, - "MessageComponentType.TextInput": { - "type": "number", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "PollCreationSchema": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "duration": { - "type": "integer" - }, - "allow_multiselect": { - "type": "boolean" - }, - "layout_type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "answers", - "question" - ] - }, - "PollMedia": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - } - }, - "additionalProperties": false - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" - }, - "poll_media": { - "$ref": "#/definitions/PollMedia" - } - }, - "additionalProperties": false, - "required": [ - "poll_media" - ] - }, - "ChannelOverride": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ] - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ] - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "all" - ] - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { - "type": "integer" - }, - "guild_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "integer" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "guild_ids", - "id", - "name" - ] - }, - "GenerateWebAuthnCredentialsSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "password" - ] - }, - "CreateWebAuthnCredentialSchema": { - "type": "object", - "properties": { - "credential": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ticket": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "credential", - "name", - "ticket" - ] - }, - "APIErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "code", - "errors", - "message" - ] - }, - "CaptchaRequiredResponse": { - "type": "object", - "properties": { - "captcha_key": { - "type": "string" - }, - "captcha_sitekey": { - "type": "string" - }, - "captcha_service": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "string" - }, - "afk_channel": { - "$ref": "#/definitions/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { - "type": "string" - }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "template_id": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/definitions/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "Channel": { - "type": "object", - "properties": { - "created_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "type": { - "$ref": "#/definitions/ChannelType" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/Recipient" - } - }, - "last_message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "parent_id": { - "type": [ - "null", - "string" - ] - }, - "parent": { - "$ref": "#/definitions/Channel" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "last_pin_timestamp": { - "type": "integer" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelPermissionOverwrite" - } - }, - "video_quality_mode": { - "type": "integer" - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "rate_limit_per_user": { - "type": "integer" - }, - "topic": { - "type": "string" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "retention_policy_id": { - "type": "string" - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "read_states": { - "type": "array", - "items": { - "$ref": "#/definitions/ReadState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "flags": { - "type": "integer", - "default": 0 - }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "created_at", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "Recipient": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "closed": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "closed", - "id", - "user", - "user_id" - ] - }, - "User": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "desktop": { - "type": "boolean", - "default": false - }, - "mobile": { - "type": "boolean", - "default": false - }, - "premium": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "bot": { - "type": "boolean", - "default": false - }, - "bio": { - "type": "string", - "default": "" - }, - "system": { - "type": "boolean", - "default": false - }, - "nsfw_allowed": { - "type": "boolean", - "default": true - }, - "mfa_enabled": { - "type": "boolean", - "default": false - }, - "webauthn_enabled": { - "type": "boolean", - "default": false - }, - "totp_secret": { - "type": "string", - "default": "" - }, - "totp_last_ticket": { - "type": "string", - "default": "" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "verified": { - "type": "boolean" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "deleted": { - "type": "boolean", - "default": false - }, - "email": { - "type": "string" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "public_flags": { - "type": "integer", - "default": 0 - }, - "purchased_flags": { - "type": "integer", - "default": 0 - }, - "premium_usage_flags": { - "type": "integer", - "default": 0 - }, - "rights": { - "type": "string" - }, - "sessions": { - "type": "array", - "items": { - "$ref": "#/definitions/Session" - } - }, - "relationships": { - "type": "array", - "items": { - "$ref": "#/definitions/Relationship" - } - }, - "connected_accounts": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectedAccount" - } - }, - "data": { - "type": "object", - "properties": { - "valid_tokens_since": { - "type": "string", - "format": "date-time" - }, - "hash": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "valid_tokens_since" - ] - }, - "fingerprints": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "settings": { - "$ref": "#/definitions/UserSettings" - }, - "extended_settings": { - "type": "string", - "default": "{}" - }, - "security_keys": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityKey" - } - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "extended_settings", - "fingerprints", - "flags", - "id", - "mfa_enabled", - "mobile", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "relationships", - "rights", - "security_keys", - "sessions", - "settings", - "system", - "username", - "verified", - "webauthn_enabled" - ] - }, - "Session": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "session_id": { - "type": "string" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "client_info": { - "type": "object", - "properties": { - "client": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "client", - "os", - "version" - ] - }, - "client_status": { - "$ref": "#/definitions/ClientStatus" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "activities", - "client_info", - "client_status", - "id", - "session_id", - "status", - "user", - "user_id" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "Relationship": { - "type": "object", - "properties": { - "from_id": { - "type": "string" - }, - "from": { - "$ref": "#/definitions/User" - }, - "to_id": { - "type": "string" - }, - "to": { - "$ref": "#/definitions/User" - }, - "nickname": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "from", - "from_id", - "id", - "to", - "to_id", - "type" - ] - }, - "RelationshipType": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "ConnectedAccount": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "friend_sync": { - "type": "boolean", - "default": false - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean", - "default": false - }, - "show_activity": { - "type": "integer", - "default": 0 - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean", - "default": true - }, - "visibility": { - "type": "integer", - "default": 0 - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer", - "default": 0 - }, - "two_way_link": { - "type": "boolean", - "default": false - }, - "token_data": { - "anyOf": [ - { - "$ref": "#/definitions/ConnectedAccountTokenData" - }, - { - "type": "null" - } - ] - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "external_id", - "id", - "name", - "type", - "user", - "user_id" - ] - }, - "UserSettings": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "afk_timeout": { - "type": "integer", - "default": 3600 - }, - "allow_accessibility_detection": { - "type": "boolean", - "default": true - }, - "animate_emoji": { - "type": "boolean", - "default": true - }, - "animate_stickers": { - "type": "integer", - "default": 0 - }, - "contact_sync_enabled": { - "type": "boolean", - "default": false - }, - "convert_emoticons": { - "type": "boolean", - "default": false - }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" - }, - { - "type": "null" - } - ], - "default": null - }, - "default_guilds_restricted": { - "type": "boolean", - "default": false - }, - "detect_platform_accounts": { - "type": "boolean", - "default": false - }, - "developer_mode": { - "type": "boolean", - "default": true - }, - "disable_games_tab": { - "type": "boolean", - "default": true - }, - "enable_tts_command": { - "type": "boolean", - "default": false - }, - "explicit_content_filter": { - "type": "integer", - "default": 0 - }, - "friend_discovery_flags": { - "type": "integer", - "default": 0 - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean", - "default": false - }, - "gif_auto_play": { - "type": "boolean", - "default": false - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - }, - "default": [] - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "inline_attachment_media": { - "type": "boolean", - "default": true - }, - "inline_embed_media": { - "type": "boolean", - "default": true - }, - "locale": { - "type": "string", - "default": "en-US" - }, - "message_display_compact": { - "type": "boolean", - "default": false - }, - "native_phone_integration_enabled": { - "type": "boolean", - "default": true - }, - "render_embeds": { - "type": "boolean", - "default": true - }, - "render_reactions": { - "type": "boolean", - "default": true - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "show_current_game": { - "type": "boolean", - "default": true - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "default": "online" - }, - "stream_notifications_enabled": { - "type": "boolean", - "default": false - }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string", - "default": "dark" - }, - "timezone_offset": { - "type": "integer", - "default": 0 - }, - "view_nsfw_guilds": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_discovery_flags", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "index", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset", - "view_nsfw_guilds" - ] - }, - "SecurityKey": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "key_id": { - "type": "string" - }, - "public_key": { - "type": "string" - }, - "counter": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "counter", - "id", - "key_id", - "name", - "public_key", - "user", - "user_id" - ] - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - }, - "Invite": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "temporary": { - "type": "boolean" - }, - "uses": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "max_age": { - "type": "integer" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "inviter_id": { - "type": "string" - }, - "inviter": { - "$ref": "#/definitions/User" - }, - "target_user_id": { - "type": "string" - }, - "target_user": { - "type": "string" - }, - "target_user_type": { - "type": "integer" - }, - "vanity_url": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "code", - "created_at", - "flags", - "guild", - "guild_id", - "inviter", - "max_age", - "max_uses", - "target_user_id", - "temporary", - "uses" - ] - }, - "Message": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "author_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/User" - }, - "member_id": { - "type": "string" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "webhook_id": { - "type": "string" - }, - "webhook": { - "$ref": "#/definitions/Webhook" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "type": "string", - "format": "date-time" - }, - "tts": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "mention_channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/definitions/Reaction" - } - }, - "nonce": { - "type": "string" - }, - "pinned": { - "type": "boolean" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "activity": { - "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "party_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "party_id", - "type" - ] - }, - "flags": { - "type": "integer" - }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type", - "user_id" - ] - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "embeds", - "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "reactions", - "timestamp", - "type" - ] - }, - "Member": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "nick": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "integer" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "pending": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserGuildSettings" - }, - "last_message_id": { - "type": "string" - }, - "joined_by": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "guild", - "guild_id", - "id", - "index", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "user" - ] - }, - "Role": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "color": { - "type": "integer" - }, - "hoist": { - "type": "boolean" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "icon": { - "type": "string" - }, - "unicode_emoji": { - "type": "string" - }, - "tags": { - "type": "object", - "properties": { - "bot_id": { - "type": "string" - }, - "integration_id": { - "type": "string" - }, - "premium_subscriber": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "flags": { - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "UserGuildSettings": { - "type": "object", - "properties": { - "channel_overrides": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - { - "type": "null" - } - ] - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "version": { - "type": "integer" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "type": "number", - "enum": [ - 0 - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_overrides", - "flags", - "guild_id", - "hide_muted_channels", - "message_notifications", - "mobile_push", - "mute_config", - "mute_scheduled_events", - "muted", - "notify_highlights", - "suppress_everyone", - "suppress_roles", - "version" - ] - }, - "Webhook": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/WebhookType" - }, - "name": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "token": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "source_channel_id": { - "type": "string" - }, - "source_channel": { - "$ref": "#/definitions/Channel" - }, - "url": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "application", - "application_id", - "avatar", - "channel", - "channel_id", - "id", - "name", - "source_channel", - "source_channel_id", - "type", - "url", - "user", - "user_id" - ] - }, - "WebhookType": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "Application": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "description": { - "type": "string" - }, - "summary": { - "type": "string", - "default": "" - }, - "type": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "hook": { - "type": "boolean", - "default": true - }, - "bot_public": { - "type": "boolean", - "default": true - }, - "bot_require_code_grant": { - "type": "boolean", - "default": false - }, - "verify_key": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "rpc_application_state": { - "type": "integer", - "default": 0 - }, - "store_application_state": { - "type": "integer", - "default": 1 - }, - "verification_state": { - "type": "integer", - "default": 1 - }, - "interactions_endpoint_url": { - "type": "string" - }, - "integration_public": { - "type": "boolean", - "default": true - }, - "integration_require_code_grant": { - "type": "boolean", - "default": false - }, - "discoverability_state": { - "type": "integer", - "default": 1 - }, - "discovery_eligibility_flags": { - "type": "integer", - "default": 2240 - }, - "bot": { - "$ref": "#/definitions/User" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "cover_image": { - "type": "string" - }, - "install_params": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "permissions", - "scopes" - ] - }, - "terms_of_service_url": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "discoverability_state", - "discovery_eligibility_flags", - "flags", - "hook", - "id", - "integration_public", - "integration_require_code_grant", - "name", - "owner", - "redirect_uris", - "rpc_application_state", - "store_application_state", - "summary", - "verification_state", - "verify_key" - ] - }, - "Team": { - "type": "object", - "properties": { - "icon": { - "type": "string" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/TeamMember" - } - }, - "name": { - "type": "string" - }, - "owner_user_id": { - "type": "string" - }, - "owner_user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "members", - "name", - "owner_user", - "owner_user_id" - ] - }, - "TeamMember": { - "type": "object", - "properties": { - "membership_state": { - "$ref": "#/definitions/TeamMemberState" - }, - "permissions": { - "type": "array", - "items": { - "type": "string" - } - }, - "team_id": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "membership_state", - "permissions", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "Sticker": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" - }, - "pack_id": { - "type": "string" - }, - "pack": { - "$ref": "#/definitions/StickerPack" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "type": { - "$ref": "#/definitions/StickerType" - }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "format_type", - "id", - "name", - "pack", - "type" - ] - }, - "StickerPack": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "cover_sticker_id": { - "type": "string" - }, - "cover_sticker": { - "$ref": "#/definitions/Sticker" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "stickers" - ] - }, - "StickerType": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "Attachment": { - "type": "object", - "properties": { - "filename": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - }, - "content_type": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "message": { - "$ref": "#/definitions/Message" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", - "url" - ] - }, - "Reaction": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "count", - "emoji", - "user_ids" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "Poll": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "expiry": { - "type": "string", - "format": "date-time" - }, - "allow_multiselect": { - "type": "boolean" - }, - "results": { - "$ref": "#/definitions/PollResult" - } - }, - "additionalProperties": false, - "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" - ] - }, - "PollResult": { - "type": "object", - "properties": { - "is_finalized": { - "type": "boolean" - }, - "answer_counts": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswerCount" - } - } - }, - "additionalProperties": false, - "required": [ - "answer_counts", - "is_finalized" - ] - }, - "PollAnswerCount": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "count": { - "type": "integer" - }, - "me_voted": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "id", - "me_voted" - ] - }, - "VoiceState": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "session_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_mute": { - "type": "boolean" - }, - "self_stream": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "suppress": { - "type": "boolean" - }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "deaf", - "guild_id", - "id", - "member", - "mute", - "self_deaf", - "self_mute", - "self_video", - "session_id", - "suppress", - "token", - "user", - "user_id" - ] - }, - "ReadState": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "last_message_id": { - "type": "string" - }, - "public_ack": { - "type": "string" - }, - "notifications_cursor": { - "type": "string" - }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "mention_count": { - "type": "integer" - }, - "manual": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "id", - "last_message_id", - "manual", - "mention_count", - "notifications_cursor", - "public_ack", - "user", - "user_id" - ] - }, - "Ban": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "executor_id": { - "type": "string" - }, - "executor": { - "$ref": "#/definitions/User" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor", - "executor_id", - "guild", - "guild_id", - "id", - "ip", - "user", - "user_id" - ] - }, - "Template": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "usage_count": { - "type": "integer" - }, - "creator_id": { - "type": "string" - }, - "creator": { - "$ref": "#/definitions/User" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "serialized_source_guild": { - "$ref": "#/definitions/Guild" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "created_at", - "creator", - "creator_id", - "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" - ] - }, - "Emoji": { - "type": "object", - "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "managed": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "require_colons": { - "type": "boolean" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" - ] - }, - "GuildWelcomeScreen": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "channel_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "description", - "enabled", - "welcome_channels" - ] - }, - "GuildMessagesSearchMessage": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "content": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/PublicUser" - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicUser" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, - "timestamp": { - "type": "string" - }, - "edited_timestamp": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "hit": { - "type": "boolean", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ] - }, - "GuildVanityUrl": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "uses": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "code", - "uses" - ] - }, - "GuildVanityUrlNoInvite": { - "type": "object", - "properties": { - "code": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "code" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "TenorGifResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" - ] - }, - "BackupCode": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "code": { - "type": "string" - }, - "consumed": { - "type": "boolean" - }, - "expired": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "consumed", - "expired", - "id", - "user" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "toJSON": { - "type": "object", - "additionalProperties": false - }, - "_do_validate": { - "type": "object", - "additionalProperties": false - }, - "assign": { - "type": "object", - "additionalProperties": false - }, - "hasId": { - "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", - "type": "object", - "additionalProperties": false - }, - "save": { - "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", - "type": "object", - "additionalProperties": false - }, - "remove": { - "description": "Removes current entity from the database.", - "type": "object", - "additionalProperties": false - }, - "softRemove": { - "description": "Records the delete date of current entity.", - "type": "object", - "additionalProperties": false - }, - "recover": { - "description": "Recovers a given entity in the database.", - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "banner": { - "type": "string" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "_do_validate", - "assign", - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "hasId", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "recover", - "reload", - "remove", - "roles", - "save", - "softRemove", - "stickers", - "toJSON", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "DmChannelDTO": { - "type": "object", - "properties": { - "icon": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": "string" - }, - "last_message_id": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "origin_channel_id": { - "type": [ - "null", - "string" - ] - }, - "owner_id": { - "type": "string" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/MinimalPublicUserDTO" - } - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "icon", - "id", - "last_message_id", - "name", - "origin_channel_id", - "recipients", - "type" - ] - }, - "MinimalPublicUserDTO": { - "type": "object", - "properties": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - }, - "badge_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - }, - "Categories": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "localizations": { - "type": "string" - }, - "is_primary": { - "type": "boolean" - }, - "icon": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "is_primary", - "localizations", - "name" - ] - }, - "GuildVoiceRegion": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "custom": { - "type": "boolean" - }, - "deprecated": { - "type": "boolean" - }, - "optimal": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom", - "deprecated", - "id", - "name", - "optimal" - ] - }, - "UserLimits": { - "type": "object", - "properties": { - "maxGuilds": { - "type": "integer", - "default": 1048576 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - }, - "maxBio": { - "type": "integer", - "default": 190 - } - }, - "additionalProperties": false, - "required": [ - "maxBio", - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "GuildLimits": { - "type": "object", - "properties": { - "maxRoles": { - "type": "integer", - "default": 1000 - }, - "maxEmojis": { - "type": "integer", - "default": 2000 - }, - "maxMembers": { - "type": "integer", - "default": 25000000 - }, - "maxChannels": { - "type": "integer", - "default": 65535 - }, - "maxBulkBanUsers": { - "type": "integer", - "default": 200 - }, - "maxChannelsInCategory": { - "type": "integer", - "default": 65535 - } - }, - "additionalProperties": false, - "required": [ - "maxBulkBanUsers", - "maxChannels", - "maxChannelsInCategory", - "maxEmojis", - "maxMembers", - "maxRoles" - ] - }, - "MessageLimits": { - "type": "object", - "properties": { - "maxCharacters": { - "type": "integer", - "default": 1048576 - }, - "maxTTSCharacters": { - "type": "integer", - "default": 160 - }, - "maxReactions": { - "type": "integer", - "default": 2048 - }, - "maxAttachmentSize": { - "type": "integer", - "default": 1073741824 - }, - "maxBulkDelete": { - "type": "integer", - "default": 1000 - }, - "maxEmbedDownloadSize": { - "type": "integer", - "default": 5242880 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "maxReactions", - "maxTTSCharacters" - ] - }, - "ChannelLimits": { - "type": "object", - "properties": { - "maxPins": { - "type": "integer", - "default": 500 - }, - "maxTopic": { - "type": "integer", - "default": 1024 - }, - "maxWebhooks": { - "type": "integer", - "default": 100 - } - }, - "additionalProperties": false, - "required": [ - "maxPins", - "maxTopic", - "maxWebhooks" - ] - }, - "RateLimits": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": false - }, - "ip": { - "$ref": "#/definitions/RateLimitOptions" - }, - "global": { - "$ref": "#/definitions/RateLimitOptions" - }, - "error": { - "$ref": "#/definitions/RateLimitOptions" - }, - "routes": { - "$ref": "#/definitions/RouteRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "error", - "global", - "ip", - "routes" - ] - }, - "RateLimitOptions": { - "type": "object", - "properties": { - "bot": { - "type": "integer" - }, - "count": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "onyIp": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "window" - ] - }, - "RouteRateLimit": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/definitions/RateLimitOptions" - }, - "webhook": { - "$ref": "#/definitions/RateLimitOptions" - }, - "channel": { - "$ref": "#/definitions/RateLimitOptions" - }, - "auth": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "GlobalRateLimits": { - "type": "object", - "properties": { - "register": { - "$ref": "#/definitions/GlobalRateLimit" - }, - "sendMessage": { - "$ref": "#/definitions/GlobalRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "register", - "sendMessage" - ] - }, - "GlobalRateLimit": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "default": 100 - }, - "window": { - "type": "integer", - "default": 3600000 - }, - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "limit", - "window" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type" - ] - }, - "UserProfile": { - "type": "object", - "properties": { - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "ChannelModifySchema": { @@ -57760,96 +369,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -62551,96 +5070,6 @@ "type" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -67342,96 +9771,6 @@ ] }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -72128,96 +14467,6 @@ "nonce" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -76950,96 +19199,6 @@ "user_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -81741,96 +23900,6 @@ "state" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -86523,96 +28592,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -91308,96 +33287,6 @@ "recipients" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -96102,96 +37991,6 @@ "image" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -100884,96 +42683,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -105666,96 +47375,6 @@ "login" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -110467,96 +52086,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -115252,96 +56781,6 @@ "name" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -120097,96 +61536,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -124901,96 +66250,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -129846,96 +71105,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -134649,96 +75818,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -139462,96 +80541,6 @@ "guild_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -144257,96 +85246,6 @@ "password" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -149058,96 +89957,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -153849,96 +94658,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -158628,96 +99347,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -163544,96 +104173,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -168314,96 +108853,6 @@ "PollCreationSchema": { "$ref": "#/definitions/PollCreationSchema", "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -173227,96 +113676,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -178009,96 +118368,6 @@ "password" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -182799,96 +123068,6 @@ "tags" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -187582,96 +127761,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -192365,96 +132454,6 @@ "before" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -197137,7 +137136,6 @@ "properties": { "username": { "minLength": 2, - "maxLength": 32, "type": "string" }, "password": { @@ -197183,96 +137181,6 @@ "username" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -201966,96 +141874,6 @@ "username" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -206748,96 +146566,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -211566,96 +151294,6 @@ "guild_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -216363,96 +156001,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -221149,96 +160697,6 @@ ] }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -226009,96 +165467,6 @@ "protocol" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -230791,96 +170159,6 @@ "name" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -235573,96 +174851,6 @@ "name" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -240352,96 +179540,6 @@ "code" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -245137,96 +184235,6 @@ "password" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -249932,96 +188940,6 @@ "ticket" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -254711,96 +193629,6 @@ "user_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -259539,96 +198367,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -264310,8 +203048,7 @@ "type": "object", "properties": { "username": { - "minLength": 1, - "maxLength": 100, + "minLength": 2, "type": "string" }, "avatar": { @@ -264352,96 +203089,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -269131,96 +207778,6 @@ "note" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -273935,96 +212492,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -278834,96 +217301,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -283612,96 +221989,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -288429,96 +226716,6 @@ "user_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -293234,96 +231431,6 @@ "self_mute" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -298091,96 +236198,6 @@ "video_ssrc" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -302870,96 +240887,6 @@ "password" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -307657,96 +245584,6 @@ "ticket" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -312434,96 +250271,6 @@ } ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -317217,96 +254964,6 @@ "ticket" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -322000,96 +259657,6 @@ "name" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -326869,96 +264436,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -331652,96 +269129,6 @@ "enabled" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -336467,96 +273854,6 @@ "message" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -341254,96 +278551,6 @@ "captcha_sitekey" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -346031,96 +283238,6 @@ } ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -350814,96 +287931,6 @@ "regenerate_nonce" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -355608,96 +292635,6 @@ "total" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -360416,96 +297353,6 @@ "url" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -365195,96 +302042,6 @@ "url" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -369977,96 +306734,6 @@ "tokens" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -374788,96 +311455,6 @@ "user" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -379567,96 +316144,6 @@ "id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -384425,96 +320912,6 @@ "valid_rules_channel" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -389211,96 +325608,6 @@ "total_results" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -393990,96 +330297,6 @@ "pruned" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -398769,96 +334986,6 @@ "purged" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -403555,96 +339682,6 @@ "recommended_guilds" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -408338,96 +344375,6 @@ } ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -413117,96 +349064,6 @@ "code" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -417971,96 +353828,6 @@ "presence_count" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -422761,96 +358528,6 @@ "enabled" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -427552,96 +363229,6 @@ "gateway" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -432393,96 +367980,6 @@ "ping" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -437193,96 +372690,6 @@ "counts" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -441999,96 +377406,6 @@ "promotional_email_opt_in" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -446799,96 +382116,6 @@ "stickers" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -451578,96 +386805,6 @@ "location" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -456385,96 +391522,6 @@ "width" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -461204,96 +396251,6 @@ "gifs" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -465977,96 +400934,6 @@ "$ref": "#/definitions/TenorGifResponse" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -470760,96 +405627,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -475539,96 +410316,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -480325,96 +415012,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -485315,96 +419912,6 @@ "widget_enabled" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -490085,96 +424592,6 @@ "APIPublicUser": { "$ref": "#/definitions/PublicUser", "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -494955,96 +429372,6 @@ "verified" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -499728,96 +434055,6 @@ "$ref": "#/definitions/APIGuild" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -504501,96 +438738,6 @@ "$ref": "#/definitions/DmChannelDTO" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -509274,96 +443421,6 @@ "$ref": "#/definitions/BackupCode" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -514147,96 +448204,6 @@ "verified" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -518918,96 +452885,6 @@ "type": "array", "items": {}, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -523689,96 +457566,6 @@ "type": "array", "items": {}, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -528460,96 +462247,6 @@ "type": "array", "items": {}, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -533233,96 +466930,6 @@ "$ref": "#/definitions/Application" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -538006,96 +471613,6 @@ "$ref": "#/definitions/Invite" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -542779,96 +476296,6 @@ "$ref": "#/definitions/Message" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -547552,96 +480979,6 @@ "$ref": "#/definitions/Webhook" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -552325,96 +485662,6 @@ "$ref": "#/definitions/Categories" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -557162,96 +490409,6 @@ "tosPage" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -561935,96 +495092,6 @@ "$ref": "#/definitions/Channel" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -566708,96 +499775,6 @@ "$ref": "#/definitions/Emoji" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -571481,96 +504458,6 @@ "$ref": "#/definitions/Member" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -576301,96 +509188,6 @@ "user" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -581310,96 +514107,6 @@ "widget_enabled" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -586083,96 +518790,6 @@ "$ref": "#/definitions/Role" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -590856,96 +523473,6 @@ "$ref": "#/definitions/Sticker" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -595629,96 +528156,6 @@ "$ref": "#/definitions/Template" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -600402,96 +532839,6 @@ "$ref": "#/definitions/GuildVoiceRegion" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -605201,96 +537548,6 @@ "user" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -609974,96 +542231,6 @@ "$ref": "#/definitions/StickerPack" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -614745,96 +546912,6 @@ "type": "object", "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -619539,96 +551616,6 @@ "url" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -624326,96 +556313,6 @@ "user_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -629232,96 +561129,6 @@ "user_profile" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -634029,96 +565836,6 @@ ] }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -638820,96 +570537,6 @@ "user" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -643603,96 +575230,6 @@ "name" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -648386,96 +579923,6 @@ "user" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -653156,96 +584603,6 @@ "ActivitySchema": { "$ref": "#/definitions/ActivitySchema", "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -657941,96 +589298,6 @@ "user_ids" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -662723,96 +593990,6 @@ "messages" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -667520,96 +598697,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -672321,96 +603408,6 @@ "webauthn" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -677101,96 +608098,6 @@ } ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -681880,96 +612787,6 @@ "nick" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -686659,96 +617476,6 @@ "days" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -691444,96 +622171,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, diff --git a/scripts/schema.js b/scripts/schema.js index ff3280ac..fd5b09f5 100644 --- a/scripts/schema.js +++ b/scripts/schema.js @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -41,11 +41,16 @@ const Excluded = [ "EntitySchema", "ServerResponse", "Http2ServerResponse", + "ExpressResponse", "global.Express.Response", + "global.Response", "Response", "e.Response", "request.Response", "supertest.Response", + "DiagnosticsChannel.Response", + "_Response", + "ReadableStream", // TODO: Figure out how to exclude schemas from node_modules? "SomeJSONSchema", From 0d6cb6309627cecce31ed78768c8b960260125c1 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Wed, 21 Aug 2024 19:08:25 +0200 Subject: [PATCH 25/27] Slight code cleanup & update project desc --- assets/openapi.json | 2 +- scripts/openapi.js | 62 +++++++++++++++++++++------------------------ 2 files changed, 30 insertions(+), 34 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index ea95a1bd..71356aaa 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -2,7 +2,7 @@ "openapi": "3.1.0", "info": { "title": "Spacebar Server", - "description": "Spacebar is a free open source selfhostable discord compatible chat, voice and video platform", + "description": "Spacebar is a Discord.com server implementation and extension, with the goal of complete feature parity with Discord.com, all while adding some additional goodies, security, privacy, and configuration options.", "license": { "name": "AGPLV3", "url": "https://www.gnu.org/licenses/agpl-3.0.en.html" diff --git a/scripts/openapi.js b/scripts/openapi.js index 8258a76c..225c5175 100644 --- a/scripts/openapi.js +++ b/scripts/openapi.js @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -28,15 +28,13 @@ require("missing-native-js-functions"); const openapiPath = path.join(__dirname, "..", "assets", "openapi.json"); const SchemaPath = path.join(__dirname, "..", "assets", "schemas.json"); const schemas = JSON.parse(fs.readFileSync(SchemaPath, { encoding: "utf8" })); -// const specification = JSON.parse( -// fs.readFileSync(openapiPath, { encoding: "utf8" }), -// ); + let specification = { openapi: "3.1.0", info: { title: "Spacebar Server", description: - "Spacebar is a free open source selfhostable discord compatible chat, voice and video platform", + "Spacebar is a Discord.com server implementation and extension, with the goal of complete feature parity with Discord.com, all while adding some additional goodies, security, privacy, and configuration options.", license: { name: "AGPLV3", url: "https://www.gnu.org/licenses/agpl-3.0.en.html", @@ -68,8 +66,9 @@ let specification = { paths: {}, }; +const schemaRegEx = new RegExp(/^[\w.]+$/); function combineSchemas(schemas) { - var definitions = {}; + let definitions = {}; for (const name in schemas) { definitions = { @@ -84,9 +83,8 @@ function combineSchemas(schemas) { } for (const key in definitions) { - const reg = new RegExp(/^[a-zA-Z0-9.\-_]+$/, "gm"); - if (!reg.test(key)) { - console.error(`Invalid schema name: ${key} (${reg.test(key)})`); + if (!schemaRegEx.test(key)) { + console.error(`Invalid schema name: ${key}`); continue; } specification.components = specification.components || {}; @@ -157,32 +155,30 @@ function apiRoutes() { }, }, }, - }.merge(obj.requestBody); + }; } if (route.responses) { - for (const [k, v] of Object.entries(route.responses)) { - let schema = { - $ref: `#/components/schemas/${v.body}`, - }; + obj.responses = {}; - obj.responses = { - [k]: { - ...(v.body - ? { - description: - obj?.responses?.[k]?.description || "", - content: { - "application/json": { - schema: schema, - }, - }, - } - : { - description: "No description available", - }), - }, - }.merge(obj.responses); + for (const [k, v] of Object.entries(route.responses)) { + if (v.body) + obj.responses[k] = { + description: obj?.responses?.[k]?.description || "", + content: { + "application/json": { + schema: { + $ref: `#/components/schemas/${v.body}`, + }, + }, + }, + }; + else + obj.responses[k] = { + description: + obj?.responses?.[k]?.description || + "No description available", + }; } } else { obj.responses = { From d1fe2914180c4d03537f8bd0b77190366296c7e0 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Wed, 21 Aug 2024 19:19:33 +0200 Subject: [PATCH 26/27] Highlight sb-only routes --- assets/openapi.json | 78 +++++++++++++++++++++++++++++++++++++++++++++ scripts/openapi.js | 26 +++++++++++++-- 2 files changed, 101 insertions(+), 3 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index 71356aaa..fcfc9aac 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -10576,6 +10576,12 @@ }, "tags": [ "updates" + ], + "x-badges": [ + { + "label": "Spacebar-only", + "color": "red" + } ] } }, @@ -10588,6 +10594,12 @@ }, "tags": [ "track" + ], + "x-badges": [ + { + "label": "Spacebar-only", + "color": "red" + } ] } }, @@ -10850,6 +10862,12 @@ }, "tags": [ "scheduled-maintenances" + ], + "x-badges": [ + { + "label": "Spacebar-only", + "color": "red" + } ] } }, @@ -10921,6 +10939,12 @@ }, "tags": [ "policies" + ], + "x-badges": [ + { + "label": "Spacebar-only", + "color": "red" + } ] } }, @@ -10940,6 +10964,12 @@ }, "tags": [ "policies" + ], + "x-badges": [ + { + "label": "Spacebar-only", + "color": "red" + } ] } }, @@ -10959,6 +10989,12 @@ }, "tags": [ "policies" + ], + "x-badges": [ + { + "label": "Spacebar-only", + "color": "red" + } ] } }, @@ -10978,6 +11014,12 @@ }, "tags": [ "policies" + ], + "x-badges": [ + { + "label": "Spacebar-only", + "color": "red" + } ] } }, @@ -10997,6 +11039,12 @@ }, "tags": [ "ping" + ], + "x-badges": [ + { + "label": "Spacebar-only", + "color": "red" + } ] } }, @@ -17243,6 +17291,12 @@ }, "tags": [ "auth" + ], + "x-badges": [ + { + "label": "Spacebar-only", + "color": "red" + } ] } }, @@ -17282,6 +17336,12 @@ }, "tags": [ "auth" + ], + "x-badges": [ + { + "label": "Spacebar-only", + "color": "red" + } ] } }, @@ -17400,6 +17460,12 @@ ], "tags": [ "auth" + ], + "x-badges": [ + { + "label": "Spacebar-only", + "color": "red" + } ] } }, @@ -17883,6 +17949,12 @@ }, "tags": [ "-" + ], + "x-badges": [ + { + "label": "Spacebar-only", + "color": "red" + } ] } }, @@ -17895,6 +17967,12 @@ }, "tags": [ "-" + ], + "x-badges": [ + { + "label": "Spacebar-only", + "color": "red" + } ] } } diff --git a/scripts/openapi.js b/scripts/openapi.js index 225c5175..62623800 100644 --- a/scripts/openapi.js +++ b/scripts/openapi.js @@ -114,7 +114,7 @@ function getTag(key) { return key.match(/\/([\w-]+)/)[1]; } -function apiRoutes() { +function apiRoutes(missingRoutes) { const routes = getRouteDescriptions(); // populate tags @@ -214,6 +214,15 @@ function apiRoutes() { obj.tags = [...(obj.tags || []), getTag(p)].unique(); + if (missingRoutes.additional.includes(path.replace(/\/$/, ""))) { + obj["x-badges"] = [ + { + label: "Spacebar-only", + color: "red", + }, + ]; + } + specification.paths[path] = Object.assign( specification.paths[path] || {}, { @@ -223,10 +232,21 @@ function apiRoutes() { }); } -function main() { +async function main() { console.log("Generating OpenAPI Specification..."); + + const routesRes = await fetch( + "https://github.com/spacebarchat/missing-routes/raw/main/missing.json", + { + headers: { + Accept: "application/json", + }, + }, + ); + const missingRoutes = await routesRes.json(); + combineSchemas(schemas); - apiRoutes(); + apiRoutes(missingRoutes); fs.writeFileSync( openapiPath, From 98c1b93133e3710b4f9afff0dfeffbc3f5cd6a5a Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Wed, 21 Aug 2024 20:50:42 +0200 Subject: [PATCH 27/27] Send 204 regardless of user existance --- src/api/routes/auth/forgot.ts | 66 +++++++---------------------------- 1 file changed, 13 insertions(+), 53 deletions(-) diff --git a/src/api/routes/auth/forgot.ts b/src/api/routes/auth/forgot.ts index 6fa86021..d5a8a2f4 100644 --- a/src/api/routes/auth/forgot.ts +++ b/src/api/routes/auth/forgot.ts @@ -1,31 +1,24 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ import { getIpAdress, route, verifyCaptcha } from "@spacebar/api"; -import { - Config, - Email, - FieldErrors, - ForgotPasswordSchema, - User, -} from "@spacebar/util"; +import { Config, Email, ForgotPasswordSchema, User } from "@spacebar/util"; import { Request, Response, Router } from "express"; -import { HTTPError } from "lambert-server"; const router = Router(); router.post( @@ -37,9 +30,6 @@ router.post( 400: { body: "APIErrorOrCaptchaResponse", }, - 500: { - body: "APIErrorResponse", - }, }, }), async (req: Request, res: Response) => { @@ -71,50 +61,20 @@ router.post( } } - const user = await User.findOneOrFail({ + res.sendStatus(204); + + const user = await User.findOne({ where: [{ phone: login }, { email: login }], - select: ["username", "id", "disabled", "deleted", "email"], - relations: ["security_keys"], - }).catch(() => { - throw FieldErrors({ - login: { - message: req.t("auth:password_reset.EMAIL_DOES_NOT_EXIST"), - code: "EMAIL_DOES_NOT_EXIST", - }, - }); - }); + select: ["username", "id", "email"], + }).catch(() => {}); - if (!user.email) - throw FieldErrors({ - login: { - message: - "This account does not have an email address associated with it.", - code: "NO_EMAIL", - }, - }); - - if (user.deleted) - return res.status(400).json({ - message: "This account is scheduled for deletion.", - code: 20011, - }); - - if (user.disabled) - return res.status(400).json({ - message: req.t("auth:login.ACCOUNT_DISABLED"), - code: 20013, - }); - - return await Email.sendResetPassword(user, user.email) - .then(() => { - return res.sendStatus(204); - }) - .catch((e) => { + if (user && user.email) { + Email.sendResetPassword(user, user.email).catch((e) => { console.error( - `Failed to send password reset email to ${user.username}#${user.discriminator}: ${e}`, + `Failed to send password reset email to ${user.username}#${user.discriminator} (${user.id}): ${e}`, ); - throw new HTTPError("Failed to send password reset email", 500); }); + } }, );