diff --git a/package.json b/package.json index d7e6e30..6afb732 100644 --- a/package.json +++ b/package.json @@ -34,30 +34,30 @@ "pnpm": ">=9" }, "dependencies": { - "@prisma/client": "^5.18.0", - "@sapphire/discord.js-utilities": "^7.3.0", - "@sapphire/framework": "^5.2.1", + "@prisma/client": "^5.22.0", + "@sapphire/discord.js-utilities": "^7.3.2", + "@sapphire/framework": "^5.3.2", "@sapphire/plugin-logger": "^4.0.2", - "@sapphire/plugin-scheduled-tasks": "^10.0.1", + "@sapphire/plugin-scheduled-tasks": "^10.0.2", "@sapphire/plugin-subcommands": "^6.0.3", - "@sapphire/stopwatch": "^1.5.2", - "@sapphire/time-utilities": "^1.7.12", + "@sapphire/stopwatch": "^1.5.4", + "@sapphire/time-utilities": "^1.7.14", "@sapphire/ts-config": "^5.0.1", - "@sapphire/utilities": "^3.17.0", - "bullmq": "^5.12.10", - "discord.js": "^14.15.3", - "ioredis": "^5.4.1", + "@sapphire/utilities": "^3.18.1", + "bullmq": "^5.34.10", + "discord.js": "^14.17.3", + "ioredis": "^5.4.2", "ts-node": "^10.9.2", "typescript": "~5.4.5" }, "devDependencies": { - "@types/node": "^20.16.1", + "@types/node": "^20.17.13", "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.21.0", "eslint": "8.56.0", "eslint-config-prettier": "^9.1.0", "prettier": "3.2.4", - "prisma": "^5.18.0" + "prisma": "^5.22.0" }, "packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 25fcf79..de18e28 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,54 +9,54 @@ importers: .: dependencies: '@prisma/client': - specifier: ^5.18.0 - version: 5.18.0(prisma@5.18.0) + specifier: ^5.22.0 + version: 5.22.0(prisma@5.22.0) '@sapphire/discord.js-utilities': - specifier: ^7.3.0 - version: 7.3.0 + specifier: ^7.3.2 + version: 7.3.2 '@sapphire/framework': - specifier: ^5.2.1 - version: 5.2.1 + specifier: ^5.3.2 + version: 5.3.2 '@sapphire/plugin-logger': specifier: ^4.0.2 version: 4.0.2 '@sapphire/plugin-scheduled-tasks': - specifier: ^10.0.1 - version: 10.0.1 + specifier: ^10.0.2 + version: 10.0.2 '@sapphire/plugin-subcommands': specifier: ^6.0.3 version: 6.0.3 '@sapphire/stopwatch': - specifier: ^1.5.2 - version: 1.5.2 + specifier: ^1.5.4 + version: 1.5.4 '@sapphire/time-utilities': - specifier: ^1.7.12 - version: 1.7.12 + specifier: ^1.7.14 + version: 1.7.14 '@sapphire/ts-config': specifier: ^5.0.1 version: 5.0.1 '@sapphire/utilities': - specifier: ^3.17.0 - version: 3.17.0 + specifier: ^3.18.1 + version: 3.18.1 bullmq: - specifier: ^5.12.10 - version: 5.12.10 + specifier: ^5.34.10 + version: 5.34.10 discord.js: - specifier: ^14.15.3 - version: 14.15.3 + specifier: ^14.17.3 + version: 14.17.3 ioredis: - specifier: ^5.4.1 - version: 5.4.1 + specifier: ^5.4.2 + version: 5.4.2 ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@20.16.1)(typescript@5.4.5) + version: 10.9.2(@types/node@20.17.13)(typescript@5.4.5) typescript: specifier: ~5.4.5 version: 5.4.5 devDependencies: '@types/node': - specifier: ^20.16.1 - version: 20.16.1 + specifier: ^20.17.13 + version: 20.17.13 '@typescript-eslint/eslint-plugin': specifier: ^6.21.0 version: 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.56.0)(typescript@5.4.5))(eslint@8.56.0)(typescript@5.4.5) @@ -73,8 +73,8 @@ importers: specifier: 3.2.4 version: 3.2.4 prisma: - specifier: ^5.18.0 - version: 5.18.0 + specifier: ^5.22.0 + version: 5.22.0 packages: @@ -82,42 +82,42 @@ packages: resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} - '@discordjs/builders@1.8.2': - resolution: {integrity: sha512-6wvG3QaCjtMu0xnle4SoOIeFB4y6fKMN6WZfy3BMKJdQQtPLik8KGzDwBVL/+wTtcE/ZlFjgEk74GublyEVZ7g==} + '@discordjs/builders@1.10.0': + resolution: {integrity: sha512-ikVZsZP+3shmVJ5S1oM+7SveUCK3L9fTyfA8aJ7uD9cNQlTqF+3Irbk2Y22KXTb3C3RNUahRkSInClJMkHrINg==} engines: {node: '>=16.11.0'} '@discordjs/collection@1.5.3': resolution: {integrity: sha512-SVb428OMd3WO1paV3rm6tSjM4wC+Kecaa1EUGX7vc6/fddvw/6lg90z4QtCqm21zvVe92vMMDt9+DkIvjXImQQ==} engines: {node: '>=16.11.0'} - '@discordjs/collection@2.1.0': - resolution: {integrity: sha512-mLcTACtXUuVgutoznkh6hS3UFqYirDYAg5Dc1m8xn6OvPjetnUlf/xjtqnnc47OwWdaoCQnHmHh9KofhD6uRqw==} + '@discordjs/collection@2.1.1': + resolution: {integrity: sha512-LiSusze9Tc7qF03sLCujF5iZp7K+vRNEDBZ86FT9aQAv3vxMLihUvKvpsCWiQ2DJq1tVckopKm1rxomgNUc9hg==} engines: {node: '>=18'} - '@discordjs/formatters@0.4.0': - resolution: {integrity: sha512-fJ06TLC1NiruF35470q3Nr1bi95BdvKFAF+T5bNfZJ4bNdqZ3VZ+Ttg6SThqTxm6qumSG3choxLBHMC69WXNXQ==} + '@discordjs/formatters@0.6.0': + resolution: {integrity: sha512-YIruKw4UILt/ivO4uISmrGq2GdMY6EkoTtD0oS0GvkJFRZbTSdPhzYiUILbJ/QslsvC9H9nTgGgnarnIl4jMfw==} engines: {node: '>=16.11.0'} - '@discordjs/rest@2.3.0': - resolution: {integrity: sha512-C1kAJK8aSYRv3ZwMG8cvrrW4GN0g5eMdP8AuN8ODH5DyOCbHgJspze1my3xHOAgwLJdKUbWNVyAeJ9cEdduqIg==} + '@discordjs/rest@2.4.2': + resolution: {integrity: sha512-9bOvXYLQd5IBg/kKGuEFq3cstVxAMJ6wMxO2U3wjrgO+lHv8oNCT+BBRpuzVQh7BoXKvk/gpajceGvQUiRoJ8g==} + engines: {node: '>=18'} + + '@discordjs/util@1.1.1': + resolution: {integrity: sha512-eddz6UnOBEB1oITPinyrB2Pttej49M9FZQY8NxgEvc3tq6ZICZ19m70RsmzRdDHk80O9NoYN/25AqJl8vPVf/g==} + engines: {node: '>=18'} + + '@discordjs/ws@1.2.0': + resolution: {integrity: sha512-QH5CAFe3wHDiedbO+EI3OOiyipwWd+Q6BdoFZUw/Wf2fw5Cv2fgU/9UEtJRmJa9RecI+TAhdGPadMaEIur5yJg==} engines: {node: '>=16.11.0'} - '@discordjs/util@1.1.0': - resolution: {integrity: sha512-IndcI5hzlNZ7GS96RV3Xw1R2kaDuXEp7tRIy/KlhidpN/BQ1qh1NZt3377dMLTa44xDUNKT7hnXkA/oUAzD/lg==} - engines: {node: '>=16.11.0'} - - '@discordjs/ws@1.1.1': - resolution: {integrity: sha512-PZ+vLpxGCRtmr2RMkqh8Zp+BenUaJqlS6xhgWKEZcgC/vfHLEzpHtKkB0sl3nZWpwtcKk6YWy+pU3okL2I97FA==} - engines: {node: '>=16.11.0'} - - '@eslint-community/eslint-utils@4.4.0': - resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + '@eslint-community/eslint-utils@4.4.1': + resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 - '@eslint-community/regexpp@4.11.0': - resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + '@eslint-community/regexpp@4.12.1': + resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} '@eslint/eslintrc@2.1.4': @@ -196,8 +196,8 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@prisma/client@5.18.0': - resolution: {integrity: sha512-BWivkLh+af1kqC89zCJYkHsRcyWsM8/JHpsDMM76DjP3ZdEquJhXa4IeX+HkWPnwJ5FanxEJFZZDTWiDs/Kvyw==} + '@prisma/client@5.22.0': + resolution: {integrity: sha512-M0SVXfyHnQREBKxCgyo7sffrKttwE6R8PMq330MIUF0pTwjUhLbW84pFDlf06B27XyCR++VtjugEnIHdr07SVA==} engines: {node: '>=16.13'} peerDependencies: prisma: '*' @@ -205,47 +205,47 @@ packages: prisma: optional: true - '@prisma/debug@5.18.0': - resolution: {integrity: sha512-f+ZvpTLidSo3LMJxQPVgAxdAjzv5OpzAo/eF8qZqbwvgi2F5cTOI9XCpdRzJYA0iGfajjwjOKKrVq64vkxEfUw==} + '@prisma/debug@5.22.0': + resolution: {integrity: sha512-AUt44v3YJeggO2ZU5BkXI7M4hu9BF2zzH2iF2V5pyXT/lRTyWiElZ7It+bRH1EshoMRxHgpYg4VB6rCM+mG5jQ==} - '@prisma/engines-version@5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169': - resolution: {integrity: sha512-a/+LpJj8vYU3nmtkg+N3X51ddbt35yYrRe8wqHTJtYQt7l1f8kjIBcCs6sHJvodW/EK5XGvboOiwm47fmNrbgg==} + '@prisma/engines-version@5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2': + resolution: {integrity: sha512-2PTmxFR2yHW/eB3uqWtcgRcgAbG1rwG9ZriSvQw+nnb7c4uCr3RAcGMb6/zfE88SKlC1Nj2ziUvc96Z379mHgQ==} - '@prisma/engines@5.18.0': - resolution: {integrity: sha512-ofmpGLeJ2q2P0wa/XaEgTnX/IsLnvSp/gZts0zjgLNdBhfuj2lowOOPmDcfKljLQUXMvAek3lw5T01kHmCG8rg==} + '@prisma/engines@5.22.0': + resolution: {integrity: sha512-UNjfslWhAt06kVL3CjkuYpHAWSO6L4kDCVPegV6itt7nD1kSJavd3vhgAEhjglLJJKEdJ7oIqDJ+yHk6qO8gPA==} - '@prisma/fetch-engine@5.18.0': - resolution: {integrity: sha512-I/3u0x2n31rGaAuBRx2YK4eB7R/1zCuayo2DGwSpGyrJWsZesrV7QVw7ND0/Suxeo/vLkJ5OwuBqHoCxvTHpOg==} + '@prisma/fetch-engine@5.22.0': + resolution: {integrity: sha512-bkrD/Mc2fSvkQBV5EpoFcZ87AvOgDxbG99488a5cexp5Ccny+UM6MAe/UFkUC0wLYD9+9befNOqGiIJhhq+HbA==} - '@prisma/get-platform@5.18.0': - resolution: {integrity: sha512-Tk+m7+uhqcKDgnMnFN0lRiH7Ewea0OEsZZs9pqXa7i3+7svS3FSCqDBCaM9x5fmhhkufiG0BtunJVDka+46DlA==} + '@prisma/get-platform@5.22.0': + resolution: {integrity: sha512-pHhpQdr1UPFpt+zFfnPazhulaZYCUqeIcPpJViYoq9R+D/yw4fjE+CtnsnKzPYm0ddUbeXUzjGVGIRVgPDCk4Q==} - '@sapphire/async-queue@1.5.3': - resolution: {integrity: sha512-x7zadcfJGxFka1Q3f8gCts1F0xMwCKbZweM85xECGI0hBTeIZJGGCrHgLggihBoprlQ/hBmDR5LKfIPqnmHM3w==} + '@sapphire/async-queue@1.5.5': + resolution: {integrity: sha512-cvGzxbba6sav2zZkH8GPf2oGk9yYoD5qrNWdu9fRehifgnFZJMV+nuy2nON2roRO4yQQ+v7MK/Pktl/HgfsUXg==} engines: {node: '>=v14.0.0', npm: '>=7.0.0'} - '@sapphire/cron@1.1.3': - resolution: {integrity: sha512-Sc0ebl3aD6RNUx4WkWgBOucI/azyVYGBpmO8oLnyCX6GBtF+YSQv8jODQ2sf/szkimhqTXrFYk6pEhA74CGtYg==} + '@sapphire/cron@1.2.1': + resolution: {integrity: sha512-K96GX4UkzgC/Y2VHXVjhM2Bl4D04552nr/fDiOj9bOACW1+wqeFfLJ3eV6jleTSXmzPIwDvkPIUJLf8A5KSD+w==} engines: {node: '>=v14.0.0', npm: '>=7.0.0'} - '@sapphire/discord-utilities@3.3.0': - resolution: {integrity: sha512-xHAe22GSM4NjhNiyZ/5gwEF+uFDPHSrZABWypPGDUIK+CNDDPyPf56ooUb8cm02dVcU81wzscnRXK2cLY6RPcg==} + '@sapphire/discord-utilities@3.4.4': + resolution: {integrity: sha512-P7bCL5U2s+U5oy9OFpC4lr4Y0bGoNrSCPu2bgxP9AaqK90hcwpoLWWKouvGgaY9tCbUZmaf8E98/SlZZoakhAQ==} engines: {node: '>=v14.0.0', npm: '>=7.0.0'} - '@sapphire/discord.js-utilities@7.3.0': - resolution: {integrity: sha512-SOacsoV8eqPz0YqyXwNNZChNhz09QEhTrrGm+rnG+xZbglODtnoYmEgmLIemr2t6eyxPRerwhakacfyNYGapVg==} + '@sapphire/discord.js-utilities@7.3.2': + resolution: {integrity: sha512-eEs6SjZghc7SlSRfirXzfJNy7sT9VxBtX32Zz33u8sxVq2X2/W6++klmDuIi6LSLrcsAlo9xWxcR+lL0pdaIEQ==} engines: {node: '>=16.6.0', npm: '>=7.0.0'} - '@sapphire/duration@1.1.2': - resolution: {integrity: sha512-m+DpXedUHdnH3rM6P9Hiyb9dpdXKb8WeTAVIug0QuN8tarQedbymbOor+UFmBfCbKOkoW9HvGK10xDwDvSfKrw==} + '@sapphire/duration@1.1.4': + resolution: {integrity: sha512-hxtuE8HvmWcRok2A10lJ+ic8qY0oYGTTn44XmESUYJYYSVJWmqlCH1LnNYi6Ul+LRjxNUfFQEL/TJS0GJ+8kew==} engines: {node: '>=v14.0.0', npm: '>=7.0.0'} - '@sapphire/framework@5.2.1': - resolution: {integrity: sha512-47V3BPe3On3SB+Mbdb4eWPnKfNKV5Js1rLUyt+74WUY+MsS2Utja6Y26gswqk+GW3jqiX67tWTnIK3els+PVsw==} + '@sapphire/framework@5.3.2': + resolution: {integrity: sha512-1DU8Lm57mnbcRgchd9ucbpWA5Yfy7TFOaA+m7zdlKlKUa2NzDUJW1XiTnChfcZUI1SDA0uaikh6u7gaN0zRX5Q==} engines: {node: '>=v18', npm: '>=7'} - '@sapphire/lexure@1.1.7': - resolution: {integrity: sha512-6PqU2/V+w1k4DHbZ8erIH+iaT/kAmLfReiWNUURt1akfrPTWqlVYWfuxkHXF0JMPk53r4NIkZoitiWwGUtPF+Q==} + '@sapphire/lexure@1.1.10': + resolution: {integrity: sha512-odE4FD0SkCxkwEOhzAOqEnCJ/oJlPUuyFEw2KJacIuGiwY86WRTPIHLg1rt6XmfSYLxGXiqRf74req43+wRV9g==} engines: {node: '>=v14.0.0', npm: '>=7.0.0'} '@sapphire/pieces@4.3.1': @@ -256,52 +256,52 @@ packages: resolution: {integrity: sha512-5Nr++u+fA3/jZwj1aL9Z16RgyJZRE1gyUftfWjrzdndE5FkcbnLiVCKvnI8WzSupVhdn6kMaCWAteOSgAaq3lQ==} engines: {node: '>=v18', npm: '>=7'} - '@sapphire/plugin-scheduled-tasks@10.0.1': - resolution: {integrity: sha512-/wS4mlyh5oRo3ADmkDEywNyb0hdUUJuudc5Nz9kuYWSpYZMWhecI24N6m8i4ktMdclLriV+ppW3jxZzGyD22LQ==} + '@sapphire/plugin-scheduled-tasks@10.0.2': + resolution: {integrity: sha512-MIcRaZAJTJtFXyy14yYO/LMROYp2YbJlvb/0zlgWutNhCz0TcbZ50gVyers1SKnoQI04ZdL87iRYQjRIbLtZPQ==} engines: {node: '>=v18', npm: '>=7'} '@sapphire/plugin-subcommands@6.0.3': resolution: {integrity: sha512-SLDlTjMrMpb3s89ZjrBvVbMWsXfNNciO6SnNQdKLKTUQwktaYxIdj+k3MmEWpN19i8W9ogRvIrLl0Hw20pPUng==} engines: {node: '>=v18', npm: '>=7'} - '@sapphire/ratelimits@2.4.9': - resolution: {integrity: sha512-eEE385IrFsD90gg696MWNqbeDjo1ZgtBvL66BezIwJEwDguhLP5AVsBsT4uCacX/92aeHl8i2nVvtusIBXZNSg==} + '@sapphire/ratelimits@2.4.11': + resolution: {integrity: sha512-O6FNA/P0wxU4Ve9gxL948CoZw7+sSpujyUR2CLyLLCNuNvuFGFxPCJVl5crFVLXMIyBIrc2qk+/H9bsqsyQK1Q==} engines: {node: '>=v14.0.0', npm: '>=7.0.0'} - '@sapphire/result@2.6.6': - resolution: {integrity: sha512-QCjj7X/QlY0QUCeAaZQmnrsMH/b2BMQYee3F1Y5iF17JagUQqO3KZlG7vfXWQU3SRAJX5OgZZynBjixUH+nNGg==} + '@sapphire/result@2.7.2': + resolution: {integrity: sha512-DJbCGmvi8UZAu/hh85auQL8bODFlpcS3cWjRJZ5/cXTLekmGvs/CrRxrIzwbA6+poyYojo5rK4qu8trmjfneog==} engines: {node: '>=v14.0.0', npm: '>=7.0.0'} - '@sapphire/shapeshift@3.9.7': - resolution: {integrity: sha512-4It2mxPSr4OGn4HSQWGmhFMsNFGfFVhWeRPCRwbH972Ek2pzfGRZtb0pJ4Ze6oIzcyh2jw7nUDa6qGlWofgd9g==} + '@sapphire/shapeshift@4.0.0': + resolution: {integrity: sha512-d9dUmWVA7MMiKobL3VpLF8P2aeanRTu6ypG2OIaEv/ZHH/SUQ2iHOVyi5wAPjQ+HmnMuL0whK9ez8I/raWbtIg==} engines: {node: '>=v16'} '@sapphire/snowflake@3.5.3': resolution: {integrity: sha512-jjmJywLAFoWeBi1W7994zZyiNWPIiqRRNAmSERxyg93xRGzNYvGjlZ0gR6x0F4gPRi2+0O6S71kOZYyr3cxaIQ==} engines: {node: '>=v14.0.0', npm: '>=7.0.0'} - '@sapphire/stopwatch@1.5.2': - resolution: {integrity: sha512-FrR1GnaEIuXpEfnaz7DjNgoN/Cp8dJ5XFgb8CxXTCAJi8LYk0YsyGSdmmcs9R3ZNZrA1vOSv0dFVLitgiVA36Q==} + '@sapphire/stopwatch@1.5.4': + resolution: {integrity: sha512-IVI48D2yAz411bSttXyTkBH0p2vhrXoqWLn5loDDSAAEUGkM1r5KNCX2027ifQ8svdoMkUfIGjFueR+satLeWw==} engines: {node: '>=v14.0.0', npm: '>=7.0.0'} - '@sapphire/time-utilities@1.7.12': - resolution: {integrity: sha512-naqA2CxIseXyAx3OnzB1dW8b9iEsUJHzzlXs4QCBmssQ28nRTfuPSE86c/ELfLGr6f+S0Sca2dxUwTsL5Wf8MQ==} + '@sapphire/time-utilities@1.7.14': + resolution: {integrity: sha512-UVJQ9oyzXcmJVVf9Y9ucGzRmKoPxe6SehpQlBNTX7CTVu0aj1lrEGL+bBa0Mu7hxF5DYXYjDYeO1e5BR0eg90Q==} engines: {node: '>=v14.0.0', npm: '>=7.0.0'} - '@sapphire/timer-manager@1.0.2': - resolution: {integrity: sha512-0/wQEeiYeENQNtCVjhLZA2hDFqshNwWRR0ewXXENggTtkSqL7l+FadP1FZIMLRB69vnsZKdL2GuEHDuWayJbAQ==} + '@sapphire/timer-manager@1.0.4': + resolution: {integrity: sha512-gc1JW8oui86f2l0T/1Iwd7hZTgus8b46slitTR2y0+wiMAEYxdp6vVTHvMAEHOqX8drkxK70aGfZmQKbAcgFqQ==} engines: {node: '>=v14.0.0', npm: '>=7.0.0'} - '@sapphire/timestamp@1.0.3': - resolution: {integrity: sha512-I2TwqlLDA2Uu576VUgyBaT1gP1WSWPxeW3NqFxsSJfwFyvzXkTzyQiYce0eWMpM6BdBCq7Dddg+Yayls/5K1RA==} + '@sapphire/timestamp@1.0.5': + resolution: {integrity: sha512-oNwWyNdbt5wm4aYZvlHl1+64U3g0xrFmRIHsnER7RgMxNnp/wmAE4yTK2oUHeadg3t4V9iYctPAQCF+aINke4g==} engines: {node: '>=v14.0.0', npm: '>=7.0.0'} '@sapphire/ts-config@5.0.1': resolution: {integrity: sha512-86YBYNBDNs6/bCrTsv274553v43Bz8YljfrrIQ4N8ll2npUxbf6cpC0gjfJY+FMa1HwKUgoMF4lvhzY0Ph0smw==} engines: {node: '>=v16.0.0', npm: '>=8.0.0'} - '@sapphire/utilities@3.17.0': - resolution: {integrity: sha512-bbqjnKKrCgyT0C3+KOjIBzE6z6/v764EFuV7Uxw9WeIdkqGhwepl6tuNEzgiek/JdtEcODaPeX0K1aCt53yCcA==} + '@sapphire/utilities@3.18.1': + resolution: {integrity: sha512-zyEyQOQb2/t2mKRmu8T+M4r1Ulb+54BjwDS5pfzf6abGzTAcUg4VDWjHeKX7p3IgiZTcpN4Ij77b9k+K1KV4Lg==} engines: {node: '>=v14.0.0'} '@tsconfig/node10@1.0.11': @@ -319,14 +319,14 @@ packages: '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - '@types/node@20.16.1': - resolution: {integrity: sha512-zJDo7wEadFtSyNz5QITDfRcrhqDvQI1xQNQ0VoizPjM/dVAODqqIUWbJPkvsxmTI0MYRGRikcdjMPhOssnPejQ==} + '@types/node@20.17.13': + resolution: {integrity: sha512-RNf+4dEeV69PIvyp++4IKM2vnLXtmp/JovfeQm5P5+qpKb6wHoH7INywLdZ7z+gVX46kgBP/fwJJvZYaHxtdyw==} '@types/semver@7.5.8': resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} - '@types/ws@8.5.12': - resolution: {integrity: sha512-3tPRkv1EtkDpzlgyKyI8pGsGZAGPEaXeu0DOj5DI25Ja91bdAYddYHbADRYVrZMRbfW+1l5YwXVDKohDJNQxkQ==} + '@types/ws@8.5.13': + resolution: {integrity: sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA==} '@typescript-eslint/eslint-plugin@6.21.0': resolution: {integrity: sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==} @@ -386,8 +386,8 @@ packages: resolution: {integrity: sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==} engines: {node: ^16.0.0 || >=18.0.0} - '@ungap/structured-clone@1.2.0': - resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} + '@ungap/structured-clone@1.2.1': + resolution: {integrity: sha512-fEzPV3hSkSMltkw152tJKNARhOupqbH96MZWyRjNaYZOMIzbrTeQDG+MTc6Mr2pgzFQzFxAfmhGDNP5QK++2ZA==} '@vladfrangu/async_event_emitter@2.4.6': resolution: {integrity: sha512-RaI5qZo6D2CVS6sTHFKg1v5Ohq/+Bo2LZ5gzUEwZ/WkHhwtGTCB/sVLw8ijOkAUxasZ+WshN/Rzj4ywsABJ5ZA==} @@ -398,12 +398,12 @@ packages: peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 - acorn-walk@8.3.3: - resolution: {integrity: sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw==} + acorn-walk@8.3.4: + resolution: {integrity: sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==} engines: {node: '>=0.4.0'} - acorn@8.12.1: - resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} + acorn@8.14.0: + resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==} engines: {node: '>=0.4.0'} hasBin: true @@ -441,11 +441,11 @@ packages: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} - bullmq@5.1.3: - resolution: {integrity: sha512-safpGwiwKHsNPW01Wk8FPxdWbPS2mA0HZKqIhdQB10J4wWRSDWPeQE2p+YYnAmqEsk0FwJdZnzVcwCfn7w5cVA==} + bullmq@5.22.0: + resolution: {integrity: sha512-nwjJSQt/kpO4bIfAznyKKz3+m5OZ6YSaz2Vg7oNoZWTD5wCnJJJy6b9iWM5QIF0bADhDWyorLCO0hU3de+iKMA==} - bullmq@5.12.10: - resolution: {integrity: sha512-lXH8Caj+FvYHiBS0QBEpQOq57RcVuEPziBC5cBlWguCVNfn1UMSri22bRrynDKuof8o9XB43ctmYASUpoa0DeQ==} + bullmq@5.34.10: + resolution: {integrity: sha512-ia6EzpQm1ZPq6GUBSLyfvzJrhdBTd1f3Gn2g9pFtLX4hBOob6QHmcmBzGgPlSCyr/i2Qfe4OdjS21bRd02srbw==} callsites@3.1.0: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} @@ -479,12 +479,12 @@ packages: resolution: {integrity: sha512-p0SaNjrHOnQeR8/VnfGbmg9te2kfyYSQ7Sc/j/6DtPL3JQvKxmjO9TSjNFpujqV3vEYYBvNNvXSxzyksBWAx1Q==} engines: {node: '>=12.0.0'} - cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} - debug@4.3.6: - resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} + debug@4.4.0: + resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -511,15 +511,12 @@ packages: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} - discord-api-types@0.37.83: - resolution: {integrity: sha512-urGGYeWtWNYMKnYlZnOnDHm8fVRffQs3U0SpE8RHeiuLKb/u92APS8HoQnPTFbnXmY1vVnXjXO4dOxcAn3J+DA==} + discord-api-types@0.37.115: + resolution: {integrity: sha512-ivPnJotSMrXW8HLjFu+0iCVs8zP6KSliMelhr7HgcB2ki1QzpORkb26m71l1pzSnnGfm7gb5n/VtRTtpw8kXFA==} - discord-api-types@0.37.98: - resolution: {integrity: sha512-xsH4UwmnCQl4KjAf01/p9ck9s+/vDqzHbUxPOBzo8fcVUa/hQG6qInD7Cr44KAuCM+xCxGJFSAUx450pBrX0+g==} - - discord.js@14.15.3: - resolution: {integrity: sha512-/UJDQO10VuU6wQPglA4kz2bw2ngeeSbogiIPx/TsnctfzV/tNf+q+i1HlgtX1OGpeOBpJH9erZQNO5oRM2uAtQ==} - engines: {node: '>=16.11.0'} + discord.js@14.17.3: + resolution: {integrity: sha512-8/j8udc3CU7dz3Eqch64UaSHoJtUT6IXK4da5ixjbav4NAXJicloWswD/iwn1ImZEMoAV3LscsdO0zhBh6H+0Q==} + engines: {node: '>=18'} doctrine@3.0.0: resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} @@ -571,8 +568,8 @@ packages: fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} - fast-glob@3.3.2: - resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} + fast-glob@3.3.3: + resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==} engines: {node: '>=8.6.0'} fast-json-stable-stringify@2.1.0: @@ -581,8 +578,8 @@ packages: fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - fastq@1.17.1: - resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} + fastq@1.18.0: + resolution: {integrity: sha512-QKHXPW0hD8g4UET03SdOdunzSouc9N4AuHdsX8XNcTsuz+yYFILVNIX4l9yHABMhiEI9Db0JTTIpu0wB+Y1QQw==} file-entry-cache@6.0.1: resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} @@ -600,12 +597,17 @@ packages: resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} engines: {node: ^10.12.0 || >=12.0.0} - flatted@3.3.1: - resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} + flatted@3.3.2: + resolution: {integrity: sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==} fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} @@ -618,11 +620,6 @@ packages: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} deprecated: Glob versions prior to v9 are no longer supported - glob@8.1.0: - resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==} - engines: {node: '>=12'} - deprecated: Glob versions prior to v9 are no longer supported - globals@13.24.0: resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} engines: {node: '>=8'} @@ -657,8 +654,8 @@ packages: inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - ioredis@5.4.1: - resolution: {integrity: sha512-2YZsvl7jopIa1gaePkeMtd9rAcSjOOjPtpcLlOeusyO+XH2SK5ZcT+UCrElPP+WVIInh2TzeI4XW9ENaSLVVHA==} + ioredis@5.4.2: + resolution: {integrity: sha512-0SZXGNGZ+WzISQ67QDyZ2x0+wVxjjUndtD8oSeik/4ajifeiRufed8fCb8QW8VMyi4MXcS+UO1k/0NGhvq1PAg==} engines: {node: '>=12.22.0'} is-extglob@2.1.1: @@ -740,23 +737,19 @@ packages: minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} - minimatch@5.1.6: - resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==} - engines: {node: '>=10'} - minimatch@9.0.3: resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} engines: {node: '>=16 || 14 >=14.17'} - ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} msgpackr-extract@3.0.3: resolution: {integrity: sha512-P0efT1C9jIdVRefqjzOQ9Xml57zpOXnIuS+csaB4MdZbTdmGDLo8XhzBG1N7aO11gKDDkJvBLULeFTo46wwreA==} hasBin: true - msgpackr@1.11.0: - resolution: {integrity: sha512-I8qXuuALqJe5laEBYoFykChhSXLikZmUhccjGsPuSJ/7uPip2TJ7lwdIQwWSAi0jGZDXv4WOP8Qg65QZRuXxXw==} + msgpackr@1.11.2: + resolution: {integrity: sha512-F9UngXRlPyWCDEASDpTf6c9uNhGPTqnTeLVt7bN+bU1eajoR/8V9ys2BRaV5C/e5ihE6sJ9uPIKaYt6bFuO32g==} natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -816,8 +809,8 @@ packages: engines: {node: '>=14'} hasBin: true - prisma@5.18.0: - resolution: {integrity: sha512-+TrSIxZsh64OPOmaSgVPH7ALL9dfU0jceYaMJXsNrTkFHO7/3RANi5K2ZiPB1De9+KDxCWn7jvRq8y8pvk+o9g==} + prisma@5.22.0: + resolution: {integrity: sha512-vtpjW3XuYCSnMsNVBjLMNkTj6OZbudcPPTPYHqX0CJfpcdWciI1dM8uHETwmDxxiqEwCIE6WvXucWUetJgfu/A==} engines: {node: '>=16.13'} hasBin: true @@ -891,8 +884,8 @@ packages: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} - ts-api-utils@1.3.0: - resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} + ts-api-utils@1.4.3: + resolution: {integrity: sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==} engines: {node: '>=16'} peerDependencies: typescript: '>=4.2.0' @@ -914,11 +907,8 @@ packages: '@swc/wasm': optional: true - tslib@2.6.2: - resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} - - tslib@2.7.0: - resolution: {integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==} + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} @@ -936,9 +926,9 @@ packages: undici-types@6.19.8: resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} - undici@6.13.0: - resolution: {integrity: sha512-Q2rtqmZWrbP8nePMq7mOJIN98M0fYvSgV89vwl/BQRT4mDOeY2GXZngfGpcBBhtky3woM7G24wZV3Q304Bv6cw==} - engines: {node: '>=18.0'} + undici@6.19.8: + resolution: {integrity: sha512-U8uCCl2x9TK3WANvmBavymRzxbfFYG+tAu+fgx3zxQy3qdagQqBLwJVrdyO1TBfUXvfKveMKJZhpvUYoOjM+4g==} + engines: {node: '>=18.17'} uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} @@ -988,64 +978,64 @@ snapshots: dependencies: '@jridgewell/trace-mapping': 0.3.9 - '@discordjs/builders@1.8.2': + '@discordjs/builders@1.10.0': dependencies: - '@discordjs/formatters': 0.4.0 - '@discordjs/util': 1.1.0 - '@sapphire/shapeshift': 3.9.7 - discord-api-types: 0.37.83 + '@discordjs/formatters': 0.6.0 + '@discordjs/util': 1.1.1 + '@sapphire/shapeshift': 4.0.0 + discord-api-types: 0.37.115 fast-deep-equal: 3.1.3 ts-mixer: 6.0.4 - tslib: 2.7.0 + tslib: 2.8.1 '@discordjs/collection@1.5.3': {} - '@discordjs/collection@2.1.0': {} + '@discordjs/collection@2.1.1': {} - '@discordjs/formatters@0.4.0': + '@discordjs/formatters@0.6.0': dependencies: - discord-api-types: 0.37.83 + discord-api-types: 0.37.115 - '@discordjs/rest@2.3.0': + '@discordjs/rest@2.4.2': dependencies: - '@discordjs/collection': 2.1.0 - '@discordjs/util': 1.1.0 - '@sapphire/async-queue': 1.5.3 + '@discordjs/collection': 2.1.1 + '@discordjs/util': 1.1.1 + '@sapphire/async-queue': 1.5.5 '@sapphire/snowflake': 3.5.3 '@vladfrangu/async_event_emitter': 2.4.6 - discord-api-types: 0.37.83 + discord-api-types: 0.37.115 magic-bytes.js: 1.10.0 - tslib: 2.6.2 - undici: 6.13.0 + tslib: 2.8.1 + undici: 6.19.8 - '@discordjs/util@1.1.0': {} + '@discordjs/util@1.1.1': {} - '@discordjs/ws@1.1.1': + '@discordjs/ws@1.2.0': dependencies: - '@discordjs/collection': 2.1.0 - '@discordjs/rest': 2.3.0 - '@discordjs/util': 1.1.0 - '@sapphire/async-queue': 1.5.3 - '@types/ws': 8.5.12 + '@discordjs/collection': 2.1.1 + '@discordjs/rest': 2.4.2 + '@discordjs/util': 1.1.1 + '@sapphire/async-queue': 1.5.5 + '@types/ws': 8.5.13 '@vladfrangu/async_event_emitter': 2.4.6 - discord-api-types: 0.37.83 - tslib: 2.6.2 + discord-api-types: 0.37.115 + tslib: 2.8.1 ws: 8.18.0 transitivePeerDependencies: - bufferutil - utf-8-validate - '@eslint-community/eslint-utils@4.4.0(eslint@8.56.0)': + '@eslint-community/eslint-utils@4.4.1(eslint@8.56.0)': dependencies: eslint: 8.56.0 eslint-visitor-keys: 3.4.3 - '@eslint-community/regexpp@4.11.0': {} + '@eslint-community/regexpp@4.12.1': {} '@eslint/eslintrc@2.1.4': dependencies: ajv: 6.12.6 - debug: 4.3.6 + debug: 4.4.0 espree: 9.6.1 globals: 13.24.0 ignore: 5.3.2 @@ -1061,7 +1051,7 @@ snapshots: '@humanwhocodes/config-array@0.11.14': dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.6 + debug: 4.4.0 minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -1109,125 +1099,124 @@ snapshots: '@nodelib/fs.walk@1.2.8': dependencies: '@nodelib/fs.scandir': 2.1.5 - fastq: 1.17.1 + fastq: 1.18.0 - '@prisma/client@5.18.0(prisma@5.18.0)': + '@prisma/client@5.22.0(prisma@5.22.0)': optionalDependencies: - prisma: 5.18.0 + prisma: 5.22.0 - '@prisma/debug@5.18.0': {} + '@prisma/debug@5.22.0': {} - '@prisma/engines-version@5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169': {} + '@prisma/engines-version@5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2': {} - '@prisma/engines@5.18.0': + '@prisma/engines@5.22.0': dependencies: - '@prisma/debug': 5.18.0 - '@prisma/engines-version': 5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169 - '@prisma/fetch-engine': 5.18.0 - '@prisma/get-platform': 5.18.0 + '@prisma/debug': 5.22.0 + '@prisma/engines-version': 5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2 + '@prisma/fetch-engine': 5.22.0 + '@prisma/get-platform': 5.22.0 - '@prisma/fetch-engine@5.18.0': + '@prisma/fetch-engine@5.22.0': dependencies: - '@prisma/debug': 5.18.0 - '@prisma/engines-version': 5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169 - '@prisma/get-platform': 5.18.0 + '@prisma/debug': 5.22.0 + '@prisma/engines-version': 5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2 + '@prisma/get-platform': 5.22.0 - '@prisma/get-platform@5.18.0': + '@prisma/get-platform@5.22.0': dependencies: - '@prisma/debug': 5.18.0 + '@prisma/debug': 5.22.0 - '@sapphire/async-queue@1.5.3': {} + '@sapphire/async-queue@1.5.5': {} - '@sapphire/cron@1.1.3': + '@sapphire/cron@1.2.1': dependencies: - '@sapphire/utilities': 3.17.0 + '@sapphire/utilities': 3.18.1 - '@sapphire/discord-utilities@3.3.0': + '@sapphire/discord-utilities@3.4.4': dependencies: - discord-api-types: 0.37.98 + discord-api-types: 0.37.115 - '@sapphire/discord.js-utilities@7.3.0': + '@sapphire/discord.js-utilities@7.3.2': dependencies: - '@sapphire/discord-utilities': 3.3.0 - '@sapphire/duration': 1.1.2 - '@sapphire/utilities': 3.17.0 - tslib: 2.7.0 + '@sapphire/discord-utilities': 3.4.4 + '@sapphire/duration': 1.1.4 + '@sapphire/utilities': 3.18.1 + tslib: 2.8.1 - '@sapphire/duration@1.1.2': {} + '@sapphire/duration@1.1.4': {} - '@sapphire/framework@5.2.1': + '@sapphire/framework@5.3.2': dependencies: - '@discordjs/builders': 1.8.2 - '@sapphire/discord-utilities': 3.3.0 - '@sapphire/discord.js-utilities': 7.3.0 - '@sapphire/lexure': 1.1.7 + '@discordjs/builders': 1.10.0 + '@sapphire/discord-utilities': 3.4.4 + '@sapphire/discord.js-utilities': 7.3.2 + '@sapphire/lexure': 1.1.10 '@sapphire/pieces': 4.3.1 - '@sapphire/ratelimits': 2.4.9 - '@sapphire/result': 2.6.6 - '@sapphire/stopwatch': 1.5.2 - '@sapphire/utilities': 3.17.0 + '@sapphire/ratelimits': 2.4.11 + '@sapphire/result': 2.7.2 + '@sapphire/stopwatch': 1.5.4 + '@sapphire/utilities': 3.18.1 - '@sapphire/lexure@1.1.7': + '@sapphire/lexure@1.1.10': dependencies: - '@sapphire/result': 2.6.6 + '@sapphire/result': 2.7.2 '@sapphire/pieces@4.3.1': dependencies: '@discordjs/collection': 1.5.3 - '@sapphire/utilities': 3.17.0 - tslib: 2.7.0 + '@sapphire/utilities': 3.18.1 + tslib: 2.8.1 '@sapphire/plugin-logger@4.0.2': dependencies: - '@sapphire/timestamp': 1.0.3 + '@sapphire/timestamp': 1.0.5 colorette: 2.0.20 - '@sapphire/plugin-scheduled-tasks@10.0.1': + '@sapphire/plugin-scheduled-tasks@10.0.2': dependencies: - '@sapphire/stopwatch': 1.5.2 - '@sapphire/utilities': 3.17.0 - bullmq: 5.1.3 - tslib: 2.7.0 + '@sapphire/stopwatch': 1.5.4 + '@sapphire/utilities': 3.18.1 + bullmq: 5.22.0 transitivePeerDependencies: - supports-color '@sapphire/plugin-subcommands@6.0.3': dependencies: - '@sapphire/utilities': 3.17.0 - tslib: 2.7.0 + '@sapphire/utilities': 3.18.1 + tslib: 2.8.1 - '@sapphire/ratelimits@2.4.9': {} + '@sapphire/ratelimits@2.4.11': {} - '@sapphire/result@2.6.6': {} + '@sapphire/result@2.7.2': {} - '@sapphire/shapeshift@3.9.7': + '@sapphire/shapeshift@4.0.0': dependencies: fast-deep-equal: 3.1.3 lodash: 4.17.21 '@sapphire/snowflake@3.5.3': {} - '@sapphire/stopwatch@1.5.2': + '@sapphire/stopwatch@1.5.4': dependencies: - tslib: 2.7.0 + tslib: 2.8.1 - '@sapphire/time-utilities@1.7.12': + '@sapphire/time-utilities@1.7.14': dependencies: - '@sapphire/cron': 1.1.3 - '@sapphire/duration': 1.1.2 - '@sapphire/timer-manager': 1.0.2 - '@sapphire/timestamp': 1.0.3 + '@sapphire/cron': 1.2.1 + '@sapphire/duration': 1.1.4 + '@sapphire/timer-manager': 1.0.4 + '@sapphire/timestamp': 1.0.5 - '@sapphire/timer-manager@1.0.2': {} + '@sapphire/timer-manager@1.0.4': {} - '@sapphire/timestamp@1.0.3': {} + '@sapphire/timestamp@1.0.5': {} '@sapphire/ts-config@5.0.1': dependencies: - tslib: 2.7.0 + tslib: 2.8.1 typescript: 5.4.5 - '@sapphire/utilities@3.17.0': {} + '@sapphire/utilities@3.18.1': {} '@tsconfig/node10@1.0.11': {} @@ -1239,31 +1228,31 @@ snapshots: '@types/json-schema@7.0.15': {} - '@types/node@20.16.1': + '@types/node@20.17.13': dependencies: undici-types: 6.19.8 '@types/semver@7.5.8': {} - '@types/ws@8.5.12': + '@types/ws@8.5.13': dependencies: - '@types/node': 20.16.1 + '@types/node': 20.17.13 '@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.56.0)(typescript@5.4.5))(eslint@8.56.0)(typescript@5.4.5)': dependencies: - '@eslint-community/regexpp': 4.11.0 + '@eslint-community/regexpp': 4.12.1 '@typescript-eslint/parser': 6.21.0(eslint@8.56.0)(typescript@5.4.5) '@typescript-eslint/scope-manager': 6.21.0 '@typescript-eslint/type-utils': 6.21.0(eslint@8.56.0)(typescript@5.4.5) '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@5.4.5) '@typescript-eslint/visitor-keys': 6.21.0 - debug: 4.3.6 + debug: 4.4.0 eslint: 8.56.0 graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@5.4.5) + ts-api-utils: 1.4.3(typescript@5.4.5) optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: @@ -1275,7 +1264,7 @@ snapshots: '@typescript-eslint/types': 6.21.0 '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.4.5) '@typescript-eslint/visitor-keys': 6.21.0 - debug: 4.3.6 + debug: 4.4.0 eslint: 8.56.0 optionalDependencies: typescript: 5.4.5 @@ -1291,9 +1280,9 @@ snapshots: dependencies: '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.4.5) '@typescript-eslint/utils': 6.21.0(eslint@8.56.0)(typescript@5.4.5) - debug: 4.3.6 + debug: 4.4.0 eslint: 8.56.0 - ts-api-utils: 1.3.0(typescript@5.4.5) + ts-api-utils: 1.4.3(typescript@5.4.5) optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: @@ -1305,12 +1294,12 @@ snapshots: dependencies: '@typescript-eslint/types': 6.21.0 '@typescript-eslint/visitor-keys': 6.21.0 - debug: 4.3.6 + debug: 4.4.0 globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.3 semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@5.4.5) + ts-api-utils: 1.4.3(typescript@5.4.5) optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: @@ -1318,7 +1307,7 @@ snapshots: '@typescript-eslint/utils@6.21.0(eslint@8.56.0)(typescript@5.4.5)': dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) + '@eslint-community/eslint-utils': 4.4.1(eslint@8.56.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.8 '@typescript-eslint/scope-manager': 6.21.0 @@ -1335,19 +1324,19 @@ snapshots: '@typescript-eslint/types': 6.21.0 eslint-visitor-keys: 3.4.3 - '@ungap/structured-clone@1.2.0': {} + '@ungap/structured-clone@1.2.1': {} '@vladfrangu/async_event_emitter@2.4.6': {} - acorn-jsx@5.3.2(acorn@8.12.1): + acorn-jsx@5.3.2(acorn@8.14.0): dependencies: - acorn: 8.12.1 + acorn: 8.14.0 - acorn-walk@8.3.3: + acorn-walk@8.3.4: dependencies: - acorn: 8.12.1 + acorn: 8.14.0 - acorn@8.12.1: {} + acorn@8.14.0: {} ajv@6.12.6: dependencies: @@ -1383,28 +1372,26 @@ snapshots: dependencies: fill-range: 7.1.1 - bullmq@5.1.3: + bullmq@5.22.0: dependencies: cron-parser: 4.9.0 - glob: 8.1.0 - ioredis: 5.4.1 - lodash: 4.17.21 - msgpackr: 1.11.0 + ioredis: 5.4.2 + msgpackr: 1.11.2 node-abort-controller: 3.1.1 semver: 7.6.3 - tslib: 2.7.0 + tslib: 2.8.1 uuid: 9.0.1 transitivePeerDependencies: - supports-color - bullmq@5.12.10: + bullmq@5.34.10: dependencies: cron-parser: 4.9.0 - ioredis: 5.4.1 - msgpackr: 1.11.0 + ioredis: 5.4.2 + msgpackr: 1.11.2 node-abort-controller: 3.1.1 semver: 7.6.3 - tslib: 2.7.0 + tslib: 2.8.1 uuid: 9.0.1 transitivePeerDependencies: - supports-color @@ -1434,15 +1421,15 @@ snapshots: dependencies: luxon: 3.5.0 - cross-spawn@7.0.3: + cross-spawn@7.0.6: dependencies: path-key: 3.1.1 shebang-command: 2.0.0 which: 2.0.2 - debug@4.3.6: + debug@4.4.0: dependencies: - ms: 2.1.2 + ms: 2.1.3 deep-is@0.1.4: {} @@ -1457,24 +1444,22 @@ snapshots: dependencies: path-type: 4.0.0 - discord-api-types@0.37.83: {} + discord-api-types@0.37.115: {} - discord-api-types@0.37.98: {} - - discord.js@14.15.3: + discord.js@14.17.3: dependencies: - '@discordjs/builders': 1.8.2 + '@discordjs/builders': 1.10.0 '@discordjs/collection': 1.5.3 - '@discordjs/formatters': 0.4.0 - '@discordjs/rest': 2.3.0 - '@discordjs/util': 1.1.0 - '@discordjs/ws': 1.1.1 + '@discordjs/formatters': 0.6.0 + '@discordjs/rest': 2.4.2 + '@discordjs/util': 1.1.1 + '@discordjs/ws': 1.2.0 '@sapphire/snowflake': 3.5.3 - discord-api-types: 0.37.83 + discord-api-types: 0.37.115 fast-deep-equal: 3.1.3 lodash.snakecase: 4.1.1 - tslib: 2.6.2 - undici: 6.13.0 + tslib: 2.8.1 + undici: 6.19.8 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -1498,18 +1483,18 @@ snapshots: eslint@8.56.0: dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) - '@eslint-community/regexpp': 4.11.0 + '@eslint-community/eslint-utils': 4.4.1(eslint@8.56.0) + '@eslint-community/regexpp': 4.12.1 '@eslint/eslintrc': 2.1.4 '@eslint/js': 8.56.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 + '@ungap/structured-clone': 1.2.1 ajv: 6.12.6 chalk: 4.1.2 - cross-spawn: 7.0.3 - debug: 4.3.6 + cross-spawn: 7.0.6 + debug: 4.4.0 doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -1541,8 +1526,8 @@ snapshots: espree@9.6.1: dependencies: - acorn: 8.12.1 - acorn-jsx: 5.3.2(acorn@8.12.1) + acorn: 8.14.0 + acorn-jsx: 5.3.2(acorn@8.14.0) eslint-visitor-keys: 3.4.3 esquery@1.6.0: @@ -1559,7 +1544,7 @@ snapshots: fast-deep-equal@3.1.3: {} - fast-glob@3.3.2: + fast-glob@3.3.3: dependencies: '@nodelib/fs.stat': 2.0.5 '@nodelib/fs.walk': 1.2.8 @@ -1571,7 +1556,7 @@ snapshots: fast-levenshtein@2.0.6: {} - fastq@1.17.1: + fastq@1.18.0: dependencies: reusify: 1.0.4 @@ -1590,14 +1575,17 @@ snapshots: flat-cache@3.2.0: dependencies: - flatted: 3.3.1 + flatted: 3.3.2 keyv: 4.5.4 rimraf: 3.0.2 - flatted@3.3.1: {} + flatted@3.3.2: {} fs.realpath@1.0.0: {} + fsevents@2.3.3: + optional: true + glob-parent@5.1.2: dependencies: is-glob: 4.0.3 @@ -1615,14 +1603,6 @@ snapshots: once: 1.4.0 path-is-absolute: 1.0.1 - glob@8.1.0: - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 5.1.6 - once: 1.4.0 - globals@13.24.0: dependencies: type-fest: 0.20.2 @@ -1631,7 +1611,7 @@ snapshots: dependencies: array-union: 2.1.0 dir-glob: 3.0.1 - fast-glob: 3.3.2 + fast-glob: 3.3.3 ignore: 5.3.2 merge2: 1.4.1 slash: 3.0.0 @@ -1656,11 +1636,11 @@ snapshots: inherits@2.0.4: {} - ioredis@5.4.1: + ioredis@5.4.2: dependencies: '@ioredis/commands': 1.2.0 cluster-key-slot: 1.1.2 - debug: 4.3.6 + debug: 4.4.0 denque: 2.1.0 lodash.defaults: 4.2.0 lodash.isarguments: 3.1.0 @@ -1732,15 +1712,11 @@ snapshots: dependencies: brace-expansion: 1.1.11 - minimatch@5.1.6: - dependencies: - brace-expansion: 2.0.1 - minimatch@9.0.3: dependencies: brace-expansion: 2.0.1 - ms@2.1.2: {} + ms@2.1.3: {} msgpackr-extract@3.0.3: dependencies: @@ -1754,7 +1730,7 @@ snapshots: '@msgpackr-extract/msgpackr-extract-win32-x64': 3.0.3 optional: true - msgpackr@1.11.0: + msgpackr@1.11.2: optionalDependencies: msgpackr-extract: 3.0.3 @@ -1806,9 +1782,11 @@ snapshots: prettier@3.2.4: {} - prisma@5.18.0: + prisma@5.22.0: dependencies: - '@prisma/engines': 5.18.0 + '@prisma/engines': 5.22.0 + optionalDependencies: + fsevents: 2.3.3 punycode@2.3.1: {} @@ -1860,22 +1838,22 @@ snapshots: dependencies: is-number: 7.0.0 - ts-api-utils@1.3.0(typescript@5.4.5): + ts-api-utils@1.4.3(typescript@5.4.5): dependencies: typescript: 5.4.5 ts-mixer@6.0.4: {} - ts-node@10.9.2(@types/node@20.16.1)(typescript@5.4.5): + ts-node@10.9.2(@types/node@20.17.13)(typescript@5.4.5): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.16.1 - acorn: 8.12.1 - acorn-walk: 8.3.3 + '@types/node': 20.17.13 + acorn: 8.14.0 + acorn-walk: 8.3.4 arg: 4.1.3 create-require: 1.1.1 diff: 4.0.2 @@ -1884,9 +1862,7 @@ snapshots: v8-compile-cache-lib: 3.0.1 yn: 3.1.1 - tslib@2.6.2: {} - - tslib@2.7.0: {} + tslib@2.8.1: {} type-check@0.4.0: dependencies: @@ -1898,7 +1874,7 @@ snapshots: undici-types@6.19.8: {} - undici@6.13.0: {} + undici@6.19.8: {} uri-js@4.4.1: dependencies: diff --git a/src/commands/coordinators/anonymous.ts b/src/commands/coordinators/anonymous.ts index 33a2fe4..9436264 100644 --- a/src/commands/coordinators/anonymous.ts +++ b/src/commands/coordinators/anonymous.ts @@ -18,7 +18,7 @@ */ import { Args, Command, RegisterBehavior } from '@sapphire/framework'; -import type { Message } from 'discord.js'; +import { Message, MessageFlagsBitField } from 'discord.js'; import { ChannelType, TextChannel } from 'discord.js'; export class AnonymousCommand extends Command { @@ -67,8 +67,8 @@ export class AnonymousCommand extends Command { if (guild === null) { await interaction.reply({ content: 'Error fetching guild!', - ephemeral: true, - fetchReply: true, + flags: MessageFlagsBitField.Flags.Ephemeral, + withResponse: true, }); return; } @@ -77,8 +77,17 @@ export class AnonymousCommand extends Command { if (interaction.channel === null) { await interaction.reply({ content: 'Error getting the channel!', - ephemeral: true, - fetchReply: true, + flags: MessageFlagsBitField.Flags.Ephemeral, + withResponse: true, + }); + return; + } + + if (!interaction.channel.isSendable()) { + await interaction.reply({ + content: `I do not have sufficient permissions to send a message in ${interaction.channel}!`, + flags: MessageFlagsBitField.Flags.Ephemeral, + withResponse: true, }); return; } @@ -86,8 +95,8 @@ export class AnonymousCommand extends Command { await interaction.channel.send(message); await interaction.reply({ content: 'Sent the message', - ephemeral: true, - fetchReply: true, + flags: MessageFlagsBitField.Flags.Ephemeral, + withResponse: true, }); return; } @@ -95,8 +104,8 @@ export class AnonymousCommand extends Command { if (channel.type !== ChannelType.GuildText) { await interaction.reply({ content: 'Could not send, unsupported text channel!', - ephemeral: true, - fetchReply: true, + flags: MessageFlagsBitField.Flags.Ephemeral, + withResponse: true, }); } @@ -105,8 +114,8 @@ export class AnonymousCommand extends Command { await interaction.reply({ content: 'Sent the message', - ephemeral: true, - fetchReply: true, + flags: MessageFlagsBitField.Flags.Ephemeral, + withResponse: true, }); } @@ -121,7 +130,7 @@ export class AnonymousCommand extends Command { return; } - if (channel.isTextBased()) { + if (channel.isSendable()) { await channel.send(text); } else { await message.react('❌'); diff --git a/src/commands/mod/sus.ts b/src/commands/mod/sus.ts index 2d47570..620f7f0 100644 --- a/src/commands/mod/sus.ts +++ b/src/commands/mod/sus.ts @@ -30,9 +30,9 @@ import { TextChannel, GuildMember, Snowflake, + MessageFlagsBitField, } from 'discord.js'; import type { Message } from 'discord.js'; -import { isMessageInstance } from '@sapphire/discord.js-utilities'; import { addSusNoteDB, findNotes, @@ -407,16 +407,21 @@ export class SusCommand extends Subcommand { const message = await interaction.reply({ embeds: [noteEmbed], components: [buttons], - ephemeral: true, - fetchReply: true, + flags: MessageFlagsBitField.Flags.Ephemeral, + withResponse: true, }); // Checks if the message is not an APIMessage - if (!isMessageInstance(message)) { + if (message.resource === null) { await interaction.editReply('Failed to retrieve the message :('); return; } + if (!channel.isSendable()) { + await interaction.editReply('Cannot send messages in this channel!'); + return; + } + // Listen for the button presses const collector = channel.createMessageComponentCollector({ max: 1, // Maximum of 1 button press @@ -519,8 +524,8 @@ export class SusCommand extends Subcommand { if (guild === null || channel === null) { await interaction.reply({ content: 'Error fetching guild or channel!', - ephemeral: true, - fetchReply: true, + flags: MessageFlagsBitField.Flags.Ephemeral, + withResponse: true, }); return; } @@ -531,8 +536,8 @@ export class SusCommand extends Subcommand { if (member === undefined) { await interaction.reply({ content: 'Error fetching user!', - ephemeral: true, - fetchReply: true, + flags: MessageFlagsBitField.Flags.Ephemeral, + withResponse: true, }); return; } @@ -545,8 +550,8 @@ export class SusCommand extends Subcommand { if (notes.length === 0) { await interaction.reply({ content: `${user} had no notes!`, - ephemeral: true, - fetchReply: true, + flags: MessageFlagsBitField.Flags.Ephemeral, + withResponse: true, }); return; } @@ -596,16 +601,21 @@ export class SusCommand extends Subcommand { const message = await interaction.reply({ embeds: [noteEmbed], components: [buttons], - ephemeral: true, - fetchReply: true, + flags: MessageFlagsBitField.Flags.Ephemeral, + withResponse: true, }); // Checks if the message is not an APIMessage - if (!isMessageInstance(message)) { + if (message.resource === null) { await interaction.editReply('Failed to retrieve the message :('); return; } + if (!channel.isSendable()) { + await interaction.editReply('Cannot send messages in this channel!'); + return; + } + // Listen for the button presses const collector = channel.createMessageComponentCollector({ max: 1, // Maximum of 1 button press diff --git a/src/commands/utils/ping.ts b/src/commands/utils/ping.ts index 915e907..9028075 100644 --- a/src/commands/utils/ping.ts +++ b/src/commands/utils/ping.ts @@ -17,9 +17,8 @@ along with this program. If not, see . */ -import { isMessageInstance } from '@sapphire/discord.js-utilities'; import { Command } from '@sapphire/framework'; -import type { Message } from 'discord.js'; +import { Message, MessageFlagsBitField } from 'discord.js'; export class PingCommand extends Command { public constructor(context: Command.LoaderContext, options: Command.Options) { @@ -41,12 +40,13 @@ export class PingCommand extends Command { public async chatInputRun(interaction: Command.ChatInputCommandInteraction) { const msg = await interaction.reply({ content: 'Ping?', - ephemeral: true, - fetchReply: true, + flags: MessageFlagsBitField.Flags.Ephemeral, + withResponse: true, }); - if (isMessageInstance(msg)) { - const diff = msg.createdTimestamp - interaction.createdTimestamp; + if (msg.resource !== null && msg.resource.message !== null) { + const diff = + msg.resource.message.createdTimestamp - interaction.createdTimestamp; const ping = Math.round(this.container.client.ws.ping); return interaction.editReply( `Pong 🏓! (Round trip took: ${diff}ms. Heartbeat: ${ping}ms.)`, @@ -57,6 +57,11 @@ export class PingCommand extends Command { } public async messageRun(message: Message) { + if (!message.channel.isSendable()) { + // TODO manage logging/errors properly + return; + } + const msg = await message.channel.send('Ping?'); const diff = msg.createdTimestamp - message.createdTimestamp; diff --git a/src/listeners/counting.ts b/src/listeners/counting.ts index b102d1b..d2966e5 100644 --- a/src/listeners/counting.ts +++ b/src/listeners/counting.ts @@ -49,6 +49,11 @@ export class XpListener extends Listener { // If no counts exist on the database, then create the first count from the bot if (lastCount === null) { if (this.container.client.id === null) { + if (!message.channel.isSendable()) { + // TODO manage logging/errors properly + return; + } + message.channel.send( 'An unexpected error occurred trying to set up the counting channel, please contact a developer!', ); @@ -63,6 +68,11 @@ export class XpListener extends Listener { lastCount = await getLastCount(); if (lastCount === null) { + if (!message.channel.isSendable()) { + // TODO manage logging/errors properly + return; + } + message.channel.send( 'An unexpected error occurred, please contact a developer!', ); diff --git a/src/listeners/suggestions.ts b/src/listeners/suggestions.ts index 0bc0fcd..1b9c05f 100644 --- a/src/listeners/suggestions.ts +++ b/src/listeners/suggestions.ts @@ -83,6 +83,11 @@ export class Suggestions extends Listener { return; } + if (!mailbox.isSendable()) { + // TODO manage logging/errors properly + return; + } + const sent = await mailbox.send({ embeds: [suggestion], content: message.author.toString(),