From cc0939a8dbc11102f10607bfe26d6487935d033e Mon Sep 17 00:00:00 2001 From: Techbot121 Date: Thu, 2 Jan 2025 00:16:30 +0100 Subject: [PATCH] update discord.js --- app/services/Starboard.ts | 1 + package.json | 2 +- yarn.lock | 109 +++++++++++++------------------------- 3 files changed, 39 insertions(+), 73 deletions(-) diff --git a/app/services/Starboard.ts b/app/services/Starboard.ts index 53f859ab..c85a7f04 100644 --- a/app/services/Starboard.ts +++ b/app/services/Starboard.ts @@ -113,6 +113,7 @@ export class Starboard extends Service { if ( count >= needed && + !this.isBusy && (emojiFilter ? emojiFilter.includes(reaction.emoji.name ?? "") : true) ) { this.isBusy = true; diff --git a/package.json b/package.json index 6f58a8a3..8d307a6c 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "cookie-parser": "^1.4.6", "dayjs": "^1.10.6", "diff": "^5.1.0", - "discord.js": "^14.16.3", + "discord.js": "^14.17.0", "dotenv": "^16.0.2", "express": "^4.17.1", "express-rate-limit": "^6.7.0", diff --git a/yarn.lock b/yarn.lock index 3a4f39f5..cd8a30e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -47,15 +47,15 @@ dependencies: "@jridgewell/trace-mapping" "0.3.9" -"@discordjs/builders@^1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@discordjs/builders/-/builders-1.9.0.tgz#71fa6de91132bd1deaff2a9daea7aa5d5c9f124a" - integrity sha512-0zx8DePNVvQibh5ly5kCEei5wtPBIUbSoE9n+91Rlladz4tgtFbJ36PZMxxZrTEOQ7AHMZ/b0crT/0fCy6FTKg== +"@discordjs/builders@^1.10.0": + version "1.10.0" + resolved "https://registry.yarnpkg.com/@discordjs/builders/-/builders-1.10.0.tgz#de0811ea22a3ecb893a3e37923760c9e9e722d74" + integrity sha512-ikVZsZP+3shmVJ5S1oM+7SveUCK3L9fTyfA8aJ7uD9cNQlTqF+3Irbk2Y22KXTb3C3RNUahRkSInClJMkHrINg== dependencies: - "@discordjs/formatters" "^0.5.0" + "@discordjs/formatters" "^0.6.0" "@discordjs/util" "^1.1.1" "@sapphire/shapeshift" "^4.0.0" - discord-api-types "0.37.97" + discord-api-types "^0.37.114" fast-deep-equal "^3.1.3" ts-mixer "^6.0.4" tslib "^2.6.3" @@ -75,39 +75,24 @@ resolved "https://registry.yarnpkg.com/@discordjs/collection/-/collection-2.1.1.tgz#901917bc538c12b9c3613036d317847baee08cae" integrity sha512-LiSusze9Tc7qF03sLCujF5iZp7K+vRNEDBZ86FT9aQAv3vxMLihUvKvpsCWiQ2DJq1tVckopKm1rxomgNUc9hg== -"@discordjs/formatters@^0.5.0": - version "0.5.0" - resolved "https://registry.yarnpkg.com/@discordjs/formatters/-/formatters-0.5.0.tgz#2d284c4271bc41984339936df1d0164e470f3b7a" - integrity sha512-98b3i+Y19RFq1Xke4NkVY46x8KjJQjldHUuEbCqMvp1F5Iq9HgnGpu91jOi/Ufazhty32eRsKnnzS8n4c+L93g== - dependencies: - discord-api-types "0.37.97" - -"@discordjs/rest@^2.3.0": - version "2.3.0" - resolved "https://registry.yarnpkg.com/@discordjs/rest/-/rest-2.3.0.tgz#06d37c7fb54a9be61134b5bbb201abd760343472" - integrity sha512-C1kAJK8aSYRv3ZwMG8cvrrW4GN0g5eMdP8AuN8ODH5DyOCbHgJspze1my3xHOAgwLJdKUbWNVyAeJ9cEdduqIg== +"@discordjs/formatters@^0.6.0": + version "0.6.0" + resolved "https://registry.yarnpkg.com/@discordjs/formatters/-/formatters-0.6.0.tgz#9a4ca075ab16a4823da9258bc5c39f06a2519235" + integrity sha512-YIruKw4UILt/ivO4uISmrGq2GdMY6EkoTtD0oS0GvkJFRZbTSdPhzYiUILbJ/QslsvC9H9nTgGgnarnIl4jMfw== dependencies: - "@discordjs/collection" "^2.1.0" - "@discordjs/util" "^1.1.0" - "@sapphire/async-queue" "^1.5.2" - "@sapphire/snowflake" "^3.5.3" - "@vladfrangu/async_event_emitter" "^2.2.4" - discord-api-types "0.37.83" - magic-bytes.js "^1.10.0" - tslib "^2.6.2" - undici "6.13.0" + discord-api-types "^0.37.114" -"@discordjs/rest@^2.4.0": - version "2.4.0" - resolved "https://registry.yarnpkg.com/@discordjs/rest/-/rest-2.4.0.tgz#63bfc816af58af844914e3589d7eae609cd199b5" - integrity sha512-Xb2irDqNcq+O8F0/k/NaDp7+t091p+acb51iA4bCKfIn+WFWd6HrNvcsSbMMxIR9NjcMZS6NReTKygqiQN+ntw== +"@discordjs/rest@^2.4.1": + version "2.4.1" + resolved "https://registry.yarnpkg.com/@discordjs/rest/-/rest-2.4.1.tgz#90a3a48b4b2963d10cbaf3b4a9efa5f2c3c279f7" + integrity sha512-a4Vv69usWY4ypwcENzH6QWYNrPwu+es3tRQMLKgaUFs0Mx2Yn7xfDW62++kcgckG8XbHWO7ej1x7raS7LuYgvA== dependencies: "@discordjs/collection" "^2.1.1" "@discordjs/util" "^1.1.1" "@sapphire/async-queue" "^1.5.3" "@sapphire/snowflake" "^3.5.3" "@vladfrangu/async_event_emitter" "^2.4.6" - discord-api-types "0.37.97" + discord-api-types "^0.37.114" magic-bytes.js "^1.10.0" tslib "^2.6.3" undici "6.19.8" @@ -122,20 +107,20 @@ resolved "https://registry.yarnpkg.com/@discordjs/util/-/util-1.1.1.tgz#bafcde0faa116c834da1258d78ec237080bbab29" integrity sha512-eddz6UnOBEB1oITPinyrB2Pttej49M9FZQY8NxgEvc3tq6ZICZ19m70RsmzRdDHk80O9NoYN/25AqJl8vPVf/g== -"@discordjs/ws@1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@discordjs/ws/-/ws-1.1.1.tgz#bffbfd46838258ab09054ed98ddef1a36f6507a3" - integrity sha512-PZ+vLpxGCRtmr2RMkqh8Zp+BenUaJqlS6xhgWKEZcgC/vfHLEzpHtKkB0sl3nZWpwtcKk6YWy+pU3okL2I97FA== +"@discordjs/ws@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@discordjs/ws/-/ws-1.2.0.tgz#befdaab25230814dca9bc863ece6077900336047" + integrity sha512-QH5CAFe3wHDiedbO+EI3OOiyipwWd+Q6BdoFZUw/Wf2fw5Cv2fgU/9UEtJRmJa9RecI+TAhdGPadMaEIur5yJg== dependencies: "@discordjs/collection" "^2.1.0" - "@discordjs/rest" "^2.3.0" + "@discordjs/rest" "^2.4.1" "@discordjs/util" "^1.1.0" "@sapphire/async-queue" "^1.5.2" "@types/ws" "^8.5.10" "@vladfrangu/async_event_emitter" "^2.2.4" - discord-api-types "0.37.83" + discord-api-types "^0.37.114" tslib "^2.6.2" - ws "^8.16.0" + ws "^8.17.0" "@eslint-community/eslint-utils@^4.2.0": version "4.4.0" @@ -1603,34 +1588,24 @@ dir-glob@^3.0.1: dependencies: path-type "^4.0.0" -discord-api-types@0.37.100: - version "0.37.100" - resolved "https://registry.yarnpkg.com/discord-api-types/-/discord-api-types-0.37.100.tgz#5979892d39511bc7f1dbb9660d2d2cad698b3de7" - integrity sha512-a8zvUI0GYYwDtScfRd/TtaNBDTXwP5DiDVX7K5OmE+DRT57gBqKnwtOC5Ol8z0mRW8KQfETIgiB8U0YZ9NXiCA== - -discord-api-types@0.37.83: - version "0.37.83" - resolved "https://registry.yarnpkg.com/discord-api-types/-/discord-api-types-0.37.83.tgz#a22a799729ceded8176ea747157837ddf4708b1f" - integrity sha512-urGGYeWtWNYMKnYlZnOnDHm8fVRffQs3U0SpE8RHeiuLKb/u92APS8HoQnPTFbnXmY1vVnXjXO4dOxcAn3J+DA== - -discord-api-types@0.37.97: - version "0.37.97" - resolved "https://registry.yarnpkg.com/discord-api-types/-/discord-api-types-0.37.97.tgz#d658573f726ad179261d538dbad4e7e8eca48d11" - integrity sha512-No1BXPcVkyVD4ZVmbNgDKaBoqgeQ+FJpzZ8wqHkfmBnTZig1FcH3iPPersiK1TUIAzgClh2IvOuVUYfcWLQAOA== +discord-api-types@^0.37.114: + version "0.37.114" + resolved "https://registry.yarnpkg.com/discord-api-types/-/discord-api-types-0.37.114.tgz#50ad3d436e0c80a93fcc59a6eb140eb0a8673b19" + integrity sha512-9b9oOpktWSmE6ooToc46wfw151SHC/+idmnZvtwpEzW85BijUspQxj4W2uOmo+nZVTdEyb3fku58k+4rHKpdSQ== -discord.js@^14.16.3: - version "14.16.3" - resolved "https://registry.yarnpkg.com/discord.js/-/discord.js-14.16.3.tgz#9553366953c992469f47a55af2a11c2054a9babe" - integrity sha512-EPCWE9OkA9DnFFNrO7Kl1WHHDYFXu3CNVFJg63bfU7hVtjZGyhShwZtSBImINQRWxWP2tgo2XI+QhdXx28r0aA== +discord.js@^14.17.0: + version "14.17.0" + resolved "https://registry.yarnpkg.com/discord.js/-/discord.js-14.17.0.tgz#ca68149d3d658f82032a0d45b6a7aec0cf9e28db" + integrity sha512-bK6oee/RBZF/LCPnR4afECsJV5voUVmfDmOHAMJSJeDeR42EkVyZJN3QVp1Uo0c3/OG0Z6vQVveY4+tFaMO4og== dependencies: - "@discordjs/builders" "^1.9.0" + "@discordjs/builders" "^1.10.0" "@discordjs/collection" "1.5.3" - "@discordjs/formatters" "^0.5.0" - "@discordjs/rest" "^2.4.0" + "@discordjs/formatters" "^0.6.0" + "@discordjs/rest" "^2.4.1" "@discordjs/util" "^1.1.1" - "@discordjs/ws" "1.1.1" + "@discordjs/ws" "^1.2.0" "@sapphire/snowflake" "3.5.3" - discord-api-types "0.37.100" + discord-api-types "^0.37.114" fast-deep-equal "3.1.3" lodash.snakecase "4.1.1" tslib "^2.6.3" @@ -4799,11 +4774,6 @@ unbzip2-stream@^1.4.3: buffer "^5.2.1" through "^2.3.8" -undici@6.13.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/undici/-/undici-6.13.0.tgz#7edbf4b7f3aac5f8a681d515151bf55cb3589d72" - integrity sha512-Q2rtqmZWrbP8nePMq7mOJIN98M0fYvSgV89vwl/BQRT4mDOeY2GXZngfGpcBBhtky3woM7G24wZV3Q304Bv6cw== - undici@6.19.8: version "6.19.8" resolved "https://registry.yarnpkg.com/undici/-/undici-6.19.8.tgz#002d7c8a28f8cc3a44ff33c3d4be4d85e15d40e1" @@ -4995,12 +4965,7 @@ ws@^7.4.5: resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.10.tgz#58b5c20dc281633f6c19113f39b349bd8bd558d9" integrity sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ== -ws@^8.16.0: - version "8.17.0" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.0.tgz#d145d18eca2ed25aaf791a183903f7be5e295fea" - integrity sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow== - -ws@^8.18.0: +ws@^8.17.0, ws@^8.18.0: version "8.18.0" resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.0.tgz#0d7505a6eafe2b0e712d232b42279f53bc289bbc" integrity sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==