diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cce817f..e545ce4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - uses: pnpm/action-setup@v2 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b669bc2..4542987 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - uses: pnpm/action-setup@v2 with: diff --git a/.vscode/settings.json b/.vscode/settings.json index 9bf4d12..4dc0e66 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,7 @@ { "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true + "editor.formatOnSave": true, + "[typescriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + } } diff --git a/README.md b/README.md index ceac018..1464275 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,12 @@ Also Adds option to login from token on login form. **Do not share your token.** -Direct Download Link: [dev.tharki.Token.asar](https://github.com/Tharki-God/Token/releases/latest/download/dev.tharki.Token.asar) +Direct Download Link: [dev.tharki.Token.asar](https://github.com/YofukashiNo/Token/releases/latest/download/dev.tharki.Token.asar) Install Link: [![Install in Replugged](https://img.shields.io/badge/-Install%20in%20Replugged-blue?style=for-the-badge&logo=none)](https://replugged.dev/install?identifier=dev.tharki.Token) -![image](https://tharki-god.github.io/files-random-host/bdpluginsassets/token.png) +![image](https://YofukashiNo.github.io/files-random-host/bdpluginsassets/token.png) > For issues related to plugin either DM the dev or ask in support server listed below. > diff --git a/manifest.json b/manifest.json index eee68fa..93e623e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,18 +1,18 @@ { - "id": "dev.tharki.Token", - "name": "Token", - "description": "Get an option to copy your token by right clicking on the home button.", - "image": "https://i.imgur.com/2LPLdm3.png", - "source": "https://github.com/Tharki-God/Token", + "id": "dev.tharki.ShowHiddenChannels", + "name": "ShowHiddenChannels", + "description": "A replugged plugin which displays all hidden Channels, which can't be accessed due to Role Restrictions, this won't allow you to read them (impossible).", + "image": "https://i.imgur.com/pE1sQz5.png", + "source": "https://github.com/YofukashiNo/ShowHiddenChannels", "author": { - "name": "Ahlawat", - "discordID": "1025214794766221384", - "github": "Tharki-God" + "name": "Nanakusa", + "discordID": "1121961711080050780", + "github": "YofukashiNo" }, - "version": "1.1.0", + "version": "1.3.5", "updater": { "type": "store", - "id": "dev.tharki.Token" + "id": "dev.tharki.ShowHiddenChannels" }, "license": "MIT", "type": "replugged-plugin", diff --git a/package.json b/package.json index c43830e..876c12d 100644 --- a/package.json +++ b/package.json @@ -15,25 +15,26 @@ "eslint:check": "eslint ./src", "prettier:fix": "prettier ./src --write", "eslint:fix": "eslint ./src --fix", - "lint": "pnpm run prettier:check && pnpm run eslint:check && pnpm run check", + "lint": "pnpm run prettier:check & pnpm run eslint:check & pnpm run check", "lint:fix": "pnpm run prettier:fix && pnpm run eslint:fix" }, "keywords": [], - "author": "Ahlawat", + "author": "Nanakusa", "license": "MIT", "devDependencies": { - "@types/node": "^18.17.6", - "@typescript-eslint/eslint-plugin": "^6.7.0", - "@typescript-eslint/parser": "^6.7.0", - "eslint": "^8.47.0", + "@types/node": "^18.18.6", + "@types/react": "^18.2.31", + "@typescript-eslint/eslint-plugin": "^6.8.0", + "@typescript-eslint/parser": "^6.8.0", + "eslint": "^8.52.0", "eslint-config-dmitmel": "github:dmitmel/eslint-config-dmitmel", "eslint-plugin-node": "^11.1.0", "eslint-plugin-react": "^7.33.2", "prettier": "^2.8.8", - "replugged": "^4.7.4", + "replugged": "^4.7.7", "typescript": "^5.0.0" }, "dependencies": { - "@types/react": "^18.2.20" + "discord-types": "^1.3.3" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2fec615..88f2145 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,38 +5,41 @@ settings: excludeLinksFromLockfile: false dependencies: - '@types/react': - specifier: ^18.2.20 - version: 18.2.20 + discord-types: + specifier: ^1.3.3 + version: 1.3.3 devDependencies: '@types/node': - specifier: ^18.17.6 - version: 18.17.6 + specifier: ^18.18.6 + version: 18.19.26 + '@types/react': + specifier: ^18.2.31 + version: 18.2.70 '@typescript-eslint/eslint-plugin': - specifier: ^6.7.0 - version: 6.9.1(@typescript-eslint/parser@6.9.1)(eslint@8.47.0)(typescript@5.2.2) + specifier: ^6.8.0 + version: 6.9.1(@typescript-eslint/parser@6.9.1)(eslint@8.57.0)(typescript@5.2.2) '@typescript-eslint/parser': - specifier: ^6.7.0 - version: 6.9.1(eslint@8.47.0)(typescript@5.2.2) + specifier: ^6.8.0 + version: 6.9.1(eslint@8.57.0)(typescript@5.2.2) eslint: - specifier: ^8.47.0 - version: 8.47.0 + specifier: ^8.52.0 + version: 8.57.0 eslint-config-dmitmel: specifier: github:dmitmel/eslint-config-dmitmel - version: github.com/dmitmel/eslint-config-dmitmel/d97129ec35235415c6ae6a42299f55cdbb5d75fd(eslint@8.47.0) + version: github.com/dmitmel/eslint-config-dmitmel/d97129ec35235415c6ae6a42299f55cdbb5d75fd(eslint@8.57.0) eslint-plugin-node: specifier: ^11.1.0 - version: 11.1.0(eslint@8.47.0) + version: 11.1.0(eslint@8.57.0) eslint-plugin-react: specifier: ^7.33.2 - version: 7.33.2(eslint@8.47.0) + version: 7.33.2(eslint@8.57.0) prettier: specifier: ^2.8.8 version: 2.8.8 replugged: - specifier: ^4.7.4 - version: 4.7.5(@codemirror/view@6.16.0)(@lezer/common@1.0.4) + specifier: ^4.7.7 + version: 4.7.9(@codemirror/view@6.16.0)(@lezer/common@1.1.0) typescript: specifier: ^5.0.0 version: 5.2.2 @@ -48,7 +51,7 @@ packages: engines: {node: '>=0.10.0'} dev: true - /@codemirror/autocomplete@6.9.0(@codemirror/language@6.9.2)(@codemirror/state@6.3.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4): + /@codemirror/autocomplete@6.9.0(@codemirror/language@6.9.2)(@codemirror/state@6.3.1)(@codemirror/view@6.16.0)(@lezer/common@1.1.0): resolution: {integrity: sha512-Fbwm0V/Wn3BkEJZRhr0hi5BhCo5a7eBL6LYaliPjOSwCyfOpnjXY59HruSxOUNV+1OYer0Tgx1zRNQttjXyDog==} peerDependencies: '@codemirror/language': ^6.0.0 @@ -59,7 +62,7 @@ packages: '@codemirror/language': 6.9.2 '@codemirror/state': 6.3.1 '@codemirror/view': 6.16.0 - '@lezer/common': 1.0.4 + '@lezer/common': 1.1.0 dev: true /@codemirror/commands@6.2.4: @@ -68,16 +71,16 @@ packages: '@codemirror/language': 6.9.2 '@codemirror/state': 6.3.1 '@codemirror/view': 6.16.0 - '@lezer/common': 1.0.4 + '@lezer/common': 1.1.0 dev: true /@codemirror/lang-css@6.2.1(@codemirror/view@6.16.0): resolution: {integrity: sha512-/UNWDNV5Viwi/1lpr/dIXJNWiwDxpw13I4pTUAsNxZdg6E0mI2kTQb0P2iHczg1Tu+H4EBgJR+hYhKiHKko7qg==} dependencies: - '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.2)(@codemirror/state@6.3.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) + '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.2)(@codemirror/state@6.3.1)(@codemirror/view@6.16.0)(@lezer/common@1.1.0) '@codemirror/language': 6.9.2 '@codemirror/state': 6.3.1 - '@lezer/common': 1.0.4 + '@lezer/common': 1.1.0 '@lezer/css': 1.1.3 transitivePeerDependencies: - '@codemirror/view' @@ -141,8 +144,17 @@ packages: minimatch: 3.1.2 dev: true - /@esbuild/android-arm64@0.18.20: - resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} + /@esbuild/aix-ppc64@0.19.12: + resolution: {integrity: sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [aix] + requiresBuild: true + dev: true + optional: true + + /@esbuild/android-arm64@0.19.12: + resolution: {integrity: sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -159,8 +171,8 @@ packages: dev: true optional: true - /@esbuild/android-arm@0.18.20: - resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==} + /@esbuild/android-arm@0.19.12: + resolution: {integrity: sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -177,8 +189,8 @@ packages: dev: true optional: true - /@esbuild/android-x64@0.18.20: - resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==} + /@esbuild/android-x64@0.19.12: + resolution: {integrity: sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -195,8 +207,8 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64@0.18.20: - resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==} + /@esbuild/darwin-arm64@0.19.12: + resolution: {integrity: sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -213,8 +225,8 @@ packages: dev: true optional: true - /@esbuild/darwin-x64@0.18.20: - resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==} + /@esbuild/darwin-x64@0.19.12: + resolution: {integrity: sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -231,8 +243,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64@0.18.20: - resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==} + /@esbuild/freebsd-arm64@0.19.12: + resolution: {integrity: sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -249,8 +261,8 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64@0.18.20: - resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==} + /@esbuild/freebsd-x64@0.19.12: + resolution: {integrity: sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -267,8 +279,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm64@0.18.20: - resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==} + /@esbuild/linux-arm64@0.19.12: + resolution: {integrity: sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -285,8 +297,8 @@ packages: dev: true optional: true - /@esbuild/linux-arm@0.18.20: - resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==} + /@esbuild/linux-arm@0.19.12: + resolution: {integrity: sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -303,8 +315,8 @@ packages: dev: true optional: true - /@esbuild/linux-ia32@0.18.20: - resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==} + /@esbuild/linux-ia32@0.19.12: + resolution: {integrity: sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -321,8 +333,8 @@ packages: dev: true optional: true - /@esbuild/linux-loong64@0.18.20: - resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==} + /@esbuild/linux-loong64@0.19.12: + resolution: {integrity: sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -339,8 +351,8 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el@0.18.20: - resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==} + /@esbuild/linux-mips64el@0.19.12: + resolution: {integrity: sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -357,8 +369,8 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64@0.18.20: - resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==} + /@esbuild/linux-ppc64@0.19.12: + resolution: {integrity: sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -375,8 +387,8 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64@0.18.20: - resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==} + /@esbuild/linux-riscv64@0.19.12: + resolution: {integrity: sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -393,8 +405,8 @@ packages: dev: true optional: true - /@esbuild/linux-s390x@0.18.20: - resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==} + /@esbuild/linux-s390x@0.19.12: + resolution: {integrity: sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -411,8 +423,8 @@ packages: dev: true optional: true - /@esbuild/linux-x64@0.18.20: - resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==} + /@esbuild/linux-x64@0.19.12: + resolution: {integrity: sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -429,8 +441,8 @@ packages: dev: true optional: true - /@esbuild/netbsd-x64@0.18.20: - resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==} + /@esbuild/netbsd-x64@0.19.12: + resolution: {integrity: sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -447,8 +459,8 @@ packages: dev: true optional: true - /@esbuild/openbsd-x64@0.18.20: - resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==} + /@esbuild/openbsd-x64@0.19.12: + resolution: {integrity: sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -465,8 +477,8 @@ packages: dev: true optional: true - /@esbuild/sunos-x64@0.18.20: - resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==} + /@esbuild/sunos-x64@0.19.12: + resolution: {integrity: sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -483,8 +495,8 @@ packages: dev: true optional: true - /@esbuild/win32-arm64@0.18.20: - resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==} + /@esbuild/win32-arm64@0.19.12: + resolution: {integrity: sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -501,8 +513,8 @@ packages: dev: true optional: true - /@esbuild/win32-ia32@0.18.20: - resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==} + /@esbuild/win32-ia32@0.19.12: + resolution: {integrity: sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -519,8 +531,8 @@ packages: dev: true optional: true - /@esbuild/win32-x64@0.18.20: - resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==} + /@esbuild/win32-x64@0.19.12: + resolution: {integrity: sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -537,13 +549,13 @@ packages: dev: true optional: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.47.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.47.0 + eslint: 8.57.0 eslint-visitor-keys: 3.4.3 dev: true @@ -552,8 +564,8 @@ packages: engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true - /@eslint/eslintrc@2.1.2: - resolution: {integrity: sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==} + /@eslint/eslintrc@2.1.4: + resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 @@ -569,16 +581,16 @@ packages: - supports-color dev: true - /@eslint/js@8.47.0: - resolution: {integrity: sha512-P6omY1zv5MItm93kLM8s2vr1HICJH8v0dvddDhysbIuZ+vcjOHg5Zbkf1mTkcmi2JA9oBG2anOkRnW8WJTS8Og==} + /@eslint/js@8.57.0: + resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@humanwhocodes/config-array@0.11.10: - resolution: {integrity: sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==} + /@humanwhocodes/config-array@0.11.14: + resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} engines: {node: '>=10.10.0'} dependencies: - '@humanwhocodes/object-schema': 1.2.1 + '@humanwhocodes/object-schema': 2.0.2 debug: 4.3.4 minimatch: 3.1.2 transitivePeerDependencies: @@ -590,12 +602,8 @@ packages: engines: {node: '>=12.22'} dev: true - /@humanwhocodes/object-schema@1.2.1: - resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} - dev: true - - /@lezer/common@1.0.4: - resolution: {integrity: sha512-lZHlk8p67x4aIDtJl6UQrXSOP6oi7dQR3W/geFVrENdA1JDaAJWldnVqVjPMJupbTKbzDfFcePfKttqVidS/dg==} + /@humanwhocodes/object-schema@2.0.2: + resolution: {integrity: sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==} dev: true /@lezer/common@1.1.0: @@ -612,7 +620,7 @@ packages: /@lezer/highlight@1.1.6: resolution: {integrity: sha512-cmSJYa2us+r3SePpRCjN5ymCqCPv+zyXmDl0ciWtVaNiORT/MxM7ZgOMQZADD0o51qOaOg24qc/zBViOIwAjJg==} dependencies: - '@lezer/common': 1.0.4 + '@lezer/common': 1.1.0 dev: true /@lezer/lr@1.3.10: @@ -788,31 +796,39 @@ packages: resolution: {integrity: sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==} dev: true - /@types/node@18.17.6: - resolution: {integrity: sha512-fGmT/P7z7ecA6bv/ia5DlaWCH4YeZvAQMNpUhrJjtAhOhZfoxS1VLUgU2pdk63efSjQaOJWdXMuAJsws+8I6dg==} + /@types/node@18.19.26: + resolution: {integrity: sha512-+wiMJsIwLOYCvUqSdKTrfkS8mpTp+MPINe6+Np4TAGFWWRWiBQ5kSq9nZGCSPkzx9mvT+uEukzpX4MOSCydcvw==} + dependencies: + undici-types: 5.26.5 dev: true /@types/prop-types@15.7.5: resolution: {integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==} + + /@types/react@17.0.2: + resolution: {integrity: sha512-Xt40xQsrkdvjn1EyWe1Bc0dJLcil/9x2vAuW7ya+PuQip4UYUaXyhzWmAbwRsdMgwOFHpfp7/FFZebDU6Y8VHA==} + dependencies: + '@types/prop-types': 15.7.5 + csstype: 3.1.2 dev: false - /@types/react@18.2.20: - resolution: {integrity: sha512-WKNtmsLWJM/3D5mG4U84cysVY31ivmyw85dE84fOCk5Hx78wezB/XEjVPWl2JTZ5FkEeaTJf+VgUAUn3PE7Isw==} + /@types/react@18.2.70: + resolution: {integrity: sha512-hjlM2hho2vqklPhopNkXkdkeq6Lv8WSZTpr7956zY+3WS5cfYUewtCzsJLsbW5dEv3lfSeQ4W14ZFeKC437JRQ==} dependencies: '@types/prop-types': 15.7.5 '@types/scheduler': 0.16.3 csstype: 3.1.2 - dev: false + dev: true /@types/scheduler@0.16.3: resolution: {integrity: sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==} - dev: false + dev: true /@types/semver@7.5.0: resolution: {integrity: sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==} dev: true - /@typescript-eslint/eslint-plugin@6.9.1(@typescript-eslint/parser@6.9.1)(eslint@8.47.0)(typescript@5.2.2): + /@typescript-eslint/eslint-plugin@6.9.1(@typescript-eslint/parser@6.9.1)(eslint@8.57.0)(typescript@5.2.2): resolution: {integrity: sha512-w0tiiRc9I4S5XSXXrMHOWgHgxbrBn1Ro+PmiYhSg2ZVdxrAJtQgzU5o2m1BfP6UOn7Vxcc6152vFjQfmZR4xEg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -824,13 +840,13 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.6.2 - '@typescript-eslint/parser': 6.9.1(eslint@8.47.0)(typescript@5.2.2) + '@typescript-eslint/parser': 6.9.1(eslint@8.57.0)(typescript@5.2.2) '@typescript-eslint/scope-manager': 6.9.1 - '@typescript-eslint/type-utils': 6.9.1(eslint@8.47.0)(typescript@5.2.2) - '@typescript-eslint/utils': 6.9.1(eslint@8.47.0)(typescript@5.2.2) + '@typescript-eslint/type-utils': 6.9.1(eslint@8.57.0)(typescript@5.2.2) + '@typescript-eslint/utils': 6.9.1(eslint@8.57.0)(typescript@5.2.2) '@typescript-eslint/visitor-keys': 6.9.1 debug: 4.3.4 - eslint: 8.47.0 + eslint: 8.57.0 graphemer: 1.4.0 ignore: 5.2.4 natural-compare: 1.4.0 @@ -841,7 +857,7 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.9.1(eslint@8.47.0)(typescript@5.2.2): + /@typescript-eslint/parser@6.9.1(eslint@8.57.0)(typescript@5.2.2): resolution: {integrity: sha512-C7AK2wn43GSaCUZ9do6Ksgi2g3mwFkMO3Cis96kzmgudoVaKyt62yNzJOktP0HDLb/iO2O0n2lBOzJgr6Q/cyg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -856,7 +872,7 @@ packages: '@typescript-eslint/typescript-estree': 6.9.1(typescript@5.2.2) '@typescript-eslint/visitor-keys': 6.9.1 debug: 4.3.4 - eslint: 8.47.0 + eslint: 8.57.0 typescript: 5.2.2 transitivePeerDependencies: - supports-color @@ -870,7 +886,7 @@ packages: '@typescript-eslint/visitor-keys': 6.9.1 dev: true - /@typescript-eslint/type-utils@6.9.1(eslint@8.47.0)(typescript@5.2.2): + /@typescript-eslint/type-utils@6.9.1(eslint@8.57.0)(typescript@5.2.2): resolution: {integrity: sha512-eh2oHaUKCK58qIeYp19F5V5TbpM52680sB4zNSz29VBQPTWIlE/hCj5P5B1AChxECe/fmZlspAWFuRniep1Skg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -881,9 +897,9 @@ packages: optional: true dependencies: '@typescript-eslint/typescript-estree': 6.9.1(typescript@5.2.2) - '@typescript-eslint/utils': 6.9.1(eslint@8.47.0)(typescript@5.2.2) + '@typescript-eslint/utils': 6.9.1(eslint@8.57.0)(typescript@5.2.2) debug: 4.3.4 - eslint: 8.47.0 + eslint: 8.57.0 ts-api-utils: 1.0.3(typescript@5.2.2) typescript: 5.2.2 transitivePeerDependencies: @@ -916,19 +932,19 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@6.9.1(eslint@8.47.0)(typescript@5.2.2): + /@typescript-eslint/utils@6.9.1(eslint@8.57.0)(typescript@5.2.2): resolution: {integrity: sha512-L1T0A5nFdQrMVunpZgzqPL6y2wVreSyHhKGZryS6jrEN7bD9NplVAyMryUhXsQ4TWLnZmxc2ekar/lSGIlprCA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.47.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) '@types/json-schema': 7.0.12 '@types/semver': 7.5.0 '@typescript-eslint/scope-manager': 6.9.1 '@typescript-eslint/types': 6.9.1 '@typescript-eslint/typescript-estree': 6.9.1(typescript@5.2.2) - eslint: 8.47.0 + eslint: 8.57.0 semver: 7.5.4 transitivePeerDependencies: - supports-color @@ -943,6 +959,10 @@ packages: eslint-visitor-keys: 3.4.3 dev: true + /@ungap/structured-clone@1.2.0: + resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} + dev: true + /acorn-jsx@5.3.2(acorn@8.10.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -1128,10 +1148,6 @@ packages: fill-range: 7.0.1 dev: true - /buffer-from@1.1.2: - resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} - dev: true - /cacheable-lookup@7.0.0: resolution: {integrity: sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==} engines: {node: '>=14.16'} @@ -1192,7 +1208,7 @@ packages: normalize-path: 3.0.0 readdirp: 3.6.0 optionalDependencies: - fsevents: 2.3.2 + fsevents: 2.3.3 dev: true /ci-info@3.8.0: @@ -1214,10 +1230,10 @@ packages: wrap-ansi: 7.0.0 dev: true - /codemirror@6.0.1(@lezer/common@1.0.4): + /codemirror@6.0.1(@lezer/common@1.1.0): resolution: {integrity: sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg==} dependencies: - '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.2)(@codemirror/state@6.3.1)(@codemirror/view@6.16.0)(@lezer/common@1.0.4) + '@codemirror/autocomplete': 6.9.0(@codemirror/language@6.9.2)(@codemirror/state@6.3.1)(@codemirror/view@6.16.0)(@lezer/common@1.1.0) '@codemirror/commands': 6.2.4 '@codemirror/language': 6.9.2 '@codemirror/lint': 6.4.0 @@ -1288,7 +1304,6 @@ packages: /csstype@3.1.2: resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} - dev: false /data-uri-to-buffer@4.0.1: resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==} @@ -1347,6 +1362,13 @@ packages: path-type: 4.0.0 dev: true + /discord-types@1.3.3: + resolution: {integrity: sha512-6LGLIw8RBWKdio7FoIfwExSZQuej2XXDKgT7mfR3qMOpEspknVDFQJcfhPuiD1iy2NdcAygvvVfJMliYwiUwqw==} + dependencies: + '@types/react': 17.0.2 + moment: 2.30.1 + dev: false + /doctrine@2.1.0: resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==} engines: {node: '>=0.10.0'} @@ -1478,34 +1500,35 @@ packages: sass: 1.66.1 dev: true - /esbuild@0.18.20: - resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==} + /esbuild@0.19.12: + resolution: {integrity: sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/android-arm': 0.18.20 - '@esbuild/android-arm64': 0.18.20 - '@esbuild/android-x64': 0.18.20 - '@esbuild/darwin-arm64': 0.18.20 - '@esbuild/darwin-x64': 0.18.20 - '@esbuild/freebsd-arm64': 0.18.20 - '@esbuild/freebsd-x64': 0.18.20 - '@esbuild/linux-arm': 0.18.20 - '@esbuild/linux-arm64': 0.18.20 - '@esbuild/linux-ia32': 0.18.20 - '@esbuild/linux-loong64': 0.18.20 - '@esbuild/linux-mips64el': 0.18.20 - '@esbuild/linux-ppc64': 0.18.20 - '@esbuild/linux-riscv64': 0.18.20 - '@esbuild/linux-s390x': 0.18.20 - '@esbuild/linux-x64': 0.18.20 - '@esbuild/netbsd-x64': 0.18.20 - '@esbuild/openbsd-x64': 0.18.20 - '@esbuild/sunos-x64': 0.18.20 - '@esbuild/win32-arm64': 0.18.20 - '@esbuild/win32-ia32': 0.18.20 - '@esbuild/win32-x64': 0.18.20 + '@esbuild/aix-ppc64': 0.19.12 + '@esbuild/android-arm': 0.19.12 + '@esbuild/android-arm64': 0.19.12 + '@esbuild/android-x64': 0.19.12 + '@esbuild/darwin-arm64': 0.19.12 + '@esbuild/darwin-x64': 0.19.12 + '@esbuild/freebsd-arm64': 0.19.12 + '@esbuild/freebsd-x64': 0.19.12 + '@esbuild/linux-arm': 0.19.12 + '@esbuild/linux-arm64': 0.19.12 + '@esbuild/linux-ia32': 0.19.12 + '@esbuild/linux-loong64': 0.19.12 + '@esbuild/linux-mips64el': 0.19.12 + '@esbuild/linux-ppc64': 0.19.12 + '@esbuild/linux-riscv64': 0.19.12 + '@esbuild/linux-s390x': 0.19.12 + '@esbuild/linux-x64': 0.19.12 + '@esbuild/netbsd-x64': 0.19.12 + '@esbuild/openbsd-x64': 0.19.12 + '@esbuild/sunos-x64': 0.19.12 + '@esbuild/win32-arm64': 0.19.12 + '@esbuild/win32-ia32': 0.19.12 + '@esbuild/win32-x64': 0.19.12 dev: true /esbuild@0.19.5: @@ -1553,25 +1576,25 @@ packages: engines: {node: '>=10'} dev: true - /eslint-plugin-es@3.0.1(eslint@8.47.0): + /eslint-plugin-es@3.0.1(eslint@8.57.0): resolution: {integrity: sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ==} engines: {node: '>=8.10.0'} peerDependencies: eslint: '>=4.19.1' dependencies: - eslint: 8.47.0 + eslint: 8.57.0 eslint-utils: 2.1.0 regexpp: 3.2.0 dev: true - /eslint-plugin-node@11.1.0(eslint@8.47.0): + /eslint-plugin-node@11.1.0(eslint@8.57.0): resolution: {integrity: sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==} engines: {node: '>=8.10.0'} peerDependencies: eslint: '>=5.16.0' dependencies: - eslint: 8.47.0 - eslint-plugin-es: 3.0.1(eslint@8.47.0) + eslint: 8.57.0 + eslint-plugin-es: 3.0.1(eslint@8.57.0) eslint-utils: 2.1.0 ignore: 5.2.4 minimatch: 3.1.2 @@ -1579,7 +1602,7 @@ packages: semver: 6.3.1 dev: true - /eslint-plugin-react@7.33.2(eslint@8.47.0): + /eslint-plugin-react@7.33.2(eslint@8.57.0): resolution: {integrity: sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==} engines: {node: '>=4'} peerDependencies: @@ -1590,7 +1613,7 @@ packages: array.prototype.tosorted: 1.1.1 doctrine: 2.1.0 es-iterator-helpers: 1.0.13 - eslint: 8.47.0 + eslint: 8.57.0 estraverse: 5.3.0 jsx-ast-utils: 3.3.5 minimatch: 3.1.2 @@ -1629,18 +1652,19 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.47.0: - resolution: {integrity: sha512-spUQWrdPt+pRVP1TTJLmfRNJJHHZryFmptzcafwSvHsceV81djHOdnEeDmkdotZyLNjDhrOasNK8nikkoG1O8Q==} + /eslint@8.57.0: + resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.47.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) '@eslint-community/regexpp': 4.6.2 - '@eslint/eslintrc': 2.1.2 - '@eslint/js': 8.47.0 - '@humanwhocodes/config-array': 0.11.10 + '@eslint/eslintrc': 2.1.4 + '@eslint/js': 8.57.0 + '@humanwhocodes/config-array': 0.11.14 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 + '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.3 @@ -1806,14 +1830,6 @@ packages: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} dev: true - /fsevents@2.3.2: - resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - requiresBuild: true - dev: true - optional: true - /fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -2423,6 +2439,10 @@ packages: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} dev: true + /moment@2.30.1: + resolution: {integrity: sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==} + dev: false + /ms@2.1.2: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} dev: true @@ -2709,8 +2729,8 @@ packages: rc: 1.2.8 dev: true - /replugged@4.7.5(@codemirror/view@6.16.0)(@lezer/common@1.0.4): - resolution: {integrity: sha512-BbSKBCS5M6dyObAzxPEGxHjRBZO5vpTaIui/D2zMnigMHlxpLDHC3ITXFcxgD2FJ9Lt3HfayB+1v82ZWZSWfoA==} + /replugged@4.7.9(@codemirror/view@6.16.0)(@lezer/common@1.1.0): + resolution: {integrity: sha512-Eh44KEzXVLRO7UtrZm5mvYXr12KJV4zpifYUEFlNoGaT9mzO598f8WgiMdCQdaUf27bZl+nk6qUngMR4YfkXoA==} engines: {node: '>=18.0.0', pnpm: '>=8.0.0'} hasBin: true requiresBuild: true @@ -2724,7 +2744,7 @@ packages: '@octokit/rest': 20.0.2 adm-zip: 0.5.10 chalk: 5.3.0 - codemirror: 6.0.1(@lezer/common@1.0.4) + codemirror: 6.0.1(@lezer/common@1.1.0) esbuild: 0.19.5 esbuild-sass-plugin: 2.16.0(esbuild@0.19.5) esm: 3.2.25 @@ -2732,7 +2752,7 @@ packages: prompts: 2.4.2 semver: 7.5.4 standalone-electron-types: 1.0.0 - tsx: 3.14.0 + tsx: 4.7.1 update-notifier: 6.0.2 ws: 8.14.2 yargs: 17.7.2 @@ -2900,22 +2920,10 @@ packages: engines: {node: '>=0.10.0'} dev: true - /source-map-support@0.5.21: - resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} - dependencies: - buffer-from: 1.1.2 - source-map: 0.6.1 - dev: true - - /source-map@0.6.1: - resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} - engines: {node: '>=0.10.0'} - dev: true - /standalone-electron-types@1.0.0: resolution: {integrity: sha512-0HOi/tlTz3mjWhsAz4uRbpQcHMZ+ifj1JzWW9nugykOHClBBG77ps8QinrzX1eow4Iw2pnC+RFaSYRgufF4BOg==} dependencies: - '@types/node': 18.17.6 + '@types/node': 18.19.26 dev: true /string-width@4.2.3: @@ -3034,13 +3042,13 @@ packages: typescript: 5.2.2 dev: true - /tsx@3.14.0: - resolution: {integrity: sha512-xHtFaKtHxM9LOklMmJdI3BEnQq/D5F73Of2E1GDrITi9sgoVkvIsrQUTY1G8FlmGtA+awCI4EBlTRRYxkL2sRg==} + /tsx@4.7.1: + resolution: {integrity: sha512-8d6VuibXHtlN5E3zFkgY8u4DX7Y3Z27zvvPKVmLon/D4AjuKzarkUBTLDBgj9iTQ0hg5xM7c/mYiRVM+HETf0g==} + engines: {node: '>=18.0.0'} hasBin: true dependencies: - esbuild: 0.18.20 + esbuild: 0.19.12 get-tsconfig: 4.7.2 - source-map-support: 0.5.21 optionalDependencies: fsevents: 2.3.3 dev: true @@ -3126,6 +3134,10 @@ packages: which-boxed-primitive: 1.0.2 dev: true + /undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + dev: true + /unique-string@3.0.0: resolution: {integrity: sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==} engines: {node: '>=12'} @@ -3320,7 +3332,7 @@ packages: resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==} dev: true - github.com/dmitmel/eslint-config-dmitmel/d97129ec35235415c6ae6a42299f55cdbb5d75fd(eslint@8.47.0): + github.com/dmitmel/eslint-config-dmitmel/d97129ec35235415c6ae6a42299f55cdbb5d75fd(eslint@8.57.0): resolution: {tarball: https://codeload.github.com/dmitmel/eslint-config-dmitmel/tar.gz/d97129ec35235415c6ae6a42299f55cdbb5d75fd} id: github.com/dmitmel/eslint-config-dmitmel/d97129ec35235415c6ae6a42299f55cdbb5d75fd name: eslint-config-dmitmel @@ -3329,5 +3341,5 @@ packages: peerDependencies: eslint: '>=8.17.0' dependencies: - eslint: 8.47.0 + eslint: 8.57.0 dev: true diff --git a/src/Components/Icons.tsx b/src/Components/Icons.tsx index 7834662..cbe9a2c 100644 --- a/src/Components/Icons.tsx +++ b/src/Components/Icons.tsx @@ -1,14 +1,22 @@ -export const auth = (width: number | string, height: number | string): React.ReactElement => ( - +export const auth = ({ + children, + ...props +}: React.SVGProps & { children?: React.ReactNode }): React.ReactElement => ( + + {children} ); + export default { auth }; diff --git a/src/Components/MenuItem.tsx b/src/Components/MenuItem.tsx index 2476af3..0709b5b 100644 --- a/src/Components/MenuItem.tsx +++ b/src/Components/MenuItem.tsx @@ -2,15 +2,15 @@ import { toast as Toasts } from "replugged/common"; import { ContextMenu } from "replugged/components"; import { PluginLogger, SettingValues } from "../index"; import { defaultSettings } from "../lib/consts"; -import { AuthenticationStore, DiscordNative } from "../lib/requiredModules"; +import { AuthenticationStore } from "../lib/requiredModules"; import Icons from "./Icons"; export default ( Icons.auth("20", "20"), - action: () => { + + label= "Copy Token" + id="copy-token" + icon={() => } + action={() => { try { const token = AuthenticationStore.getToken(); if (!token) { @@ -27,7 +27,7 @@ export default ( if (SettingValues.get("showToast", defaultSettings.showToast)) Toasts.toast(`Error: ${error}.`, Toasts.Kind.FAILURE); } - }, - }} + }} + /> ); diff --git a/src/Components/TokenLogin.tsx b/src/Components/TokenLogin.tsx index d1ac556..ff88bbf 100644 --- a/src/Components/TokenLogin.tsx +++ b/src/Components/TokenLogin.tsx @@ -6,48 +6,25 @@ export const TokenLoginForm = (props) => { const handleLogin = () => { if (!token) return; LoginUtils.loginToken(token); - props.onClose(); }; return ( - - - - Login With Token - - + + + Login With Token + setToken(value), - style: { marginBottom: "10px" }, - }} + value={token} + required={false} + placeholder="Token to Login With." + onChange={(value) => setToken(value)} + style={{ marginBottom: "10px" }} /> - @@ -56,12 +33,10 @@ export const TokenLoginForm = (props) => { }; export const TokenLoginLink = ( ModalUtils.openModal((props) => ), - }}> + color={WebAuth.Button.Colors.LINK} + look={WebAuth.Button.Looks.LINK} + className="token-login" + onClick={() => ModalUtils.openModal((props) => )}> Login With Token ); diff --git a/src/index.ts b/src/index.ts index 138a98c..3a25e70 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,16 +8,16 @@ export const PluginInjectorUtils = PluginInjector.utils; export const SettingValues = await settings.init("dev.tharki.Token", defaultSettings); import TokenMenuItem from "./Components/MenuItem"; import HBCM from "./lib/HomeButtonContextMenuApi"; -import applyInjections from "./patches/index"; +import Injections from "./patches/index"; export const start = (): void => { registerSettings(); - HBCM.addItem("Token", TokenMenuItem); - applyInjections(); + HBCM.getAPI().addItem("Token", TokenMenuItem); + Injections.applyInjections(); }; export const stop = (): void => { - HBCM.removeItem("Token"); + HBCM.getAPI().removeItem("Token"); PluginInjector.uninjectAll(); }; diff --git a/src/lib/HomeButtonContextMenuApi.tsx b/src/lib/HomeButtonContextMenuApi.tsx index 20347c6..99b015a 100644 --- a/src/lib/HomeButtonContextMenuApi.tsx +++ b/src/lib/HomeButtonContextMenuApi.tsx @@ -1,7 +1,6 @@ import { contextMenu as ContextMenuApi } from "replugged/common"; import { ContextMenu } from "replugged/components"; -import Types from "../types"; -class HomeButtonContextMenuApi { +export default class HomeButtonContextMenuApi { items: Map; constructor() { this.items = new Map(); @@ -20,25 +19,16 @@ class HomeButtonContextMenuApi { .sort((a, b) => a?.props?.label?.localeCompare(b?.props?.label)) : []; const HomeButtonContextMenu = (props) => ( - + {...HomeButtonContextMenuItems} ); - ContextMenuApi.open(event, (e) => ( - + ContextMenuApi.open(event, (props) => ( + )); } -} - -export default await new Promise((resolve, reject) => { - try { - if (Object.hasOwnProperty.call(window, "HomeButtonContextMenuApi")) - resolve(window.HomeButtonContextMenuApi); - else - window.HomeButtonContextMenuApi = - new HomeButtonContextMenuApi() as Types.HomeButtonContextMenuApi; - resolve(window.HomeButtonContextMenuApi); - } catch (error) { - reject(error); + static getAPI(): HomeButtonContextMenuApi { + window.HomeButtonContextMenuApi ??= new HomeButtonContextMenuApi(); + return window.HomeButtonContextMenuApi; } -}); +} diff --git a/src/lib/requiredModules.ts b/src/lib/requiredModules.ts index 807dd05..38b573e 100644 --- a/src/lib/requiredModules.ts +++ b/src/lib/requiredModules.ts @@ -1,19 +1,11 @@ import { webpack } from "replugged"; import Types from "../types"; -export const NavBarClasses = Object.assign( - {}, - webpack.getByProps("listItem"), - webpack.getByProps("tree", "scroller"), - webpack.getByProps("guilds", "base"), -) as Types.NavBarClasses; + export const AuthenticationStore = webpack.getByProps( "getToken", "getLoginStatus", ); -export const DiscordNative = webpack.getByProps("clipboard", "process"); - -export const LocaleManager = webpack.getByProps("Messages", "_chosenLocale"); export const WebAuth = webpack.getByProps("IncompatibleBrowser"); diff --git a/src/patches/SlashCommand.ts b/src/patches/SlashCommand.ts index 9a77b03..0288ead 100644 --- a/src/patches/SlashCommand.ts +++ b/src/patches/SlashCommand.ts @@ -16,7 +16,7 @@ export default (): void => { ], executor: (interaction) => { try { - const token = AuthenticationStore.getToken() as string; + const token = AuthenticationStore.getToken(); if (!token) { PluginLogger.error(`Whoops! I couldn't find your token.`); return { diff --git a/src/patches/TokenLogin.ts b/src/patches/TokenLogin.ts index eb66437..cd19adc 100644 --- a/src/patches/TokenLogin.ts +++ b/src/patches/TokenLogin.ts @@ -1,22 +1,23 @@ import { util } from "replugged"; import { PluginInjector } from "../index"; -import { LocaleManager, WebAuth } from "../lib/requiredModules"; +import { WebAuth } from "../lib/requiredModules"; import { TokenLoginLink } from "../Components/TokenLogin"; import Types from "../types"; export default (): void => { PluginInjector.before(WebAuth, "default", (args) => { console.log(args); const [props] = args; - const container = util.findInReactTree(props, (c: Types.Tree & React.ReactElement) => - c?.props?.children?.some?.( - (m) => m?.props?.children == LocaleManager.Messages.FORGOT_PASSWORD, + const container = util.findInReactTree(props, (c: Types.ReactTree) => + c?.props?.children?.some?.((m) => + m?.props?.onClick?.toString()?.includes("Messages.EMAIL_VERIFICATION_INSTRUCTIONS_HEADER"), ), - ) as Types.Tree & React.ReactElement; + ) as Types.ReactTree; if (!container) return; - const FPLIndex = container?.props?.children.findIndex( - (m) => m?.props?.children == LocaleManager.Messages.FORGOT_PASSWORD, + const FPLIndex = container?.props?.children.findIndex((m) => + m?.props?.onClick?.toString()?.includes("Messages.EMAIL_VERIFICATION_INSTRUCTIONS_HEADER"), ); - container?.props?.children?.splice(FPLIndex + 1, 0, TokenLoginLink); + if (!container?.props?.children.some((c) => c?.props?.className === "token-login")) + container?.props?.children?.splice(FPLIndex + 1, 0, TokenLoginLink); return args; }); }; diff --git a/src/patches/index.ts b/src/patches/index.ts index d7eb47c..b6610c7 100644 --- a/src/patches/index.ts +++ b/src/patches/index.ts @@ -1,6 +1,7 @@ import addSlashCommand from "./SlashCommand"; import patchTokenLogin from "./TokenLogin"; -export default (): void => { +export const applyInjections = (): void => { addSlashCommand(); patchTokenLogin(); }; +export default { applyInjections }; diff --git a/src/plaintextPatches.ts b/src/plaintextPatches.ts index f7ed184..473ab9f 100644 --- a/src/plaintextPatches.ts +++ b/src/plaintextPatches.ts @@ -1,11 +1,12 @@ -import * as Types from "./types"; +import Types from "./types"; export default [ { find: "Messages.DISCODO_DISABLED", replacements: [ { - match: /},(children.+?"friends-list")/, - replace: `},onContextMenu: HomeButtonContextMenuApi?.openContextMenu,$1`, + match: /},(children.{40,52}?"friends-list")/, + replace: (_, suffix: string) => + `},onContextMenu: window.HomeButtonContextMenuApi?.openContextMenu,${suffix}`, }, ], }, diff --git a/src/style.css b/src/style.css index 4394ba3..c6760cf 100644 --- a/src/style.css +++ b/src/style.css @@ -1,4 +1,5 @@ .token-login-header [class*="close"] { position: absolute; right: 2.25%; + top: 12%; } diff --git a/src/types.ts b/src/types.ts index a12d391..58be195 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,361 +1,299 @@ -import { types as DefaultTypes } from "replugged"; -export { types as DefaultTypes } from "replugged"; -export { Tree } from "replugged/dist/renderer/util"; +import { types } from "replugged"; +import type Util from "replugged/dist/renderer/util"; +import type HBCM from "./lib/HomeButtonContextMenuApi"; +export namespace Types { + export import DefaultTypes = types; + export type ReactTree = Util.Tree & React.ReactElement; + export type GenericModule = Record; + export interface WebAuth { + Button: React.ComponentType<{ + color: string; + look: string; + className: string; + onClick: () => void; + children: string; + }> & { + Colors: { + BLACK: string; + BRAND: string; + BRAND_NEW: string; + CUSTOM: string; + GREEN: string; + LINK: string; + PRIMARY: string; + RED: string; + TRANSPARENT: string; + WHITE: string; + YELLOW: string; + }; + Looks: { + BLANK: string; + FILLED: string; + INVERTED: string; + LINK: string; + OUTLINED: string; + }; + Sizes: { + ICON: string; + LARGE: string; + MAX: string; + MEDIUM: string; + MIN: string; + NONE: string; + SMALL: string; + TINY: string; + XLARGE: string; + }; + }; + IncompatibleBrowser: DefaultTypes.AnyFunction; + default: DefaultTypes.AnyFunction; + } + export enum ModalTransitionState { + ENTERING, + ENTERED, + EXITING, + EXITED, + HIDDEN, + } + export interface TokenLoginModalProps { + token?: undefined | string; + transitionState: ModalTransitionState; + onClose: () => Promise; + } + + export interface LoginUtils { + authorizeIPAddress: DefaultTypes.AnyFunction; + authorizePayment: DefaultTypes.AnyFunction; + forgotPassword: DefaultTypes.AnyFunction; + getExperiments: DefaultTypes.AnyFunction; + getLocationMetadata: DefaultTypes.AnyFunction; + login: DefaultTypes.AnyFunction; + loginMFA: DefaultTypes.AnyFunction; + loginReset: DefaultTypes.AnyFunction; + loginSMS: DefaultTypes.AnyFunction; + loginStatusReset: DefaultTypes.AnyFunction; + loginToken: DefaultTypes.AnyFunction; + logout: DefaultTypes.AnyFunction; + requestSMSToken: DefaultTypes.AnyFunction; + resetPassword: DefaultTypes.AnyFunction; + resetPasswordMFA: DefaultTypes.AnyFunction; + setFingerprint: DefaultTypes.AnyFunction; + setLoginCredentials: DefaultTypes.AnyFunction; + startSession: DefaultTypes.AnyFunction; + switchAccountToken: DefaultTypes.AnyFunction; + verify: DefaultTypes.AnyFunction; + verifyResend: DefaultTypes.AnyFunction; + verifySSOToken: DefaultTypes.AnyFunction; + } + + export interface AuthenticationStore { + allowLogoutRedirect: DefaultTypes.AnyFunction; + didVerifyFail: DefaultTypes.AnyFunction; + didVerifySucceed: DefaultTypes.AnyFunction; + getAnalyticsToken: DefaultTypes.AnyFunction; + getAuthSessionIdHash: DefaultTypes.AnyFunction; + getCredentials: DefaultTypes.AnyFunction; + getCurrentRegistrationOptions: DefaultTypes.AnyFunction; + getEmail: DefaultTypes.AnyFunction; + getErrors: DefaultTypes.AnyFunction; + getFingerprint: DefaultTypes.AnyFunction; + getId: DefaultTypes.AnyFunction; + getLogin: DefaultTypes.AnyFunction; + getLoginStatus: DefaultTypes.AnyFunction; + getMFASMS: DefaultTypes.AnyFunction; + getMFATicket: DefaultTypes.AnyFunction; + getMaskedPhone: DefaultTypes.AnyFunction; + getRegisterStatus: DefaultTypes.AnyFunction; + getSessionId: DefaultTypes.AnyFunction; + getToken: () => string; + getVerifyErrors: DefaultTypes.AnyFunction; + getVerifyingUserId: DefaultTypes.AnyFunction; + getWebAuthnChallenge: DefaultTypes.AnyFunction; + initialize: DefaultTypes.AnyFunction; + isAuthenticated: DefaultTypes.AnyFunction; + } + + export interface Settings { + showToast: boolean; + } +} +export default Types; + declare global { interface Window { - HomeButtonContextMenuApi: HomeButtonContextMenuApi; + HomeButtonContextMenuApi: HBCM; } -} -export interface HomeButtonContextMenuApi { - items?: Map; - constructor?: DefaultTypes.AnyFunction; - addItem?: DefaultTypes.AnyFunction; - removeItem?: DefaultTypes.AnyFunction; - forceUpdate?: DefaultTypes.AnyFunction; - openContextMenu?: DefaultTypes.AnyFunction; -} -export interface NavBarClasses { - activityPanel: string; - badgeIcon: string; - base: string; - circleButtonBase: string; - circleIcon: string; - circleIconButton: string; - container: string; - content: string; - createJoinContainer: string; - downloadProgressCircle: string; - dragInner: string; - errorInner: string; - fullWidth: string; - guildSeparator: string; - guilds: string; - guildsError: string; - hasNotice: string; - hidden: string; - iconBadge: string; - listItem: string; - listItemTooltip: string; - listItemWidth: string; - listItemWrapper: string; - navigationIcon: string; - nitroUpsell: string; - nitroUpsellIcon: string; - panels: string; - participating: string; - pill: string; - placeholderMask: string; - plus: string; - scroller: string; - scrolling: string; - selected: string; - sidebar: string; - tree: string; - tutorialContainer: string; - unavailableBadge: string; - unreadMentionsBar: string; - unreadMentionsIndicatorBottom: string; - unreadMentionsIndicatorTop: string; - upsellIcon: string; - upsellText: string; - upsellTooltip: string; - wrapper: string; -} -export interface WebAuth { - Button: React.ComponentClass & { - Colors: { - BLACK: string; - BRAND: string; - BRAND_NEW: string; - CUSTOM: string; - GREEN: string; - LINK: string; - PRIMARY: string; - RED: string; - TRANSPARENT: string; - WHITE: string; - YELLOW: string; + export const DiscordNative: { + accessibility: { + isAccessibilitySupportEnabled: Types.DefaultTypes.AnyFunction; }; - Looks: { - BLANK: string; - FILLED: string; - INVERTED: string; - LINK: string; - OUTLINED: string; + app: { + dock: { + setBadge: Types.DefaultTypes.AnyFunction; + bounce: Types.DefaultTypes.AnyFunction; + cancelBounce: Types.DefaultTypes.AnyFunction; + }; + getBuildNumber: Types.DefaultTypes.AnyFunction; + getDefaultDoubleClickAction: Types.DefaultTypes.AnyFunction; + getModuleVersions: Types.DefaultTypes.AnyFunction; + getPath: Types.DefaultTypes.AnyFunction; + getReleaseChannel: Types.DefaultTypes.AnyFunction; + getVersion: Types.DefaultTypes.AnyFunction; + registerUserInteractionHandler: Types.DefaultTypes.AnyFunction; + relaunch: Types.DefaultTypes.AnyFunction; + setBadgeCount: Types.DefaultTypes.AnyFunction; }; - Sizes: { - ICON: string; - LARGE: string; - MAX: string; - MEDIUM: string; - MIN: string; - NONE: string; - SMALL: string; - TINY: string; - XLARGE: string; + clipboard: { + copy: Types.DefaultTypes.AnyFunction; + copyImage: Types.DefaultTypes.AnyFunction; + cut: Types.DefaultTypes.AnyFunction; + paste: Types.DefaultTypes.AnyFunction; + read: Types.DefaultTypes.AnyFunction; }; - }; - IncompatibleBrowser: DefaultTypes.AnyFunction; - default: DefaultTypes.AnyFunction; -} -export enum ModalTransitionState { - ENTERING, - ENTERED, - EXITING, - EXITED, - HIDDEN, -} -export interface TokenLoginModalProps { - token?: undefined | string; - transitionState: ModalTransitionState; - onClose: () => Promise; -} -export interface LoginUtils { - authorizeIPAddress: DefaultTypes.AnyFunction; - authorizePayment: DefaultTypes.AnyFunction; - forgotPassword: DefaultTypes.AnyFunction; - getExperiments: DefaultTypes.AnyFunction; - getLocationMetadata: DefaultTypes.AnyFunction; - login: DefaultTypes.AnyFunction; - loginMFA: DefaultTypes.AnyFunction; - loginReset: DefaultTypes.AnyFunction; - loginSMS: DefaultTypes.AnyFunction; - loginStatusReset: DefaultTypes.AnyFunction; - loginToken: DefaultTypes.AnyFunction; - logout: DefaultTypes.AnyFunction; - requestSMSToken: DefaultTypes.AnyFunction; - resetPassword: DefaultTypes.AnyFunction; - resetPasswordMFA: DefaultTypes.AnyFunction; - setFingerprint: DefaultTypes.AnyFunction; - setLoginCredentials: DefaultTypes.AnyFunction; - startSession: DefaultTypes.AnyFunction; - switchAccountToken: DefaultTypes.AnyFunction; - verify: DefaultTypes.AnyFunction; - verifyResend: DefaultTypes.AnyFunction; - verifySSOToken: DefaultTypes.AnyFunction; -} -export interface AuthenticationStore { - allowLogoutRedirect: DefaultTypes.AnyFunction; - didVerifyFail: DefaultTypes.AnyFunction; - didVerifySucceed: DefaultTypes.AnyFunction; - getAnalyticsToken: DefaultTypes.AnyFunction; - getAuthSessionIdHash: DefaultTypes.AnyFunction; - getCredentials: DefaultTypes.AnyFunction; - getCurrentRegistrationOptions: DefaultTypes.AnyFunction; - getEmail: DefaultTypes.AnyFunction; - getErrors: DefaultTypes.AnyFunction; - getFingerprint: DefaultTypes.AnyFunction; - getId: DefaultTypes.AnyFunction; - getLogin: DefaultTypes.AnyFunction; - getLoginStatus: DefaultTypes.AnyFunction; - getMFASMS: DefaultTypes.AnyFunction; - getMFATicket: DefaultTypes.AnyFunction; - getMaskedPhone: DefaultTypes.AnyFunction; - getRegisterStatus: DefaultTypes.AnyFunction; - getSessionId: DefaultTypes.AnyFunction; - getToken: DefaultTypes.AnyFunction; - getVerifyErrors: DefaultTypes.AnyFunction; - getVerifyingUserId: DefaultTypes.AnyFunction; - getWebAuthnChallenge: DefaultTypes.AnyFunction; - initialize: DefaultTypes.AnyFunction; - isAuthenticated: DefaultTypes.AnyFunction; -} -export interface DiscordNative { - accessibility: { - isAccessibilitySupportEnabled: DefaultTypes.AnyFunction; - }; - app: { - dock: { - setBadge: DefaultTypes.AnyFunction; - bounce: DefaultTypes.AnyFunction; - cancelBounce: DefaultTypes.AnyFunction; + clips: { + deleteClip: Types.DefaultTypes.AnyFunction; + loadClip: Types.DefaultTypes.AnyFunction; + loadClipsDirectory: Types.DefaultTypes.AnyFunction; }; - getBuildNumber: DefaultTypes.AnyFunction; - getDefaultDoubleClickAction: DefaultTypes.AnyFunction; - getModuleVersions: DefaultTypes.AnyFunction; - getPath: DefaultTypes.AnyFunction; - getReleaseChannel: DefaultTypes.AnyFunction; - getVersion: DefaultTypes.AnyFunction; - registerUserInteractionHandler: DefaultTypes.AnyFunction; - relaunch: DefaultTypes.AnyFunction; - setBadgeCount: DefaultTypes.AnyFunction; - }; - clipboard: { - copy: DefaultTypes.AnyFunction; - copyImage: DefaultTypes.AnyFunction; - cut: DefaultTypes.AnyFunction; - paste: DefaultTypes.AnyFunction; - read: DefaultTypes.AnyFunction; - }; - clips: { - deleteClip: DefaultTypes.AnyFunction; - loadClip: DefaultTypes.AnyFunction; - loadClipsDirectory: DefaultTypes.AnyFunction; - }; - crashReporter: { - getMetadata: DefaultTypes.AnyFunction; - updateCrashReporter: DefaultTypes.AnyFunction; - }; - desktopCapture: { - getDesktopCaptureSources: DefaultTypes.AnyFunction; - }; - features: { - declareSupported: DefaultTypes.AnyFunction; - supports: DefaultTypes.AnyFunction; - }; - fileManager: { - basename: DefaultTypes.AnyFunction; - cleanupTempFiles: DefaultTypes.AnyFunction; - dirname: DefaultTypes.AnyFunction; - extname: DefaultTypes.AnyFunction; - getModuleDataPathSync: DefaultTypes.AnyFunction; - getModulePath: DefaultTypes.AnyFunction; - join: DefaultTypes.AnyFunction; - openFiles: DefaultTypes.AnyFunction; - readLogFiles: DefaultTypes.AnyFunction; - readTimeSeriesLogFiles: DefaultTypes.AnyFunction; - saveWithDialog: DefaultTypes.AnyFunction; - showItemInFolder: DefaultTypes.AnyFunction; - showOpenDialog: DefaultTypes.AnyFunction; - }; - gpuSettings: { - getEnableHardwareAcceleration: DefaultTypes.AnyFunction; - setEnableHardwareAcceleration: DefaultTypes.AnyFunction; - }; - http: { - getAPIEndpoint: DefaultTypes.AnyFunction; - makeChunkedRequest: DefaultTypes.AnyFunction; - }; - ipc: { - invoke: DefaultTypes.AnyFunction; - on: DefaultTypes.AnyFunction; - send: DefaultTypes.AnyFunction; - }; - isRenderer: boolean; - nativeModules: { - canBootstrapNewUpdater: boolean; - ensureModule: DefaultTypes.AnyFunction; - requireModule: DefaultTypes.AnyFunction; - }; - os: { - arch: string; - release: string; - }; - powerMonitor: { - getSystemIdleTimeMs: DefaultTypes.AnyFunction; - on: DefaultTypes.AnyFunction; - removeAllListeners: DefaultTypes.AnyFunction; - removeListener: DefaultTypes.AnyFunction; - }; - powerSaveBlocker: { - blockDisplaySleep: DefaultTypes.AnyFunction; - cleanupDisplaySleep: DefaultTypes.AnyFunction; - unblockDisplaySleep: DefaultTypes.AnyFunction; - }; - process: { - arch: string; - env: object; - platform: string; - }; - processUtils: { - flushCookies: DefaultTypes.AnyFunction; - flushDNSCache: DefaultTypes.AnyFunction; - flushStorageData: DefaultTypes.AnyFunction; - getCPUCoreCount: DefaultTypes.AnyFunction; - getCurrentCPUUsagePercent: DefaultTypes.AnyFunction; - getCurrentMemoryUsageKB: DefaultTypes.AnyFunction; - getLastCrash: DefaultTypes.AnyFunction; - getMainArgvSync: DefaultTypes.AnyFunction; - purgeMemory: DefaultTypes.AnyFunction; - }; - remoteApp: { - dock: { - setBadge: DefaultTypes.AnyFunction; - bounce: DefaultTypes.AnyFunction; - cancelBounce: DefaultTypes.AnyFunction; + crashReporter: { + getMetadata: Types.DefaultTypes.AnyFunction; + updateCrashReporter: Types.DefaultTypes.AnyFunction; + }; + desktopCapture: { + getDesktopCaptureSources: Types.DefaultTypes.AnyFunction; + }; + features: { + declareSupported: Types.DefaultTypes.AnyFunction; + supports: Types.DefaultTypes.AnyFunction; + }; + fileManager: { + basename: Types.DefaultTypes.AnyFunction; + cleanupTempFiles: Types.DefaultTypes.AnyFunction; + dirname: Types.DefaultTypes.AnyFunction; + extname: Types.DefaultTypes.AnyFunction; + getModuleDataPathSync: Types.DefaultTypes.AnyFunction; + getModulePath: Types.DefaultTypes.AnyFunction; + join: Types.DefaultTypes.AnyFunction; + openFiles: Types.DefaultTypes.AnyFunction; + readLogFiles: Types.DefaultTypes.AnyFunction; + readTimeSeriesLogFiles: Types.DefaultTypes.AnyFunction; + saveWithDialog: Types.DefaultTypes.AnyFunction; + showItemInFolder: Types.DefaultTypes.AnyFunction; + showOpenDialog: Types.DefaultTypes.AnyFunction; + }; + gpuSettings: { + getEnableHardwareAcceleration: Types.DefaultTypes.AnyFunction; + setEnableHardwareAcceleration: Types.DefaultTypes.AnyFunction; + }; + http: { + getAPIEndpoint: Types.DefaultTypes.AnyFunction; + makeChunkedRequest: Types.DefaultTypes.AnyFunction; + }; + ipc: { + invoke: Types.DefaultTypes.AnyFunction; + on: Types.DefaultTypes.AnyFunction; + send: Types.DefaultTypes.AnyFunction; + }; + isRenderer: boolean; + nativeModules: { + canBootstrapNewUpdater: boolean; + ensureModule: Types.DefaultTypes.AnyFunction; + requireModule: Types.DefaultTypes.AnyFunction; + }; + os: { + arch: string; + release: string; + }; + powerMonitor: { + getSystemIdleTimeMs: Types.DefaultTypes.AnyFunction; + on: Types.DefaultTypes.AnyFunction; + removeAllListeners: Types.DefaultTypes.AnyFunction; + removeListener: Types.DefaultTypes.AnyFunction; + }; + powerSaveBlocker: { + blockDisplaySleep: Types.DefaultTypes.AnyFunction; + cleanupDisplaySleep: Types.DefaultTypes.AnyFunction; + unblockDisplaySleep: Types.DefaultTypes.AnyFunction; + }; + process: { + arch: string; + env: object; + platform: string; + }; + processUtils: { + flushCookies: Types.DefaultTypes.AnyFunction; + flushDNSCache: Types.DefaultTypes.AnyFunction; + flushStorageData: Types.DefaultTypes.AnyFunction; + getCPUCoreCount: Types.DefaultTypes.AnyFunction; + getCurrentCPUUsagePercent: Types.DefaultTypes.AnyFunction; + getCurrentMemoryUsageKB: Types.DefaultTypes.AnyFunction; + getLastCrash: Types.DefaultTypes.AnyFunction; + getMainArgvSync: Types.DefaultTypes.AnyFunction; + purgeMemory: Types.DefaultTypes.AnyFunction; + }; + remoteApp: { + dock: { + setBadge: Types.DefaultTypes.AnyFunction; + bounce: Types.DefaultTypes.AnyFunction; + cancelBounce: Types.DefaultTypes.AnyFunction; + }; + getBuildNumber: Types.DefaultTypes.AnyFunction; + getDefaultDoubleClickAction: Types.DefaultTypes.AnyFunction; + getModuleVersions: Types.DefaultTypes.AnyFunction; + getPath: Types.DefaultTypes.AnyFunction; + getReleaseChannel: Types.DefaultTypes.AnyFunction; + getVersion: Types.DefaultTypes.AnyFunction; + registerUserInteractionHandler: Types.DefaultTypes.AnyFunction; + relaunch: Types.DefaultTypes.AnyFunction; + setBadgeCount: Types.DefaultTypes.AnyFunction; + }; + remotePowerMonitor: { + getSystemIdleTimeMs: Types.DefaultTypes.AnyFunction; + on: Types.DefaultTypes.AnyFunction; + removeAllListeners: Types.DefaultTypes.AnyFunction; + removeListener: Types.DefaultTypes.AnyFunction; + }; + safeStorage: { + decryptString: Types.DefaultTypes.AnyFunction; + encryptString: Types.DefaultTypes.AnyFunction; + isEncryptionAvailable: Types.DefaultTypes.AnyFunction; + }; + setUncaughtExceptionHandler: Types.DefaultTypes.AnyFunction; + settings: { + get: Types.DefaultTypes.AnyFunction; + getSync: Types.DefaultTypes.AnyFunction; + set: Types.DefaultTypes.AnyFunction; + }; + spellCheck: { + getAvailableDictionaries: Types.DefaultTypes.AnyFunction; + on: Types.DefaultTypes.AnyFunction; + removeListener: Types.DefaultTypes.AnyFunction; + replaceMisspelling: Types.DefaultTypes.AnyFunction; + setLearnedWords: Types.DefaultTypes.AnyFunction; + setLocale: Types.DefaultTypes.AnyFunction; + }; + thumbar: { setThumbarButtons: Types.DefaultTypes.AnyFunction }; + userDataCache: { + cacheUserData: Types.DefaultTypes.AnyFunction; + deleteCache: Types.DefaultTypes.AnyFunction; + getCached: Types.DefaultTypes.AnyFunction; + }; + window: { + USE_OSX_NATIVE_TRAFFIC_LIGHTS: boolean; + blur: Types.DefaultTypes.AnyFunction; + close: Types.DefaultTypes.AnyFunction; + flashFrame: Types.DefaultTypes.AnyFunction; + focus: Types.DefaultTypes.AnyFunction; + fullscreen: Types.DefaultTypes.AnyFunction; + isAlwaysOnTop: Types.DefaultTypes.AnyFunction; + maximize: Types.DefaultTypes.AnyFunction; + minimize: Types.DefaultTypes.AnyFunction; + restore: Types.DefaultTypes.AnyFunction; + setAlwaysOnTop: Types.DefaultTypes.AnyFunction; + setBackgroundThrottling: Types.DefaultTypes.AnyFunction; + setDevtoolsCallbacks: Types.DefaultTypes.AnyFunction; + setProgressBar: Types.DefaultTypes.AnyFunction; + setZoomFactor: Types.DefaultTypes.AnyFunction; }; - getBuildNumber: DefaultTypes.AnyFunction; - getDefaultDoubleClickAction: DefaultTypes.AnyFunction; - getModuleVersions: DefaultTypes.AnyFunction; - getPath: DefaultTypes.AnyFunction; - getReleaseChannel: DefaultTypes.AnyFunction; - getVersion: DefaultTypes.AnyFunction; - registerUserInteractionHandler: DefaultTypes.AnyFunction; - relaunch: DefaultTypes.AnyFunction; - setBadgeCount: DefaultTypes.AnyFunction; - }; - remotePowerMonitor: { - getSystemIdleTimeMs: DefaultTypes.AnyFunction; - on: DefaultTypes.AnyFunction; - removeAllListeners: DefaultTypes.AnyFunction; - removeListener: DefaultTypes.AnyFunction; - }; - safeStorage: { - decryptString: DefaultTypes.AnyFunction; - encryptString: DefaultTypes.AnyFunction; - isEncryptionAvailable: DefaultTypes.AnyFunction; - }; - setUncaughtExceptionHandler: DefaultTypes.AnyFunction; - settings: { - get: DefaultTypes.AnyFunction; - getSync: DefaultTypes.AnyFunction; - set: DefaultTypes.AnyFunction; - }; - spellCheck: { - getAvailableDictionaries: DefaultTypes.AnyFunction; - on: DefaultTypes.AnyFunction; - removeListener: DefaultTypes.AnyFunction; - replaceMisspelling: DefaultTypes.AnyFunction; - setLearnedWords: DefaultTypes.AnyFunction; - setLocale: DefaultTypes.AnyFunction; - }; - thumbar: { setThumbarButtons: DefaultTypes.AnyFunction }; - userDataCache: { - cacheUserData: DefaultTypes.AnyFunction; - deleteCache: DefaultTypes.AnyFunction; - getCached: DefaultTypes.AnyFunction; - }; - window: { - USE_OSX_NATIVE_TRAFFIC_LIGHTS: boolean; - blur: DefaultTypes.AnyFunction; - close: DefaultTypes.AnyFunction; - flashFrame: DefaultTypes.AnyFunction; - focus: DefaultTypes.AnyFunction; - fullscreen: DefaultTypes.AnyFunction; - isAlwaysOnTop: DefaultTypes.AnyFunction; - maximize: DefaultTypes.AnyFunction; - minimize: DefaultTypes.AnyFunction; - restore: DefaultTypes.AnyFunction; - setAlwaysOnTop: DefaultTypes.AnyFunction; - setBackgroundThrottling: DefaultTypes.AnyFunction; - setDevtoolsCallbacks: DefaultTypes.AnyFunction; - setProgressBar: DefaultTypes.AnyFunction; - setZoomFactor: DefaultTypes.AnyFunction; }; } -export interface LocaleManager { - Messages: DefaultTypes.ObjectExports; - loadPromise: DefaultTypes.ObjectExports; - _chosenLocale: string; - _events: DefaultTypes.ObjectExports; - _eventsCount: number; - _getMessages: DefaultTypes.AnyFunction; - _getParsedMessages: DefaultTypes.AnyFunction; - _handleNewListener: DefaultTypes.AnyFunction; - _languages: Array<{ - code: string; - enabled: boolean; - englishName: string; - name: string; - postgresLang: string; - }>; - _maxListeners: undefined | string; - _provider: DefaultTypes.ObjectExports; - _requestedLocale: string; -} -export interface GenericModule extends Record {} -export interface Settings { - showToast: boolean; -} - -export * as default from "./types";