From cbe2c584534fdb38ac951ea6659cc662e1c9bd07 Mon Sep 17 00:00:00 2001 From: Superchupu <53496941+SuperchupuDev@users.noreply.github.com> Date: Sat, 4 May 2024 22:41:07 +0100 Subject: [PATCH] chore: bump discord.js to 14.15.1 --- package.json | 4 +- pnpm-lock.yaml | 152 +++++++++++++++++++--------------------- src/commands/g-spy.ts | 10 ++- src/commands/removed.ts | 10 ++- 4 files changed, 90 insertions(+), 86 deletions(-) diff --git a/package.json b/package.json index 616fe21..413a531 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@prisma/client": "^5.13.0", "bufferutil": "^4.0.8", "dedent": "^1.5.3", - "discord.js": "^14.14.1", + "discord.js": "^14.15.1", "g-detector": "^0.1.6", "neon-env": "^0.2.1", "topgg-autoposter": "^2.0.2", @@ -47,7 +47,7 @@ "cross-env": "^7.0.3", "prisma": "^5.13.0", "standard-changelog": "^5.0.0", - "tsx": "^4.9.0", + "tsx": "^4.9.1", "typescript": "^5.4.5" }, "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 952d436..03fba1e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,8 +18,8 @@ importers: specifier: ^1.5.3 version: 1.5.3 discord.js: - specifier: ^14.14.1 - version: 14.14.1(bufferutil@4.0.8) + specifier: ^14.15.1 + version: 14.15.1(bufferutil@4.0.8) g-detector: specifier: ^0.1.6 version: 0.1.6 @@ -52,8 +52,8 @@ importers: specifier: ^5.0.0 version: 5.0.0 tsx: - specifier: ^4.9.0 - version: 4.9.0 + specifier: ^4.9.1 + version: 4.9.1 typescript: specifier: ^5.4.5 version: 5.4.5 @@ -132,32 +132,32 @@ packages: '@dabh/diagnostics@2.0.3': resolution: {integrity: sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==} - '@discordjs/builders@1.7.0': - resolution: {integrity: sha512-GDtbKMkg433cOZur8Dv6c25EHxduNIBsxeHrsRoIM8+AwmEZ8r0tEpckx/sHwTLwQPOF3e2JWloZh9ofCaMfAw==} + '@discordjs/builders@1.8.0': + resolution: {integrity: sha512-NHj5LucA0Td8g0RMbMP6wfvra4QRyvKp7bE/PEMACGcfsaZkqCi4zPZ83vvkaiqRKVhyoFgRWx9f6ZWtaeM/ww==} 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.0.0': - resolution: {integrity: sha512-YTWIXLrf5FsrLMycpMM9Q6vnZoR/lN2AWX23/Cuo8uOOtS8eHB2dyQaaGnaF8aZPYnttf2bkLMcXn/j6JUOi3w==} + '@discordjs/collection@2.1.0': + resolution: {integrity: sha512-mLcTACtXUuVgutoznkh6hS3UFqYirDYAg5Dc1m8xn6OvPjetnUlf/xjtqnnc47OwWdaoCQnHmHh9KofhD6uRqw==} engines: {node: '>=18'} - '@discordjs/formatters@0.3.3': - resolution: {integrity: sha512-wTcI1Q5cps1eSGhl6+6AzzZkBBlVrBdc9IUhJbijRgVjCNIIIZPgqnUj3ntFODsHrdbGU8BEG9XmDQmgEEYn3w==} + '@discordjs/formatters@0.4.0': + resolution: {integrity: sha512-fJ06TLC1NiruF35470q3Nr1bi95BdvKFAF+T5bNfZJ4bNdqZ3VZ+Ttg6SThqTxm6qumSG3choxLBHMC69WXNXQ==} engines: {node: '>=16.11.0'} - '@discordjs/rest@2.2.0': - resolution: {integrity: sha512-nXm9wT8oqrYFRMEqTXQx9DUTeEtXUDMmnUKIhZn6O2EeDY9VCdwj23XCPq7fkqMPKdF7ldAfeVKyxxFdbZl59A==} + '@discordjs/rest@2.3.0': + resolution: {integrity: sha512-C1kAJK8aSYRv3ZwMG8cvrrW4GN0g5eMdP8AuN8ODH5DyOCbHgJspze1my3xHOAgwLJdKUbWNVyAeJ9cEdduqIg==} engines: {node: '>=16.11.0'} - '@discordjs/util@1.0.2': - resolution: {integrity: sha512-IRNbimrmfb75GMNEjyznqM1tkI7HrZOf14njX7tCAAUetyZM1Pr8hX/EK2lxBCOgWDRmigbp24fD1hdMfQK5lw==} + '@discordjs/util@1.1.0': + resolution: {integrity: sha512-IndcI5hzlNZ7GS96RV3Xw1R2kaDuXEp7tRIy/KlhidpN/BQ1qh1NZt3377dMLTa44xDUNKT7hnXkA/oUAzD/lg==} engines: {node: '>=16.11.0'} - '@discordjs/ws@1.0.2': - resolution: {integrity: sha512-+XI82Rm2hKnFwAySXEep4A7Kfoowt6weO6381jgW+wVdTpMS/56qCvoXyFRY0slcv7c/U8My2PwIB2/wEaAh7Q==} + '@discordjs/ws@1.1.0': + resolution: {integrity: sha512-O97DIeSvfNTn5wz5vaER6ciyUsr7nOqSEtsLoMhhIgeFkhnxLRqSr00/Fpq2/ppLgjDGLbQCDzIK7ilGoB/M7A==} engines: {node: '>=16.11.0'} '@dotenvx/dotenvx@0.37.1': @@ -365,8 +365,8 @@ packages: resolution: {integrity: sha512-4It2mxPSr4OGn4HSQWGmhFMsNFGfFVhWeRPCRwbH972Ek2pzfGRZtb0pJ4Ze6oIzcyh2jw7nUDa6qGlWofgd9g==} engines: {node: '>=v16'} - '@sapphire/snowflake@3.5.1': - resolution: {integrity: sha512-BxcYGzgEsdlG0dKAyOm0ehLGm2CafIrfQTZGWgkfKYbj+pNNsorZ7EotuZukc2MT70E0UbppVbtpBrqpzVzjNA==} + '@sapphire/snowflake@3.5.3': + resolution: {integrity: sha512-jjmJywLAFoWeBi1W7994zZyiNWPIiqRRNAmSERxyg93xRGzNYvGjlZ0gR6x0F4gPRi2+0O6S71kOZYyr3cxaIQ==} engines: {node: '>=v14.0.0', npm: '>=7.0.0'} '@top-gg/sdk@3.1.6': @@ -387,8 +387,8 @@ packages: '@types/wrap-ansi@3.0.0': resolution: {integrity: sha512-ltIpx+kM7g/MLRZfkbL7EsCEjfzCcScLpkg37eXEtx5kmrAKBkTJwd1GIAjDSL8wTpM6Hzn5YO4pSb91BEwu1g==} - '@types/ws@8.5.9': - resolution: {integrity: sha512-jbdrY0a8lxfdTp/+r7Z4CkycbOFN8WX+IOchLJr3juT/xzbJ8URyTVSJ/hvNdadTgM1mnedb47n+Y31GsFnQlg==} + '@types/ws@8.5.10': + resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==} '@vladfrangu/async_event_emitter@2.2.4': resolution: {integrity: sha512-ButUPz9E9cXMLgvAW8aLAKKJJsPu1dY1/l/E8xzLFuysowXygs6GBcyunK9rnGC4zTsnIc2mQo71rGw9U+Ykug==} @@ -594,11 +594,11 @@ packages: resolution: {integrity: sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==} engines: {node: '>=0.3.1'} - discord-api-types@0.37.61: - resolution: {integrity: sha512-o/dXNFfhBpYHpQFdT6FWzeO7pKc838QeeZ9d91CfVAtpr5XLK4B/zYxQbYgPdoMiTDvJfzcsLW5naXgmHGDNXw==} + discord-api-types@0.37.83: + resolution: {integrity: sha512-urGGYeWtWNYMKnYlZnOnDHm8fVRffQs3U0SpE8RHeiuLKb/u92APS8HoQnPTFbnXmY1vVnXjXO4dOxcAn3J+DA==} - discord.js@14.14.1: - resolution: {integrity: sha512-/hUVzkIerxKHyRKopJy5xejp4MYKDPTszAnpYxzVVv4qJYf+Tkt+jnT2N29PIPschicaEEpXwF2ARrTYHYwQ5w==} + discord.js@14.15.1: + resolution: {integrity: sha512-Md87FiS2y5cMoikV6csH+5SF72Vt2sSVmgV6hfQKiWyT4cxrGWhOk64r99dwzMjB1VFATM98ExGe0WY4H981UA==} engines: {node: '>=16.11.0'} dot-prop@5.3.0: @@ -886,8 +886,8 @@ packages: minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - minipass@7.0.4: - resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==} + minipass@7.1.0: + resolution: {integrity: sha512-oGZRv2OT1lO2UF1zUcwdTb3wqUwI0kBGTgt/T7OdSj6M6N5m3o5uPf0AIW6lVxGGoiWUR7e2AwTE+xiwK8WQig==} engines: {node: '>=16 || 14 >=14.17'} ms@2.1.3: @@ -1151,8 +1151,8 @@ packages: tslib@2.6.2: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} - tsx@4.9.0: - resolution: {integrity: sha512-UY0UUhDPL6MkqkZU4xTEjEBOLfV+RIt4xeeJ1qwK73xai4/zveG+X6+tieILa7rjtegUW2LE4p7fw7gAoLuytA==} + tsx@4.9.1: + resolution: {integrity: sha512-CqSJaYyZ6GEqnGtPuMPQHvUwRGU6VHSVF+RDxoOmRg/XD4aF0pD973tKhoUYGQtdcoCHcSOGk34ioFaP+vYcMQ==} engines: {node: '>=18.0.0'} hasBin: true @@ -1181,14 +1181,14 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici@5.27.2: - resolution: {integrity: sha512-iS857PdOEy/y3wlM3yRp+6SNQQ6xU0mmZcwRSriqk+et/cwWAtwmIGf6WkoDN2EK/AMdCO/dfXzIwi+rFMrjjQ==} - engines: {node: '>=14.0'} - undici@5.28.4: resolution: {integrity: sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==} engines: {node: '>=14.0'} + undici@6.13.0: + resolution: {integrity: sha512-Q2rtqmZWrbP8nePMq7mOJIN98M0fYvSgV89vwl/BQRT4mDOeY2GXZngfGpcBBhtky3woM7G24wZV3Q304Bv6cw==} + engines: {node: '>=18.0'} + unpipe@1.0.0: resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} engines: {node: '>= 0.8'} @@ -1238,8 +1238,8 @@ packages: resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} engines: {node: '>=12'} - ws@8.14.2: - resolution: {integrity: sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==} + ws@8.17.0: + resolution: {integrity: sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow==} engines: {node: '>=10.0.0'} peerDependencies: bufferutil: ^4.0.1 @@ -1326,49 +1326,49 @@ snapshots: enabled: 2.0.0 kuler: 2.0.0 - '@discordjs/builders@1.7.0': + '@discordjs/builders@1.8.0': dependencies: - '@discordjs/formatters': 0.3.3 - '@discordjs/util': 1.0.2 + '@discordjs/formatters': 0.4.0 + '@discordjs/util': 1.1.0 '@sapphire/shapeshift': 3.9.7 - discord-api-types: 0.37.61 + discord-api-types: 0.37.83 fast-deep-equal: 3.1.3 ts-mixer: 6.0.4 tslib: 2.6.2 '@discordjs/collection@1.5.3': {} - '@discordjs/collection@2.0.0': {} + '@discordjs/collection@2.1.0': {} - '@discordjs/formatters@0.3.3': + '@discordjs/formatters@0.4.0': dependencies: - discord-api-types: 0.37.61 + discord-api-types: 0.37.83 - '@discordjs/rest@2.2.0': + '@discordjs/rest@2.3.0': dependencies: - '@discordjs/collection': 2.0.0 - '@discordjs/util': 1.0.2 + '@discordjs/collection': 2.1.0 + '@discordjs/util': 1.1.0 '@sapphire/async-queue': 1.5.2 - '@sapphire/snowflake': 3.5.1 + '@sapphire/snowflake': 3.5.3 '@vladfrangu/async_event_emitter': 2.2.4 - discord-api-types: 0.37.61 + discord-api-types: 0.37.83 magic-bytes.js: 1.10.0 tslib: 2.6.2 - undici: 5.27.2 + undici: 6.13.0 - '@discordjs/util@1.0.2': {} + '@discordjs/util@1.1.0': {} - '@discordjs/ws@1.0.2(bufferutil@4.0.8)': + '@discordjs/ws@1.1.0(bufferutil@4.0.8)': dependencies: - '@discordjs/collection': 2.0.0 - '@discordjs/rest': 2.2.0 - '@discordjs/util': 1.0.2 + '@discordjs/collection': 2.1.0 + '@discordjs/rest': 2.3.0 + '@discordjs/util': 1.1.0 '@sapphire/async-queue': 1.5.2 - '@types/ws': 8.5.9 + '@types/ws': 8.5.10 '@vladfrangu/async_event_emitter': 2.2.4 - discord-api-types: 0.37.61 + discord-api-types: 0.37.83 tslib: 2.6.2 - ws: 8.14.2(bufferutil@4.0.8) + ws: 8.17.0(bufferutil@4.0.8) transitivePeerDependencies: - bufferutil - utf-8-validate @@ -1540,7 +1540,7 @@ snapshots: fast-deep-equal: 3.1.3 lodash: 4.17.21 - '@sapphire/snowflake@3.5.1': {} + '@sapphire/snowflake@3.5.3': {} '@top-gg/sdk@3.1.6': dependencies: @@ -1561,7 +1561,7 @@ snapshots: '@types/wrap-ansi@3.0.0': {} - '@types/ws@8.5.9': + '@types/ws@8.5.10': dependencies: '@types/node': 20.12.8 @@ -1769,24 +1769,22 @@ snapshots: diff@5.2.0: {} - discord-api-types@0.37.61: {} + discord-api-types@0.37.83: {} - discord.js@14.14.1(bufferutil@4.0.8): + discord.js@14.15.1(bufferutil@4.0.8): dependencies: - '@discordjs/builders': 1.7.0 + '@discordjs/builders': 1.8.0 '@discordjs/collection': 1.5.3 - '@discordjs/formatters': 0.3.3 - '@discordjs/rest': 2.2.0 - '@discordjs/util': 1.0.2 - '@discordjs/ws': 1.0.2(bufferutil@4.0.8) - '@sapphire/snowflake': 3.5.1 - '@types/ws': 8.5.9 - discord-api-types: 0.37.61 + '@discordjs/formatters': 0.4.0 + '@discordjs/rest': 2.3.0 + '@discordjs/util': 1.1.0 + '@discordjs/ws': 1.1.0(bufferutil@4.0.8) + '@sapphire/snowflake': 3.5.3 + discord-api-types: 0.37.83 fast-deep-equal: 3.1.3 lodash.snakecase: 4.1.1 tslib: 2.6.2 - undici: 5.27.2 - ws: 8.14.2(bufferutil@4.0.8) + undici: 6.13.0 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -1912,7 +1910,7 @@ snapshots: foreground-child: 3.1.1 jackspeak: 2.3.6 minimatch: 9.0.4 - minipass: 7.0.4 + minipass: 7.1.0 path-scurry: 1.10.2 handlebars@4.7.8: @@ -2059,7 +2057,7 @@ snapshots: minimist@1.2.8: {} - minipass@7.0.4: {} + minipass@7.1.0: {} ms@2.1.3: {} @@ -2147,7 +2145,7 @@ snapshots: path-scurry@1.10.2: dependencies: lru-cache: 10.2.2 - minipass: 7.0.4 + minipass: 7.1.0 picocolors@1.0.0: {} @@ -2306,7 +2304,7 @@ snapshots: tslib@2.6.2: {} - tsx@4.9.0: + tsx@4.9.1: dependencies: esbuild: 0.20.2 get-tsconfig: 4.7.3 @@ -2326,14 +2324,12 @@ snapshots: undici-types@5.26.5: {} - undici@5.27.2: - dependencies: - '@fastify/busboy': 2.1.1 - undici@5.28.4: dependencies: '@fastify/busboy': 2.1.1 + undici@6.13.0: {} + unpipe@1.0.0: {} uri-js@4.4.1: @@ -2399,7 +2395,7 @@ snapshots: string-width: 5.1.2 strip-ansi: 7.1.0 - ws@8.14.2(bufferutil@4.0.8): + ws@8.17.0(bufferutil@4.0.8): optionalDependencies: bufferutil: 4.0.8 diff --git a/src/commands/g-spy.ts b/src/commands/g-spy.ts index 247f368..7faf756 100644 --- a/src/commands/g-spy.ts +++ b/src/commands/g-spy.ts @@ -5,15 +5,19 @@ import { ButtonBuilder, type ButtonInteraction, ButtonStyle, - type CommandInteraction, + type ChatInputCommandInteraction, ContextMenuCommandBuilder, PermissionFlagsBits, - SlashCommandBuilder + SlashCommandBuilder, + type UserContextMenuCommandInteraction } from 'discord.js'; export const appPermissions = [PermissionFlagsBits.ManageRoles]; -export async function onCommand(client: Application, interaction: CommandInteraction<'cached'>) { +export async function onCommand( + client: Application, + interaction: ChatInputCommandInteraction<'cached'> | UserContextMenuCommandInteraction<'cached'> +) { const member = interaction.options.getMember('user'); if (!member || member.id === interaction.user.id || member.user.bot) { diff --git a/src/commands/removed.ts b/src/commands/removed.ts index a247231..2a599a9 100644 --- a/src/commands/removed.ts +++ b/src/commands/removed.ts @@ -1,12 +1,16 @@ import type { Application } from '#classes'; import { ApplicationCommandType, - type CommandInteraction, + type ChatInputCommandInteraction, ContextMenuCommandBuilder, - SlashCommandBuilder + SlashCommandBuilder, + type UserContextMenuCommandInteraction } from 'discord.js'; -export async function onCommand(client: Application, interaction: CommandInteraction<'cached'>) { +export async function onCommand( + client: Application, + interaction: ChatInputCommandInteraction<'cached'> | UserContextMenuCommandInteraction<'cached'> +) { const member = interaction.options.getMember('user') ?? interaction.member; const user = interaction.options.getUser('user');