Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Pickysaurus committed Oct 3, 2024
1 parent eebf2a8 commit c4db91d
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 45 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@types/pg": "^8.10.2",
"axios": "^1.6.0",
"cookie-parser": "^1.4.6",
"discord.js": "^14.15.3",
"discord.js": "latest",
"dotenv": "^16.3.1",
"ejs": "^3.1.10",
"express": "^4.19.2",
Expand Down
4 changes: 2 additions & 2 deletions src/interactions/user-profile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Client, Snowflake, EmbedBuilder, ContextMenuCommandInteraction, ContextMenuCommandBuilder, ApplicationCommandType, CommandInteraction } from "discord.js";
import { Client, Snowflake, EmbedBuilder, ContextMenuCommandInteraction, ContextMenuCommandBuilder, ApplicationCommandType, CommandInteraction, ContextMenuCommandType } from "discord.js";
import { DiscordInteraction, ClientExt } from "../types/DiscordTypes";
import { getUserByDiscordId, userProfileEmbed, userEmbed } from '../api/bot-db';
import { logMessage } from "../api/util";
Expand All @@ -8,7 +8,7 @@ import { DiscordBotUser } from "../api/DiscordBotUser";
const discordInteraction: DiscordInteraction = {
command: new ContextMenuCommandBuilder()
.setName('Profile - Nexus Mods')
.setType(ApplicationCommandType.User),
.setType(ApplicationCommandType.User as ContextMenuCommandType),
public: true,
guilds: [ '581095546291355649' ],
action
Expand Down
129 changes: 87 additions & 42 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ __metadata:
version: 6
cacheKey: 8

"@discordjs/builders@npm:^1.8.2":
version: 1.8.2
resolution: "@discordjs/builders@npm:1.8.2"
"@discordjs/builders@npm:^1.9.0":
version: 1.9.0
resolution: "@discordjs/builders@npm:1.9.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.5.0
"@discordjs/util": ^1.1.1
"@sapphire/shapeshift": ^4.0.0
discord-api-types: 0.37.97
fast-deep-equal: ^3.1.3
ts-mixer: ^6.0.4
tslib: ^2.6.2
checksum: 65c707f28fb40b2875ebc08d580b6902eaf988c0e70ad674e33893abfdde74b52fc491476336a312c4f18de2fc599e1299341af152265d84864c907a12749a8e
tslib: ^2.6.3
checksum: 082c5b7a486c8f3320ab1632e2ec55f9bbdee0ca81663796c7f4897e957fbda16348e4732bc726531ecbbef15f799e57fa105d1d37209fefb1e9c489d2f41cba
languageName: node
linkType: hard

Expand All @@ -34,12 +34,19 @@ __metadata:
languageName: node
linkType: hard

"@discordjs/formatters@npm:^0.4.0":
version: 0.4.0
resolution: "@discordjs/formatters@npm:0.4.0"
"@discordjs/collection@npm:^2.1.1":
version: 2.1.1
resolution: "@discordjs/collection@npm:2.1.1"
checksum: 8c4cd75061b378a35dfa50c4403828b8e6d5d32934047d1d26e5a4fcc2c1b8135ebf74a6dd9ec61afcb4ec030d596b85da5463dc28cad084635cd184eb69c453
languageName: node
linkType: hard

"@discordjs/formatters@npm:^0.5.0":
version: 0.5.0
resolution: "@discordjs/formatters@npm:0.5.0"
dependencies:
discord-api-types: 0.37.83
checksum: 130ab7ba104635d7d0f92f4c3de67dbc60cdab004e9db605e0f2c7f410a9808df8776e4d5d45632597dc7257713dc77bb616ee25bb0827117247b6bebfe35921
discord-api-types: 0.37.97
checksum: 006cfbfc1166addd2b63097b9bd55699f3f4058cd1dbc3f0e4811ae55d65bf0456259b1cce39494cc8899aae290c2299c13a318290dff4a5f3c00de33410d6c5
languageName: node
linkType: hard

Expand All @@ -60,14 +67,38 @@ __metadata:
languageName: node
linkType: hard

"@discordjs/rest@npm:^2.4.0":
version: 2.4.0
resolution: "@discordjs/rest@npm:2.4.0"
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
magic-bytes.js: ^1.10.0
tslib: ^2.6.3
undici: 6.19.8
checksum: 005522106515d15984d9cea59cfe1e5839bbb726c6cea907b34abeea4a5a5944104fdcec7e7adc20ee6a7d86da6c2a48929ce0667090d95c4b39ff48f119b6a7
languageName: node
linkType: hard

"@discordjs/util@npm:^1.1.0":
version: 1.1.0
resolution: "@discordjs/util@npm:1.1.0"
checksum: b4db3fc6017986cd0e7fd6aa50e890e1259e79c6e0ff9c07685a86b2c22409a42f146f282d907885444f37ca596220c166d8be11851fab7f9e2c1ee932fd524e
languageName: node
linkType: hard

"@discordjs/ws@npm:^1.1.1":
"@discordjs/util@npm:^1.1.1":
version: 1.1.1
resolution: "@discordjs/util@npm:1.1.1"
checksum: 13f25aa2917de732bdd90e9cee9322b69c8c0a173206e2ce308f1bb177d4ce20a138efdb5b0ec5029a10ebbbde71d4c12ba51354b09db4b488e8de429c393fd4
languageName: node
linkType: hard

"@discordjs/ws@npm:1.1.1":
version: 1.1.1
resolution: "@discordjs/ws@npm:1.1.1"
dependencies:
Expand Down Expand Up @@ -200,20 +231,20 @@ __metadata:
languageName: node
linkType: hard

"@sapphire/async-queue@npm:^1.5.2":
"@sapphire/async-queue@npm:^1.5.2, @sapphire/async-queue@npm:^1.5.3":
version: 1.5.3
resolution: "@sapphire/async-queue@npm:1.5.3"
checksum: e9d71249621a4e3763827ac45f1480f88e09db490c377e01a258cc23e4c2d442adda47f4aab8baa101a746f51f06dc96e748c5d327fc235b27c5fc018b795ef7
languageName: node
linkType: hard

"@sapphire/shapeshift@npm:^3.9.7":
version: 3.9.7
resolution: "@sapphire/shapeshift@npm:3.9.7"
"@sapphire/shapeshift@npm:^4.0.0":
version: 4.0.0
resolution: "@sapphire/shapeshift@npm:4.0.0"
dependencies:
fast-deep-equal: ^3.1.3
lodash: ^4.17.21
checksum: a36032ff8fc54056ea21e0cdbbea84c3d80c0c0fb19b2685e14e29111ab9c1172c9273e1e54d49e2a62ba5a393f18b3dab9330d34b97d3519d572e32dd64913d
checksum: d312dd529c3b3d221a8fcd58428d03de2a744a1568ad810f9f75e1f4d5a0387952285b436b37f29141a810f6bbbe310ed3c31882c57d260a744f39beb35649f0
languageName: node
linkType: hard

Expand Down Expand Up @@ -393,7 +424,7 @@ __metadata:
languageName: node
linkType: hard

"@vladfrangu/async_event_emitter@npm:^2.2.4":
"@vladfrangu/async_event_emitter@npm:^2.2.4, @vladfrangu/async_event_emitter@npm:^2.4.6":
version: 2.4.6
resolution: "@vladfrangu/async_event_emitter@npm:2.4.6"
checksum: 924e35d9adf8a045c9846c0c96618aa61c40c776b52b8d6ee510781367004ec5fda8949bf5f0d54d1896b041fccc0e5a71844c379c87b955b6412f5f18615cd9
Expand Down Expand Up @@ -842,30 +873,44 @@ __metadata:
languageName: node
linkType: hard

"discord-api-types@npm:0.37.100":
version: 0.37.100
resolution: "discord-api-types@npm:0.37.100"
checksum: ba0c6eaedbaaea6a4f1481133f978e1bff668a0f85da5e6b96569c811e1cf2fb70b4f417711b1c7ddf450b392904713112b7f6789c3a7b2eaeef2fcee890fe29
languageName: node
linkType: hard

"discord-api-types@npm:0.37.83":
version: 0.37.83
resolution: "discord-api-types@npm:0.37.83"
checksum: ab2a31188352d9c742f09a114a95322e7f7de90199cb9f5571f7f5ac25765e7abc9b83c15c14d513ffc5e1d63d9e3ea5ff088fa8a1c5d9c1e1f395b27027cef0
languageName: node
linkType: hard

"discord.js@npm:^14.15.3":
version: 14.15.3
resolution: "discord.js@npm:14.15.3"
"discord-api-types@npm:0.37.97":
version: 0.37.97
resolution: "discord-api-types@npm:0.37.97"
checksum: e2d9f394246f1af7dcf639ffb416d8c9f95dbde88a15b6667f2409066143d89d1425b9b83638de68997990a7ae499e99d56c7105ea3876ec618b14bd8e789df7
languageName: node
linkType: hard

"discord.js@npm:latest":
version: 14.16.3
resolution: "discord.js@npm:14.16.3"
dependencies:
"@discordjs/builders": ^1.8.2
"@discordjs/builders": ^1.9.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.5.0
"@discordjs/rest": ^2.4.0
"@discordjs/util": ^1.1.1
"@discordjs/ws": 1.1.1
"@sapphire/snowflake": 3.5.3
discord-api-types: 0.37.83
discord-api-types: 0.37.100
fast-deep-equal: 3.1.3
lodash.snakecase: 4.1.1
tslib: 2.6.2
undici: 6.13.0
checksum: 0b521caee9040c3a39200e6bf01b60230e9abd89b13e632054be2a2e08b74708b0776dd61ccf5e737968c33907e824c7fca9aeb62a293700cd5d517ce82f795d
tslib: ^2.6.3
undici: 6.19.8
checksum: 71528ffb57d2039ca889638d53fa0b109bbd62ee802fbb1d147e6b2aab75452e9126e855b9ae5303c7fd79cab084c612ffb10ff1367fdfee5f9dbb76e6f7c608
languageName: node
linkType: hard

Expand Down Expand Up @@ -1989,7 +2034,7 @@ __metadata:
axios: ^1.6.0
cookie-parser: ^1.4.6
copyfiles: ^2.4.1
discord.js: ^14.15.3
discord.js: latest
dotenv: ^16.3.1
ejs: ^3.1.10
eslint: ^8.47.0
Expand Down Expand Up @@ -2816,14 +2861,7 @@ __metadata:
languageName: node
linkType: hard

"tslib@npm:2.6.2":
version: 2.6.2
resolution: "tslib@npm:2.6.2"
checksum: 329ea56123005922f39642318e3d1f0f8265d1e7fcb92c633e0809521da75eeaca28d2cf96d7248229deb40e5c19adf408259f4b9640afd20d13aecc1430f3ad
languageName: node
linkType: hard

"tslib@npm:^2.6.2":
"tslib@npm:^2.6.2, tslib@npm:^2.6.3":
version: 2.7.0
resolution: "tslib@npm:2.7.0"
checksum: 1606d5c89f88d466889def78653f3aab0f88692e80bb2066d090ca6112ae250ec1cfa9dbfaab0d17b60da15a4186e8ec4d893801c67896b277c17374e36e1d28
Expand Down Expand Up @@ -2913,6 +2951,13 @@ __metadata:
languageName: node
linkType: hard

"undici@npm:6.19.8":
version: 6.19.8
resolution: "undici@npm:6.19.8"
checksum: 2f812769992a187d9c55809b6943059c0bb1340687a0891f769de02101342dded0b9c8874cd5af4a49daaeba8284101d74a1fbda4de04c604ba7a5f6190b9ea2
languageName: node
linkType: hard

"unpipe@npm:1.0.0, unpipe@npm:~1.0.0":
version: 1.0.0
resolution: "unpipe@npm:1.0.0"
Expand Down

0 comments on commit c4db91d

Please sign in to comment.