From 421d6f77375aabd03f426d36205acd407d1628cb Mon Sep 17 00:00:00 2001 From: nikosszzz <19nikospap@gmail.com> Date: Thu, 23 May 2024 13:56:14 +0300 Subject: [PATCH] bot: 3.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ESM 🎉 --- package.json | 15 +- pnpm-lock.yaml | 458 +++++++++++++---------------- rollup.config.ts | 10 +- src/commands/info/changelogs.ts | 8 +- src/commands/info/index.ts | 8 +- src/commands/info/info.ts | 5 +- src/commands/info/membercount.ts | 2 +- src/commands/info/ping.ts | 2 +- src/commands/music/index.ts | 32 +- src/commands/music/loop.ts | 2 +- src/commands/music/lyrics.ts | 2 +- src/commands/music/move.ts | 6 +- src/commands/music/nowplaying.ts | 2 +- src/commands/music/pause.ts | 2 +- src/commands/music/play.ts | 2 +- src/commands/music/playlist.ts | 2 +- src/commands/music/pruning.ts | 2 +- src/commands/music/queue.ts | 2 +- src/commands/music/remove.ts | 2 +- src/commands/music/resume.ts | 2 +- src/commands/music/shuffle.ts | 2 +- src/commands/music/skip.ts | 2 +- src/commands/music/skipto.ts | 2 +- src/commands/music/stop.ts | 2 +- src/commands/music/volume.ts | 2 +- src/commands/utility/index.ts | 4 +- src/commands/utility/serverinfo.ts | 2 +- src/commands/utility/userinfo.ts | 2 +- src/common/index.ts | 2 +- src/common/types.ts | 2 - src/components/Bot.ts | 2 +- src/components/MusicQueue.ts | 2 +- src/components/config.ts | 2 +- src/manager/index.ts | 4 +- src/manager/modules/ready.ts | 10 +- src/utils/index.ts | 4 + tsconfig.json | 25 +- 37 files changed, 300 insertions(+), 337 deletions(-) create mode 100644 src/utils/index.ts diff --git a/package.json b/package.json index 594da9b0..ce30fb46 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "music-bot", - "version": "3.2.1", + "version": "3.3.0", "description": "A general music Discord bot.", "main": "./src/bot.ts", + "type": "module", "repository": { "type": "git", "url": "https://github.com/nikosszzz/musicbot.git" @@ -17,9 +18,9 @@ }, "dependencies": { "@discordjs/voice": "^0.17.0", - "array-move": "^3.0.1", + "array-move": "^4.0.0", "bufferutil": "^4.0.8", - "chalk": "^4.1.2", + "chalk": "^5.3.0", "discord.js": "^14.15.2", "ffmpeg-static": "^5.2.0", "lyrics-finder": "^21.7.0", @@ -27,13 +28,13 @@ "play-dl": "^1.9.7", "sodium-native": "^4.1.1", "string-progressbar": "^1.0.4", - "utf-8-validate": "^6.0.3" + "utf-8-validate": "^6.0.4" }, "devDependencies": { "@rollup/plugin-typescript": "^11.1.6", - "@types/node": "^20.12.11", - "esbuild": "^0.21.1", - "rollup": "^4.17.2", + "@types/node": "^20.12.12", + "esbuild": "^0.21.3", + "rollup": "^4.18.0", "rollup-plugin-esbuild": "^6.1.1", "rollup-plugin-typescript-paths": "^1.5.0", "tslib": "^2.6.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cce9d396..a6f61c9c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,19 +10,19 @@ importers: dependencies: '@discordjs/voice': specifier: ^0.17.0 - version: 0.17.0(bufferutil@4.0.8)(ffmpeg-static@5.2.0)(opusscript@0.1.1)(utf-8-validate@6.0.3) + version: 0.17.0(bufferutil@4.0.8)(ffmpeg-static@5.2.0)(opusscript@0.1.1)(utf-8-validate@6.0.4) array-move: - specifier: ^3.0.1 - version: 3.0.1 + specifier: ^4.0.0 + version: 4.0.0 bufferutil: specifier: ^4.0.8 version: 4.0.8 chalk: - specifier: ^4.1.2 - version: 4.1.2 + specifier: ^5.3.0 + version: 5.3.0 discord.js: specifier: ^14.15.2 - version: 14.15.2(bufferutil@4.0.8)(utf-8-validate@6.0.3) + version: 14.15.2(bufferutil@4.0.8)(utf-8-validate@6.0.4) ffmpeg-static: specifier: ^5.2.0 version: 5.2.0 @@ -42,24 +42,24 @@ importers: specifier: ^1.0.4 version: 1.0.4 utf-8-validate: - specifier: ^6.0.3 - version: 6.0.3 + specifier: ^6.0.4 + version: 6.0.4 devDependencies: '@rollup/plugin-typescript': specifier: ^11.1.6 - version: 11.1.6(rollup@4.17.2)(tslib@2.6.2)(typescript@5.4.5) + version: 11.1.6(rollup@4.18.0)(tslib@2.6.2)(typescript@5.4.5) '@types/node': - specifier: ^20.12.11 - version: 20.12.11 + specifier: ^20.12.12 + version: 20.12.12 esbuild: - specifier: ^0.21.1 - version: 0.21.1 + specifier: ^0.21.3 + version: 0.21.3 rollup: - specifier: ^4.17.2 - version: 4.17.2 + specifier: ^4.18.0 + version: 4.18.0 rollup-plugin-esbuild: specifier: ^6.1.1 - version: 6.1.1(esbuild@0.21.1)(rollup@4.17.2) + version: 6.1.1(esbuild@0.21.3)(rollup@4.18.0) rollup-plugin-typescript-paths: specifier: ^1.5.0 version: 1.5.0(typescript@5.4.5) @@ -108,140 +108,140 @@ packages: resolution: {integrity: sha512-O97DIeSvfNTn5wz5vaER6ciyUsr7nOqSEtsLoMhhIgeFkhnxLRqSr00/Fpq2/ppLgjDGLbQCDzIK7ilGoB/M7A==} engines: {node: '>=16.11.0'} - '@esbuild/aix-ppc64@0.21.1': - resolution: {integrity: sha512-O7yppwipkXvnEPjzkSXJRk2g4bS8sUx9p9oXHq9MU/U7lxUzZVsnFZMDTmeeX9bfQxrFcvOacl/ENgOh0WP9pA==} + '@esbuild/aix-ppc64@0.21.3': + resolution: {integrity: sha512-yTgnwQpFVYfvvo4SvRFB0SwrW8YjOxEoT7wfMT7Ol5v7v5LDNvSGo67aExmxOb87nQNeWPVvaGBNfQ7BXcrZ9w==} engines: {node: '>=12'} cpu: [ppc64] os: [aix] - '@esbuild/android-arm64@0.21.1': - resolution: {integrity: sha512-jXhccq6es+onw7x8MxoFnm820mz7sGa9J14kLADclmiEUH4fyj+FjR6t0M93RgtlI/awHWhtF0Wgfhqgf9gDZA==} + '@esbuild/android-arm64@0.21.3': + resolution: {integrity: sha512-c+ty9necz3zB1Y+d/N+mC6KVVkGUUOcm4ZmT5i/Fk5arOaY3i6CA3P5wo/7+XzV8cb4GrI/Zjp8NuOQ9Lfsosw==} engines: {node: '>=12'} cpu: [arm64] os: [android] - '@esbuild/android-arm@0.21.1': - resolution: {integrity: sha512-hh3jKWikdnTtHCglDAeVO3Oyh8MaH8xZUaWMiCCvJ9/c3NtPqZq+CACOlGTxhddypXhl+8B45SeceYBfB/e8Ow==} + '@esbuild/android-arm@0.21.3': + resolution: {integrity: sha512-bviJOLMgurLJtF1/mAoJLxDZDL6oU5/ztMHnJQRejbJrSc9FFu0QoUoFhvi6qSKJEw9y5oGyvr9fuDtzJ30rNQ==} engines: {node: '>=12'} cpu: [arm] os: [android] - '@esbuild/android-x64@0.21.1': - resolution: {integrity: sha512-NPObtlBh4jQHE01gJeucqEhdoD/4ya2owSIS8lZYS58aR0x7oZo9lB2lVFxgTANSa5MGCBeoQtr+yA9oKCGPvA==} + '@esbuild/android-x64@0.21.3': + resolution: {integrity: sha512-JReHfYCRK3FVX4Ra+y5EBH1b9e16TV2OxrPAvzMsGeES0X2Ndm9ImQRI4Ket757vhc5XBOuGperw63upesclRw==} engines: {node: '>=12'} cpu: [x64] os: [android] - '@esbuild/darwin-arm64@0.21.1': - resolution: {integrity: sha512-BLT7TDzqsVlQRmJfO/FirzKlzmDpBWwmCUlyggfzUwg1cAxVxeA4O6b1XkMInlxISdfPAOunV9zXjvh5x99Heg==} + '@esbuild/darwin-arm64@0.21.3': + resolution: {integrity: sha512-U3fuQ0xNiAkXOmQ6w5dKpEvXQRSpHOnbw7gEfHCRXPeTKW9sBzVck6C5Yneb8LfJm0l6le4NQfkNPnWMSlTFUQ==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] - '@esbuild/darwin-x64@0.21.1': - resolution: {integrity: sha512-D3h3wBQmeS/vp93O4B+SWsXB8HvRDwMyhTNhBd8yMbh5wN/2pPWRW5o/hM3EKgk9bdKd9594lMGoTCTiglQGRQ==} + '@esbuild/darwin-x64@0.21.3': + resolution: {integrity: sha512-3m1CEB7F07s19wmaMNI2KANLcnaqryJxO1fXHUV5j1rWn+wMxdUYoPyO2TnAbfRZdi7ADRwJClmOwgT13qlP3Q==} engines: {node: '>=12'} cpu: [x64] os: [darwin] - '@esbuild/freebsd-arm64@0.21.1': - resolution: {integrity: sha512-/uVdqqpNKXIxT6TyS/oSK4XE4xWOqp6fh4B5tgAwozkyWdylcX+W4YF2v6SKsL4wCQ5h1bnaSNjWPXG/2hp8AQ==} + '@esbuild/freebsd-arm64@0.21.3': + resolution: {integrity: sha512-fsNAAl5pU6wmKHq91cHWQT0Fz0vtyE1JauMzKotrwqIKAswwP5cpHUCxZNSTuA/JlqtScq20/5KZ+TxQdovU/g==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-x64@0.21.1': - resolution: {integrity: sha512-paAkKN1n1jJitw+dAoR27TdCzxRl1FOEITx3h201R6NoXUojpMzgMLdkXVgCvaCSCqwYkeGLoe9UVNRDKSvQgw==} + '@esbuild/freebsd-x64@0.21.3': + resolution: {integrity: sha512-tci+UJ4zP5EGF4rp8XlZIdq1q1a/1h9XuronfxTMCNBslpCtmk97Q/5qqy1Mu4zIc0yswN/yP/BLX+NTUC1bXA==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] - '@esbuild/linux-arm64@0.21.1': - resolution: {integrity: sha512-G65d08YoH00TL7Xg4LaL3gLV21bpoAhQ+r31NUu013YB7KK0fyXIt05VbsJtpqh/6wWxoLJZOvQHYnodRrnbUQ==} + '@esbuild/linux-arm64@0.21.3': + resolution: {integrity: sha512-vvG6R5g5ieB4eCJBQevyDMb31LMHthLpXTc2IGkFnPWS/GzIFDnaYFp558O+XybTmYrVjxnryru7QRleJvmZ6Q==} engines: {node: '>=12'} cpu: [arm64] os: [linux] - '@esbuild/linux-arm@0.21.1': - resolution: {integrity: sha512-tRHnxWJnvNnDpNVnsyDhr1DIQZUfCXlHSCDohbXFqmg9W4kKR7g8LmA3kzcwbuxbRMKeit8ladnCabU5f2traA==} + '@esbuild/linux-arm@0.21.3': + resolution: {integrity: sha512-f6kz2QpSuyHHg01cDawj0vkyMwuIvN62UAguQfnNVzbge2uWLhA7TCXOn83DT0ZvyJmBI943MItgTovUob36SQ==} engines: {node: '>=12'} cpu: [arm] os: [linux] - '@esbuild/linux-ia32@0.21.1': - resolution: {integrity: sha512-tt/54LqNNAqCz++QhxoqB9+XqdsaZOtFD/srEhHYwBd3ZUOepmR1Eeot8bS+Q7BiEvy9vvKbtpHf+r6q8hF5UA==} + '@esbuild/linux-ia32@0.21.3': + resolution: {integrity: sha512-HjCWhH7K96Na+66TacDLJmOI9R8iDWDDiqe17C7znGvvE4sW1ECt9ly0AJ3dJH62jHyVqW9xpxZEU1jKdt+29A==} engines: {node: '>=12'} cpu: [ia32] os: [linux] - '@esbuild/linux-loong64@0.21.1': - resolution: {integrity: sha512-MhNalK6r0nZD0q8VzUBPwheHzXPr9wronqmZrewLfP7ui9Fv1tdPmg6e7A8lmg0ziQCziSDHxh3cyRt4YMhGnQ==} + '@esbuild/linux-loong64@0.21.3': + resolution: {integrity: sha512-BGpimEccmHBZRcAhdlRIxMp7x9PyJxUtj7apL2IuoG9VxvU/l/v1z015nFs7Si7tXUwEsvjc1rOJdZCn4QTU+Q==} engines: {node: '>=12'} cpu: [loong64] os: [linux] - '@esbuild/linux-mips64el@0.21.1': - resolution: {integrity: sha512-YCKVY7Zen5rwZV+nZczOhFmHaeIxR4Zn3jcmNH53LbgF6IKRwmrMywqDrg4SiSNApEefkAbPSIzN39FC8VsxPg==} + '@esbuild/linux-mips64el@0.21.3': + resolution: {integrity: sha512-5rMOWkp7FQGtAH3QJddP4w3s47iT20hwftqdm7b+loe95o8JU8ro3qZbhgMRy0VuFU0DizymF1pBKkn3YHWtsw==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] - '@esbuild/linux-ppc64@0.21.1': - resolution: {integrity: sha512-bw7bcQ+270IOzDV4mcsKAnDtAFqKO0jVv3IgRSd8iM0ac3L8amvCrujRVt1ajBTJcpDaFhIX+lCNRKteoDSLig==} + '@esbuild/linux-ppc64@0.21.3': + resolution: {integrity: sha512-h0zj1ldel89V5sjPLo5H1SyMzp4VrgN1tPkN29TmjvO1/r0MuMRwJxL8QY05SmfsZRs6TF0c/IDH3u7XYYmbAg==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] - '@esbuild/linux-riscv64@0.21.1': - resolution: {integrity: sha512-ARmDRNkcOGOm1AqUBSwRVDfDeD9hGYRfkudP2QdoonBz1ucWVnfBPfy7H4JPI14eYtZruRSczJxyu7SRYDVOcg==} + '@esbuild/linux-riscv64@0.21.3': + resolution: {integrity: sha512-dkAKcTsTJ+CRX6bnO17qDJbLoW37npd5gSNtSzjYQr0svghLJYGYB0NF1SNcU1vDcjXLYS5pO4qOW4YbFama4A==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] - '@esbuild/linux-s390x@0.21.1': - resolution: {integrity: sha512-o73TcUNMuoTZlhwFdsgr8SfQtmMV58sbgq6gQq9G1xUiYnHMTmJbwq65RzMx89l0iya69lR4bxBgtWiiOyDQZA==} + '@esbuild/linux-s390x@0.21.3': + resolution: {integrity: sha512-vnD1YUkovEdnZWEuMmy2X2JmzsHQqPpZElXx6dxENcIwTu+Cu5ERax6+Ke1QsE814Zf3c6rxCfwQdCTQ7tPuXA==} engines: {node: '>=12'} cpu: [s390x] os: [linux] - '@esbuild/linux-x64@0.21.1': - resolution: {integrity: sha512-da4/1mBJwwgJkbj4fMH7SOXq2zapgTo0LKXX1VUZ0Dxr+e8N0WbS80nSZ5+zf3lvpf8qxrkZdqkOqFfm57gXwA==} + '@esbuild/linux-x64@0.21.3': + resolution: {integrity: sha512-IOXOIm9WaK7plL2gMhsWJd+l2bfrhfilv0uPTptoRoSb2p09RghhQQp9YY6ZJhk/kqmeRt6siRdMSLLwzuT0KQ==} engines: {node: '>=12'} cpu: [x64] os: [linux] - '@esbuild/netbsd-x64@0.21.1': - resolution: {integrity: sha512-CPWs0HTFe5woTJN5eKPvgraUoRHrCtzlYIAv9wBC+FAyagBSaf+UdZrjwYyTGnwPGkThV4OCI7XibZOnPvONVw==} + '@esbuild/netbsd-x64@0.21.3': + resolution: {integrity: sha512-uTgCwsvQ5+vCQnqM//EfDSuomo2LhdWhFPS8VL8xKf+PKTCrcT/2kPPoWMTs22aB63MLdGMJiE3f1PHvCDmUOw==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] - '@esbuild/openbsd-x64@0.21.1': - resolution: {integrity: sha512-xxhTm5QtzNLc24R0hEkcH+zCx/o49AsdFZ0Cy5zSd/5tOj4X2g3/2AJB625NoadUuc4A8B3TenLJoYdWYOYCew==} + '@esbuild/openbsd-x64@0.21.3': + resolution: {integrity: sha512-vNAkR17Ub2MgEud2Wag/OE4HTSI6zlb291UYzHez/psiKarp0J8PKGDnAhMBcHFoOHMXHfExzmjMojJNbAStrQ==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] - '@esbuild/sunos-x64@0.21.1': - resolution: {integrity: sha512-CWibXszpWys1pYmbr9UiKAkX6x+Sxw8HWtw1dRESK1dLW5fFJ6rMDVw0o8MbadusvVQx1a8xuOxnHXT941Hp1A==} + '@esbuild/sunos-x64@0.21.3': + resolution: {integrity: sha512-W8H9jlGiSBomkgmouaRoTXo49j4w4Kfbl6I1bIdO/vT0+0u4f20ko3ELzV3hPI6XV6JNBVX+8BC+ajHkvffIJA==} engines: {node: '>=12'} cpu: [x64] os: [sunos] - '@esbuild/win32-arm64@0.21.1': - resolution: {integrity: sha512-jb5B4k+xkytGbGUS4T+Z89cQJ9DJ4lozGRSV+hhfmCPpfJ3880O31Q1srPCimm+V6UCbnigqD10EgDNgjvjerQ==} + '@esbuild/win32-arm64@0.21.3': + resolution: {integrity: sha512-EjEomwyLSCg8Ag3LDILIqYCZAq/y3diJ04PnqGRgq8/4O3VNlXyMd54j/saShaN4h5o5mivOjAzmU6C3X4v0xw==} engines: {node: '>=12'} cpu: [arm64] os: [win32] - '@esbuild/win32-ia32@0.21.1': - resolution: {integrity: sha512-PgyFvjJhXqHn1uxPhyN1wZ6dIomKjiLUQh1LjFvjiV1JmnkZ/oMPrfeEAZg5R/1ftz4LZWZr02kefNIQ5SKREQ==} + '@esbuild/win32-ia32@0.21.3': + resolution: {integrity: sha512-WGiE/GgbsEwR33++5rzjiYsKyHywE8QSZPF7Rfx9EBfK3Qn3xyR6IjyCr5Uk38Kg8fG4/2phN7sXp4NPWd3fcw==} engines: {node: '>=12'} cpu: [ia32] os: [win32] - '@esbuild/win32-x64@0.21.1': - resolution: {integrity: sha512-W9NttRZQR5ehAiqHGDnvfDaGmQOm6Fi4vSlce8mjM75x//XKuVAByohlEX6N17yZnVXxQFuh4fDRunP8ca6bfA==} + '@esbuild/win32-x64@0.21.3': + resolution: {integrity: sha512-xRxC0jaJWDLYvcUvjQmHCJSfMrgmUuvsoXgDeU/wTorQ1ngDdUBuFtgY3W1Pc5sprGAvZBtWdJX7RPg/iZZUqA==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -268,83 +268,83 @@ packages: rollup: optional: true - '@rollup/rollup-android-arm-eabi@4.17.2': - resolution: {integrity: sha512-NM0jFxY8bB8QLkoKxIQeObCaDlJKewVlIEkuyYKm5An1tdVZ966w2+MPQ2l8LBZLjR+SgyV+nRkTIunzOYBMLQ==} + '@rollup/rollup-android-arm-eabi@4.18.0': + resolution: {integrity: sha512-Tya6xypR10giZV1XzxmH5wr25VcZSncG0pZIjfePT0OVBvqNEurzValetGNarVrGiq66EBVAFn15iYX4w6FKgQ==} cpu: [arm] os: [android] - '@rollup/rollup-android-arm64@4.17.2': - resolution: {integrity: sha512-yeX/Usk7daNIVwkq2uGoq2BYJKZY1JfyLTaHO/jaiSwi/lsf8fTFoQW/n6IdAsx5tx+iotu2zCJwz8MxI6D/Bw==} + '@rollup/rollup-android-arm64@4.18.0': + resolution: {integrity: sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA==} cpu: [arm64] os: [android] - '@rollup/rollup-darwin-arm64@4.17.2': - resolution: {integrity: sha512-kcMLpE6uCwls023+kknm71ug7MZOrtXo+y5p/tsg6jltpDtgQY1Eq5sGfHcQfb+lfuKwhBmEURDga9N0ol4YPw==} + '@rollup/rollup-darwin-arm64@4.18.0': + resolution: {integrity: sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w==} cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-x64@4.17.2': - resolution: {integrity: sha512-AtKwD0VEx0zWkL0ZjixEkp5tbNLzX+FCqGG1SvOu993HnSz4qDI6S4kGzubrEJAljpVkhRSlg5bzpV//E6ysTQ==} + '@rollup/rollup-darwin-x64@4.18.0': + resolution: {integrity: sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA==} cpu: [x64] os: [darwin] - '@rollup/rollup-linux-arm-gnueabihf@4.17.2': - resolution: {integrity: sha512-3reX2fUHqN7sffBNqmEyMQVj/CKhIHZd4y631duy0hZqI8Qoqf6lTtmAKvJFYa6bhU95B1D0WgzHkmTg33In0A==} + '@rollup/rollup-linux-arm-gnueabihf@4.18.0': + resolution: {integrity: sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-musleabihf@4.17.2': - resolution: {integrity: sha512-uSqpsp91mheRgw96xtyAGP9FW5ChctTFEoXP0r5FAzj/3ZRv3Uxjtc7taRQSaQM/q85KEKjKsZuiZM3GyUivRg==} + '@rollup/rollup-linux-arm-musleabihf@4.18.0': + resolution: {integrity: sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.17.2': - resolution: {integrity: sha512-EMMPHkiCRtE8Wdk3Qhtciq6BndLtstqZIroHiiGzB3C5LDJmIZcSzVtLRbwuXuUft1Cnv+9fxuDtDxz3k3EW2A==} + '@rollup/rollup-linux-arm64-gnu@4.18.0': + resolution: {integrity: sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-musl@4.17.2': - resolution: {integrity: sha512-NMPylUUZ1i0z/xJUIx6VUhISZDRT+uTWpBcjdv0/zkp7b/bQDF+NfnfdzuTiB1G6HTodgoFa93hp0O1xl+/UbA==} + '@rollup/rollup-linux-arm64-musl@4.18.0': + resolution: {integrity: sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-powerpc64le-gnu@4.17.2': - resolution: {integrity: sha512-T19My13y8uYXPw/L/k0JYaX1fJKFT/PWdXiHr8mTbXWxjVF1t+8Xl31DgBBvEKclw+1b00Chg0hxE2O7bTG7GQ==} + '@rollup/rollup-linux-powerpc64le-gnu@4.18.0': + resolution: {integrity: sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA==} cpu: [ppc64] os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.17.2': - resolution: {integrity: sha512-BOaNfthf3X3fOWAB+IJ9kxTgPmMqPPH5f5k2DcCsRrBIbWnaJCgX2ll77dV1TdSy9SaXTR5iDXRL8n7AnoP5cg==} + '@rollup/rollup-linux-riscv64-gnu@4.18.0': + resolution: {integrity: sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg==} cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-s390x-gnu@4.17.2': - resolution: {integrity: sha512-W0UP/x7bnn3xN2eYMql2T/+wpASLE5SjObXILTMPUBDB/Fg/FxC+gX4nvCfPBCbNhz51C+HcqQp2qQ4u25ok6g==} + '@rollup/rollup-linux-s390x-gnu@4.18.0': + resolution: {integrity: sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg==} cpu: [s390x] os: [linux] - '@rollup/rollup-linux-x64-gnu@4.17.2': - resolution: {integrity: sha512-Hy7pLwByUOuyaFC6mAr7m+oMC+V7qyifzs/nW2OJfC8H4hbCzOX07Ov0VFk/zP3kBsELWNFi7rJtgbKYsav9QQ==} + '@rollup/rollup-linux-x64-gnu@4.18.0': + resolution: {integrity: sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==} cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-musl@4.17.2': - resolution: {integrity: sha512-h1+yTWeYbRdAyJ/jMiVw0l6fOOm/0D1vNLui9iPuqgRGnXA0u21gAqOyB5iHjlM9MMfNOm9RHCQ7zLIzT0x11Q==} + '@rollup/rollup-linux-x64-musl@4.18.0': + resolution: {integrity: sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg==} cpu: [x64] os: [linux] - '@rollup/rollup-win32-arm64-msvc@4.17.2': - resolution: {integrity: sha512-tmdtXMfKAjy5+IQsVtDiCfqbynAQE/TQRpWdVataHmhMb9DCoJxp9vLcCBjEQWMiUYxO1QprH/HbY9ragCEFLA==} + '@rollup/rollup-win32-arm64-msvc@4.18.0': + resolution: {integrity: sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA==} cpu: [arm64] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.17.2': - resolution: {integrity: sha512-7II/QCSTAHuE5vdZaQEwJq2ZACkBpQDOmQsE6D6XUbnBHW8IAhm4eTufL6msLJorzrHDFv3CF8oCA/hSIRuZeQ==} + '@rollup/rollup-win32-ia32-msvc@4.18.0': + resolution: {integrity: sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg==} cpu: [ia32] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.17.2': - resolution: {integrity: sha512-TGGO7v7qOq4CYmSBVEYpI1Y5xDuCEnbVC5Vth8mOsW0gDSzxNrVERPc790IGHsrT2dQSimgMr9Ub3Y1Jci5/8w==} + '@rollup/rollup-win32-x64-msvc@4.18.0': + resolution: {integrity: sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==} cpu: [x64] os: [win32] @@ -366,8 +366,8 @@ packages: '@types/node@10.17.60': resolution: {integrity: sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==} - '@types/node@20.12.11': - resolution: {integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==} + '@types/node@20.12.12': + resolution: {integrity: sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==} '@types/ws@8.5.10': resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==} @@ -380,13 +380,9 @@ packages: resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} engines: {node: '>= 6.0.0'} - ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - - array-move@3.0.1: - resolution: {integrity: sha512-H3Of6NIn2nNU1gsVDqDnYKY/LCdWvCMMOWifNGhKcVQgiZ6nOek39aESOvro6zmueP07exSl93YLvkN4fZOkSg==} - engines: {node: '>=10'} + array-move@4.0.0: + resolution: {integrity: sha512-+RY54S8OuVvg94THpneQvFRmqWdAHeqtMzgMW6JNurHxe8rsS07cHQdfGkXnTUXiBcyZ0j3SiDIxxj0RPiqCkQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} @@ -398,16 +394,9 @@ packages: caseless@0.12.0: resolution: {integrity: sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==} - chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - - color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - - color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + chalk@5.3.0: + resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} concat-stream@2.0.0: resolution: {integrity: sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==} @@ -460,8 +449,8 @@ packages: es-module-lexer@1.4.1: resolution: {integrity: sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w==} - esbuild@0.21.1: - resolution: {integrity: sha512-GPqx+FX7mdqulCeQ4TsGZQ3djBJkx5k7zBGtqt9ycVlWNg8llJ4RO9n2vciu8BN2zAEs6lPbPl0asZsAh7oWzg==} + esbuild@0.21.3: + resolution: {integrity: sha512-Kgq0/ZsAPzKrbOjCQcjoSmPoWhlcVnGAUo7jvaLHoxW1Drto0KGkR1xBNg2Cp43b9ImvxmPEJZ9xkfcnqPsfBw==} engines: {node: '>=12'} hasBin: true @@ -486,10 +475,6 @@ packages: get-tsconfig@4.7.2: resolution: {integrity: sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==} - has-flag@4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} - engines: {node: '>=8'} - hasown@2.0.1: resolution: {integrity: sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==} engines: {node: '>= 0.4'} @@ -619,8 +604,8 @@ packages: peerDependencies: typescript: '>=3.4' - rollup@4.17.2: - resolution: {integrity: sha512-/9ClTJPByC0U4zNLowV1tMBe8yMEAxewtR3cUNX5BoEpGH3dQEWpJLr6CLp0fPdYRF/fzVOgvDb1zXuakwF5kQ==} + rollup@4.18.0: + resolution: {integrity: sha512-QmJz14PX3rzbJCN1SG4Xe/bAAX2a6NpCP8ab2vfu2GiUr8AQcr2nCV/oEO3yneFarB67zk8ShlIyWb2LGTb3Sg==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true @@ -639,10 +624,6 @@ packages: string_decoder@1.3.0: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} - supports-color@7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} - engines: {node: '>=8'} - supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} @@ -671,8 +652,8 @@ packages: resolution: {integrity: sha512-Q2rtqmZWrbP8nePMq7mOJIN98M0fYvSgV89vwl/BQRT4mDOeY2GXZngfGpcBBhtky3woM7G24wZV3Q304Bv6cw==} engines: {node: '>=18.0'} - utf-8-validate@6.0.3: - resolution: {integrity: sha512-uIuGf9TWQ/y+0Lp+KGZCMuJWc3N9BHA+l/UmHd/oUHwJJDeysyTRxNQVkbzsIWfGFbRe3OcgML/i0mvVRPOyDA==} + utf-8-validate@6.0.4: + resolution: {integrity: sha512-xu9GQDeFp+eZ6LnCywXN/zBancWvOpUMzgjLPSjy4BRHSmTelvn2E0DG0o1sTiw5hkCKBHo8rwSKncfRfv2EEQ==} engines: {node: '>=6.14.2'} util-deprecate@1.0.2: @@ -737,13 +718,13 @@ snapshots: '@discordjs/util@1.1.0': {} - '@discordjs/voice@0.17.0(bufferutil@4.0.8)(ffmpeg-static@5.2.0)(opusscript@0.1.1)(utf-8-validate@6.0.3)': + '@discordjs/voice@0.17.0(bufferutil@4.0.8)(ffmpeg-static@5.2.0)(opusscript@0.1.1)(utf-8-validate@6.0.4)': dependencies: '@types/ws': 8.5.10 discord-api-types: 0.37.83 prism-media: 1.3.5(ffmpeg-static@5.2.0)(opusscript@0.1.1) tslib: 2.6.2 - ws: 8.16.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) + ws: 8.16.0(bufferutil@4.0.8)(utf-8-validate@6.0.4) transitivePeerDependencies: - '@discordjs/opus' - bufferutil @@ -752,7 +733,7 @@ snapshots: - opusscript - utf-8-validate - '@discordjs/ws@1.1.0(bufferutil@4.0.8)(utf-8-validate@6.0.3)': + '@discordjs/ws@1.1.0(bufferutil@4.0.8)(utf-8-validate@6.0.4)': dependencies: '@discordjs/collection': 2.1.0 '@discordjs/rest': 2.3.0 @@ -762,143 +743,143 @@ snapshots: '@vladfrangu/async_event_emitter': 2.2.4 discord-api-types: 0.37.83 tslib: 2.6.2 - ws: 8.16.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) + ws: 8.16.0(bufferutil@4.0.8)(utf-8-validate@6.0.4) transitivePeerDependencies: - bufferutil - utf-8-validate - '@esbuild/aix-ppc64@0.21.1': + '@esbuild/aix-ppc64@0.21.3': optional: true - '@esbuild/android-arm64@0.21.1': + '@esbuild/android-arm64@0.21.3': optional: true - '@esbuild/android-arm@0.21.1': + '@esbuild/android-arm@0.21.3': optional: true - '@esbuild/android-x64@0.21.1': + '@esbuild/android-x64@0.21.3': optional: true - '@esbuild/darwin-arm64@0.21.1': + '@esbuild/darwin-arm64@0.21.3': optional: true - '@esbuild/darwin-x64@0.21.1': + '@esbuild/darwin-x64@0.21.3': optional: true - '@esbuild/freebsd-arm64@0.21.1': + '@esbuild/freebsd-arm64@0.21.3': optional: true - '@esbuild/freebsd-x64@0.21.1': + '@esbuild/freebsd-x64@0.21.3': optional: true - '@esbuild/linux-arm64@0.21.1': + '@esbuild/linux-arm64@0.21.3': optional: true - '@esbuild/linux-arm@0.21.1': + '@esbuild/linux-arm@0.21.3': optional: true - '@esbuild/linux-ia32@0.21.1': + '@esbuild/linux-ia32@0.21.3': optional: true - '@esbuild/linux-loong64@0.21.1': + '@esbuild/linux-loong64@0.21.3': optional: true - '@esbuild/linux-mips64el@0.21.1': + '@esbuild/linux-mips64el@0.21.3': optional: true - '@esbuild/linux-ppc64@0.21.1': + '@esbuild/linux-ppc64@0.21.3': optional: true - '@esbuild/linux-riscv64@0.21.1': + '@esbuild/linux-riscv64@0.21.3': optional: true - '@esbuild/linux-s390x@0.21.1': + '@esbuild/linux-s390x@0.21.3': optional: true - '@esbuild/linux-x64@0.21.1': + '@esbuild/linux-x64@0.21.3': optional: true - '@esbuild/netbsd-x64@0.21.1': + '@esbuild/netbsd-x64@0.21.3': optional: true - '@esbuild/openbsd-x64@0.21.1': + '@esbuild/openbsd-x64@0.21.3': optional: true - '@esbuild/sunos-x64@0.21.1': + '@esbuild/sunos-x64@0.21.3': optional: true - '@esbuild/win32-arm64@0.21.1': + '@esbuild/win32-arm64@0.21.3': optional: true - '@esbuild/win32-ia32@0.21.1': + '@esbuild/win32-ia32@0.21.3': optional: true - '@esbuild/win32-x64@0.21.1': + '@esbuild/win32-x64@0.21.3': optional: true - '@rollup/plugin-typescript@11.1.6(rollup@4.17.2)(tslib@2.6.2)(typescript@5.4.5)': + '@rollup/plugin-typescript@11.1.6(rollup@4.18.0)(tslib@2.6.2)(typescript@5.4.5)': dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.17.2) + '@rollup/pluginutils': 5.1.0(rollup@4.18.0) resolve: 1.22.8 typescript: 5.4.5 optionalDependencies: - rollup: 4.17.2 + rollup: 4.18.0 tslib: 2.6.2 - '@rollup/pluginutils@5.1.0(rollup@4.17.2)': + '@rollup/pluginutils@5.1.0(rollup@4.18.0)': dependencies: '@types/estree': 1.0.5 estree-walker: 2.0.2 picomatch: 2.3.1 optionalDependencies: - rollup: 4.17.2 + rollup: 4.18.0 - '@rollup/rollup-android-arm-eabi@4.17.2': + '@rollup/rollup-android-arm-eabi@4.18.0': optional: true - '@rollup/rollup-android-arm64@4.17.2': + '@rollup/rollup-android-arm64@4.18.0': optional: true - '@rollup/rollup-darwin-arm64@4.17.2': + '@rollup/rollup-darwin-arm64@4.18.0': optional: true - '@rollup/rollup-darwin-x64@4.17.2': + '@rollup/rollup-darwin-x64@4.18.0': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.17.2': + '@rollup/rollup-linux-arm-gnueabihf@4.18.0': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.17.2': + '@rollup/rollup-linux-arm-musleabihf@4.18.0': optional: true - '@rollup/rollup-linux-arm64-gnu@4.17.2': + '@rollup/rollup-linux-arm64-gnu@4.18.0': optional: true - '@rollup/rollup-linux-arm64-musl@4.17.2': + '@rollup/rollup-linux-arm64-musl@4.18.0': optional: true - '@rollup/rollup-linux-powerpc64le-gnu@4.17.2': + '@rollup/rollup-linux-powerpc64le-gnu@4.18.0': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.17.2': + '@rollup/rollup-linux-riscv64-gnu@4.18.0': optional: true - '@rollup/rollup-linux-s390x-gnu@4.17.2': + '@rollup/rollup-linux-s390x-gnu@4.18.0': optional: true - '@rollup/rollup-linux-x64-gnu@4.17.2': + '@rollup/rollup-linux-x64-gnu@4.18.0': optional: true - '@rollup/rollup-linux-x64-musl@4.17.2': + '@rollup/rollup-linux-x64-musl@4.18.0': optional: true - '@rollup/rollup-win32-arm64-msvc@4.17.2': + '@rollup/rollup-win32-arm64-msvc@4.18.0': optional: true - '@rollup/rollup-win32-ia32-msvc@4.17.2': + '@rollup/rollup-win32-ia32-msvc@4.18.0': optional: true - '@rollup/rollup-win32-x64-msvc@4.17.2': + '@rollup/rollup-win32-x64-msvc@4.18.0': optional: true '@sapphire/async-queue@1.5.2': {} @@ -914,13 +895,13 @@ snapshots: '@types/node@10.17.60': {} - '@types/node@20.12.11': + '@types/node@20.12.12': dependencies: undici-types: 5.26.5 '@types/ws@8.5.10': dependencies: - '@types/node': 20.12.11 + '@types/node': 20.12.12 '@vladfrangu/async_event_emitter@2.2.4': {} @@ -930,11 +911,7 @@ snapshots: transitivePeerDependencies: - supports-color - ansi-styles@4.3.0: - dependencies: - color-convert: 2.0.1 - - array-move@3.0.1: {} + array-move@4.0.0: {} buffer-from@1.1.2: {} @@ -944,16 +921,7 @@ snapshots: caseless@0.12.0: {} - chalk@4.1.2: - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - - color-convert@2.0.1: - dependencies: - color-name: 1.1.4 - - color-name@1.1.4: {} + chalk@5.3.0: {} concat-stream@2.0.0: dependencies: @@ -968,14 +936,14 @@ snapshots: discord-api-types@0.37.83: {} - discord.js@14.15.2(bufferutil@4.0.8)(utf-8-validate@6.0.3): + discord.js@14.15.2(bufferutil@4.0.8)(utf-8-validate@6.0.4): dependencies: '@discordjs/builders': 1.8.1 '@discordjs/collection': 1.5.3 '@discordjs/formatters': 0.4.0 '@discordjs/rest': 2.3.0 '@discordjs/util': 1.1.0 - '@discordjs/ws': 1.1.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) + '@discordjs/ws': 1.1.0(bufferutil@4.0.8)(utf-8-validate@6.0.4) '@sapphire/snowflake': 3.5.3 discord-api-types: 0.37.83 fast-deep-equal: 3.1.3 @@ -1016,31 +984,31 @@ snapshots: es-module-lexer@1.4.1: {} - esbuild@0.21.1: + esbuild@0.21.3: optionalDependencies: - '@esbuild/aix-ppc64': 0.21.1 - '@esbuild/android-arm': 0.21.1 - '@esbuild/android-arm64': 0.21.1 - '@esbuild/android-x64': 0.21.1 - '@esbuild/darwin-arm64': 0.21.1 - '@esbuild/darwin-x64': 0.21.1 - '@esbuild/freebsd-arm64': 0.21.1 - '@esbuild/freebsd-x64': 0.21.1 - '@esbuild/linux-arm': 0.21.1 - '@esbuild/linux-arm64': 0.21.1 - '@esbuild/linux-ia32': 0.21.1 - '@esbuild/linux-loong64': 0.21.1 - '@esbuild/linux-mips64el': 0.21.1 - '@esbuild/linux-ppc64': 0.21.1 - '@esbuild/linux-riscv64': 0.21.1 - '@esbuild/linux-s390x': 0.21.1 - '@esbuild/linux-x64': 0.21.1 - '@esbuild/netbsd-x64': 0.21.1 - '@esbuild/openbsd-x64': 0.21.1 - '@esbuild/sunos-x64': 0.21.1 - '@esbuild/win32-arm64': 0.21.1 - '@esbuild/win32-ia32': 0.21.1 - '@esbuild/win32-x64': 0.21.1 + '@esbuild/aix-ppc64': 0.21.3 + '@esbuild/android-arm': 0.21.3 + '@esbuild/android-arm64': 0.21.3 + '@esbuild/android-x64': 0.21.3 + '@esbuild/darwin-arm64': 0.21.3 + '@esbuild/darwin-x64': 0.21.3 + '@esbuild/freebsd-arm64': 0.21.3 + '@esbuild/freebsd-x64': 0.21.3 + '@esbuild/linux-arm': 0.21.3 + '@esbuild/linux-arm64': 0.21.3 + '@esbuild/linux-ia32': 0.21.3 + '@esbuild/linux-loong64': 0.21.3 + '@esbuild/linux-mips64el': 0.21.3 + '@esbuild/linux-ppc64': 0.21.3 + '@esbuild/linux-riscv64': 0.21.3 + '@esbuild/linux-s390x': 0.21.3 + '@esbuild/linux-x64': 0.21.3 + '@esbuild/netbsd-x64': 0.21.3 + '@esbuild/openbsd-x64': 0.21.3 + '@esbuild/sunos-x64': 0.21.3 + '@esbuild/win32-arm64': 0.21.3 + '@esbuild/win32-ia32': 0.21.3 + '@esbuild/win32-x64': 0.21.3 estree-walker@2.0.2: {} @@ -1064,8 +1032,6 @@ snapshots: dependencies: resolve-pkg-maps: 1.0.0 - has-flag@4.0.0: {} - hasown@2.0.1: dependencies: function-bind: 1.1.2 @@ -1168,14 +1134,14 @@ snapshots: path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 - rollup-plugin-esbuild@6.1.1(esbuild@0.21.1)(rollup@4.17.2): + rollup-plugin-esbuild@6.1.1(esbuild@0.21.3)(rollup@4.18.0): dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.17.2) + '@rollup/pluginutils': 5.1.0(rollup@4.18.0) debug: 4.3.4 es-module-lexer: 1.4.1 - esbuild: 0.21.1 + esbuild: 0.21.3 get-tsconfig: 4.7.2 - rollup: 4.17.2 + rollup: 4.18.0 transitivePeerDependencies: - supports-color @@ -1183,26 +1149,26 @@ snapshots: dependencies: typescript: 5.4.5 - rollup@4.17.2: + rollup@4.18.0: dependencies: '@types/estree': 1.0.5 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.17.2 - '@rollup/rollup-android-arm64': 4.17.2 - '@rollup/rollup-darwin-arm64': 4.17.2 - '@rollup/rollup-darwin-x64': 4.17.2 - '@rollup/rollup-linux-arm-gnueabihf': 4.17.2 - '@rollup/rollup-linux-arm-musleabihf': 4.17.2 - '@rollup/rollup-linux-arm64-gnu': 4.17.2 - '@rollup/rollup-linux-arm64-musl': 4.17.2 - '@rollup/rollup-linux-powerpc64le-gnu': 4.17.2 - '@rollup/rollup-linux-riscv64-gnu': 4.17.2 - '@rollup/rollup-linux-s390x-gnu': 4.17.2 - '@rollup/rollup-linux-x64-gnu': 4.17.2 - '@rollup/rollup-linux-x64-musl': 4.17.2 - '@rollup/rollup-win32-arm64-msvc': 4.17.2 - '@rollup/rollup-win32-ia32-msvc': 4.17.2 - '@rollup/rollup-win32-x64-msvc': 4.17.2 + '@rollup/rollup-android-arm-eabi': 4.18.0 + '@rollup/rollup-android-arm64': 4.18.0 + '@rollup/rollup-darwin-arm64': 4.18.0 + '@rollup/rollup-darwin-x64': 4.18.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.18.0 + '@rollup/rollup-linux-arm-musleabihf': 4.18.0 + '@rollup/rollup-linux-arm64-gnu': 4.18.0 + '@rollup/rollup-linux-arm64-musl': 4.18.0 + '@rollup/rollup-linux-powerpc64le-gnu': 4.18.0 + '@rollup/rollup-linux-riscv64-gnu': 4.18.0 + '@rollup/rollup-linux-s390x-gnu': 4.18.0 + '@rollup/rollup-linux-x64-gnu': 4.18.0 + '@rollup/rollup-linux-x64-musl': 4.18.0 + '@rollup/rollup-win32-arm64-msvc': 4.18.0 + '@rollup/rollup-win32-ia32-msvc': 4.18.0 + '@rollup/rollup-win32-x64-msvc': 4.18.0 fsevents: 2.3.3 safe-buffer@5.2.1: {} @@ -1219,10 +1185,6 @@ snapshots: dependencies: safe-buffer: 5.2.1 - supports-color@7.2.0: - dependencies: - has-flag: 4.0.0 - supports-preserve-symlinks-flag@1.0.0: {} tr46@0.0.3: {} @@ -1239,7 +1201,7 @@ snapshots: undici@6.13.0: {} - utf-8-validate@6.0.3: + utf-8-validate@6.0.4: dependencies: node-gyp-build: 4.8.0 @@ -1252,7 +1214,7 @@ snapshots: tr46: 0.0.3 webidl-conversions: 3.0.1 - ws@8.16.0(bufferutil@4.0.8)(utf-8-validate@6.0.3): + ws@8.16.0(bufferutil@4.0.8)(utf-8-validate@6.0.4): optionalDependencies: bufferutil: 4.0.8 - utf-8-validate: 6.0.3 + utf-8-validate: 6.0.4 diff --git a/rollup.config.ts b/rollup.config.ts index a2064ab8..c64ab7f7 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from "rollup"; -import { typescriptPaths as paths } from "rollup-plugin-typescript-paths"; +import { typescriptPaths } from "rollup-plugin-typescript-paths"; import { execSync } from "node:child_process"; -import version from "typescript"; +import ts from "typescript"; import esbuild from 'rollup-plugin-esbuild'; function hash(): string { @@ -24,12 +24,12 @@ export default defineConfig([{ inlineDynamicImports: true, minifyInternalExports: true, compact: true, - format: "cjs", + format: "esm", strict: true, sourcemap: false, }, plugins: [ - paths({ preserveExtensions: true, nonRelative: true }), + typescriptPaths({ preserveExtensions: true, nonRelative: true }), esbuild({ platform: "node", target: "esnext", @@ -41,7 +41,7 @@ export default defineConfig([{ ignoreAnnotations: true, define: { __VERSION__: `"${hash()}"`, - __TYPESCRIPTVERSION__: `"${version.version}"` + __TYPESCRIPTVERSION__: `"${ts.version}"` }, treeShaking: true }) diff --git a/src/commands/info/changelogs.ts b/src/commands/info/changelogs.ts index b7e0acb1..6c20abf2 100644 --- a/src/commands/info/changelogs.ts +++ b/src/commands/info/changelogs.ts @@ -1,4 +1,4 @@ -import type { Command } from "@common/types"; +import type { Command } from "@common"; import { EmbedBuilder, SlashCommandBuilder } from "discord.js"; export default { @@ -7,10 +7,10 @@ export default { .setDescription("Displays information about the latest Music Bot update."), async execute(interaction) { - const bugfixes = `- queue: Fix double \`Queue ended.\` message from the /stop command - - queue: Fix an issue where the \`Loading...\` message was not edited to the Now Playing embed.`; + const bugfixes = `- None`; - const whatsnew = `- bot: Updated and upgraded`; + const whatsnew = `- bot: Updated and upgraded + - codebase: Update to ESM format`; const UpdateEmbed = new EmbedBuilder() .setColor("NotQuiteBlack") diff --git a/src/commands/info/index.ts b/src/commands/info/index.ts index d825ef96..10669bb9 100644 --- a/src/commands/info/index.ts +++ b/src/commands/info/index.ts @@ -1,7 +1,7 @@ -import changelogs from "./changelogs"; -import info from "./info"; -import membercount from "./membercount"; -import ping from "./ping"; +import changelogs from "./changelogs.js"; +import info from "./info.js"; +import membercount from "./membercount.js"; +import ping from "./ping.js"; export const commands = [ changelogs, diff --git a/src/commands/info/info.ts b/src/commands/info/info.ts index 299c19a2..c782cfe6 100644 --- a/src/commands/info/info.ts +++ b/src/commands/info/info.ts @@ -1,8 +1,7 @@ import { EmbedBuilder, SlashCommandBuilder, version as djsVersion } from "discord.js"; import { Logger } from "@components/Logger"; -import { timeConverter } from "@utils/timeConverter"; -import { hash } from "@utils/hash"; -import type { Command } from "@common/types"; +import { timeConverter, hash } from "@utils"; +import type { Command } from "@common"; import { version } from "node:process"; export default { diff --git a/src/commands/info/membercount.ts b/src/commands/info/membercount.ts index 6b15244e..982adc37 100644 --- a/src/commands/info/membercount.ts +++ b/src/commands/info/membercount.ts @@ -1,4 +1,4 @@ -import type { Command } from "@common/types"; +import type { Command } from "@common"; import { EmbedBuilder, SlashCommandBuilder } from "discord.js"; export default { diff --git a/src/commands/info/ping.ts b/src/commands/info/ping.ts index b6b9a091..71dfea80 100644 --- a/src/commands/info/ping.ts +++ b/src/commands/info/ping.ts @@ -1,6 +1,6 @@ import { EmbedBuilder, SlashCommandBuilder } from "discord.js"; import { Logger } from "@components/Logger"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() diff --git a/src/commands/music/index.ts b/src/commands/music/index.ts index 3918d185..f55a847e 100644 --- a/src/commands/music/index.ts +++ b/src/commands/music/index.ts @@ -1,19 +1,19 @@ -import loop from "./loop"; -import lyrics from "./lyrics"; -import move from "./move"; -import nowplaying from "./nowplaying"; -import pause from "./pause"; -import play from "./play"; -import playlist from "./playlist"; -import pruning from "./pruning"; -import queue from "./queue"; -import remove from "./remove"; -import resume from "./resume"; -import shuffle from "./shuffle"; -import skip from "./skip"; -import skipto from "./skipto"; -import stop from "./stop"; -import volume from "./volume"; +import loop from "./loop.js"; +import lyrics from "./lyrics.js"; +import move from "./move.js"; +import nowplaying from "./nowplaying.js"; +import pause from "./pause.js"; +import play from "./play.js"; +import playlist from "./playlist.js"; +import pruning from "./pruning.js"; +import queue from "./queue.js"; +import remove from "./remove.js"; +import resume from "./resume.js"; +import shuffle from "./shuffle.js"; +import skip from "./skip.js"; +import skipto from "./skipto.js"; +import stop from "./stop.js"; +import volume from "./volume.js"; export const commands = [ loop, diff --git a/src/commands/music/loop.ts b/src/commands/music/loop.ts index 72547ca7..ee1cf68d 100644 --- a/src/commands/music/loop.ts +++ b/src/commands/music/loop.ts @@ -1,6 +1,6 @@ import { EmbedBuilder, type GuildMember, SlashCommandBuilder } from "discord.js"; import { canModifyQueue } from "@components/QueueUtils"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() diff --git a/src/commands/music/lyrics.ts b/src/commands/music/lyrics.ts index 6e2bafbb..cbedd149 100644 --- a/src/commands/music/lyrics.ts +++ b/src/commands/music/lyrics.ts @@ -2,7 +2,7 @@ import { EmbedBuilder, SlashCommandBuilder } from "discord.js"; // @ts-ignore import lyricsFinder from "lyrics-finder"; import { Logger } from "@components/Logger"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() diff --git a/src/commands/music/move.ts b/src/commands/music/move.ts index 4edfe252..9713fe8d 100644 --- a/src/commands/music/move.ts +++ b/src/commands/music/move.ts @@ -1,7 +1,7 @@ import { type GuildMember, EmbedBuilder, SlashCommandBuilder } from "discord.js"; import { canModifyQueue } from "@components/QueueUtils"; -import move from "array-move"; -import type { Command } from "@common/types"; +import { arrayMoveImmutable } from "array-move"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() @@ -39,7 +39,7 @@ export default { if (firstPos <= 1) return interaction.reply({ content: "Provide valid position numbers.", ephemeral: true }); const song = queue.songs[firstPos - 1]; - queue.songs = move(queue.songs, firstPos - 1, secondPos == 1 ? 1 : secondPos - 1); + queue.songs = arrayMoveImmutable(queue.songs, firstPos - 1, secondPos == 1 ? 1 : secondPos - 1); const moveEmbed = new EmbedBuilder() .setColor("NotQuiteBlack") diff --git a/src/commands/music/nowplaying.ts b/src/commands/music/nowplaying.ts index af24d358..2f98ac81 100644 --- a/src/commands/music/nowplaying.ts +++ b/src/commands/music/nowplaying.ts @@ -1,7 +1,7 @@ import { EmbedBuilder, SlashCommandBuilder } from "discord.js"; import { splitBar } from "string-progressbar"; import { Logger } from "@components/Logger"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() diff --git a/src/commands/music/pause.ts b/src/commands/music/pause.ts index f36f4838..a8b86ea8 100644 --- a/src/commands/music/pause.ts +++ b/src/commands/music/pause.ts @@ -1,6 +1,6 @@ import { type GuildMember, EmbedBuilder, SlashCommandBuilder } from "discord.js"; import { canModifyQueue } from "@components/QueueUtils"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() diff --git a/src/commands/music/play.ts b/src/commands/music/play.ts index 2dbd1f1d..a4dd4995 100644 --- a/src/commands/music/play.ts +++ b/src/commands/music/play.ts @@ -4,7 +4,7 @@ import { MusicQueue } from "@components/MusicQueue"; import { Song } from "@components/Song"; import { Logger } from "@components/Logger"; import { sp_validate, so_validate, yt_validate } from "play-dl"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() diff --git a/src/commands/music/playlist.ts b/src/commands/music/playlist.ts index 8c8c15cf..45bb52ff 100644 --- a/src/commands/music/playlist.ts +++ b/src/commands/music/playlist.ts @@ -3,7 +3,7 @@ import { type GuildMember, EmbedBuilder, SlashCommandBuilder, PermissionFlagsBit import { Logger } from "@components/Logger"; import { MusicQueue } from "@components/MusicQueue"; import { Playlist } from "@components/Playlist"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; import { SoundCloudPlaylist, SpotifyPlaylist } from "play-dl"; export default { diff --git a/src/commands/music/pruning.ts b/src/commands/music/pruning.ts index 123afd89..9c766c90 100644 --- a/src/commands/music/pruning.ts +++ b/src/commands/music/pruning.ts @@ -1,5 +1,5 @@ import { EmbedBuilder, SlashCommandBuilder } from "discord.js"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; import { config } from "@components/config"; export default { diff --git a/src/commands/music/queue.ts b/src/commands/music/queue.ts index aee820e3..889d72d8 100644 --- a/src/commands/music/queue.ts +++ b/src/commands/music/queue.ts @@ -1,7 +1,7 @@ import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, SlashCommandBuilder, ButtonStyle, type CollectedInteraction, type CacheType, type ChatInputCommandInteraction } from "discord.js"; import { Logger } from "@components/Logger"; import type { Song } from "@components/Song"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; let currentPage: number = 0 as number; diff --git a/src/commands/music/remove.ts b/src/commands/music/remove.ts index f320e3d4..7f83818d 100644 --- a/src/commands/music/remove.ts +++ b/src/commands/music/remove.ts @@ -1,6 +1,6 @@ import { EmbedBuilder, type GuildMember, SlashCommandBuilder } from "discord.js"; import { canModifyQueue } from "@components/QueueUtils"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() diff --git a/src/commands/music/resume.ts b/src/commands/music/resume.ts index 2e7c0d00..7f1c3e97 100644 --- a/src/commands/music/resume.ts +++ b/src/commands/music/resume.ts @@ -1,6 +1,6 @@ import { EmbedBuilder, type GuildMember, SlashCommandBuilder } from "discord.js"; import { canModifyQueue } from "@components/QueueUtils"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() diff --git a/src/commands/music/shuffle.ts b/src/commands/music/shuffle.ts index c435fdeb..21161732 100644 --- a/src/commands/music/shuffle.ts +++ b/src/commands/music/shuffle.ts @@ -1,6 +1,6 @@ import { EmbedBuilder, type GuildMember, SlashCommandBuilder } from "discord.js"; import { canModifyQueue } from "@components/QueueUtils"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() diff --git a/src/commands/music/skip.ts b/src/commands/music/skip.ts index cf79a2c9..7a7c830b 100644 --- a/src/commands/music/skip.ts +++ b/src/commands/music/skip.ts @@ -1,6 +1,6 @@ import { type GuildMember, EmbedBuilder, SlashCommandBuilder } from "discord.js"; import { canModifyQueue } from "@components/QueueUtils"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() diff --git a/src/commands/music/skipto.ts b/src/commands/music/skipto.ts index 9b4b840c..cc7cb893 100644 --- a/src/commands/music/skipto.ts +++ b/src/commands/music/skipto.ts @@ -1,7 +1,7 @@ import { type GuildMember, EmbedBuilder, SlashCommandBuilder } from "discord.js"; import { canModifyQueue } from "@components/QueueUtils"; import type { Song } from "@components/Song"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() diff --git a/src/commands/music/stop.ts b/src/commands/music/stop.ts index f1fd0ff8..bff78a06 100644 --- a/src/commands/music/stop.ts +++ b/src/commands/music/stop.ts @@ -1,6 +1,6 @@ import { type GuildMember, EmbedBuilder, SlashCommandBuilder } from "discord.js"; import { canModifyQueue } from "@components/QueueUtils"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() diff --git a/src/commands/music/volume.ts b/src/commands/music/volume.ts index 1bc927a7..f1feceee 100644 --- a/src/commands/music/volume.ts +++ b/src/commands/music/volume.ts @@ -1,6 +1,6 @@ import { type GuildMember, EmbedBuilder, SlashCommandBuilder } from "discord.js"; import { canModifyQueue } from "@components/QueueUtils"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() diff --git a/src/commands/utility/index.ts b/src/commands/utility/index.ts index 0164492e..aeefd46d 100644 --- a/src/commands/utility/index.ts +++ b/src/commands/utility/index.ts @@ -1,5 +1,5 @@ -import serverinfo from "./serverinfo"; -import userinfo from "./userinfo"; +import serverinfo from "./serverinfo.js"; +import userinfo from "./userinfo.js"; export const commands = [ serverinfo, diff --git a/src/commands/utility/serverinfo.ts b/src/commands/utility/serverinfo.ts index c3f14822..d8c2f367 100644 --- a/src/commands/utility/serverinfo.ts +++ b/src/commands/utility/serverinfo.ts @@ -1,6 +1,6 @@ import { ChannelType, EmbedBuilder, SlashCommandBuilder } from "discord.js"; import { Logger } from "@components/Logger"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() diff --git a/src/commands/utility/userinfo.ts b/src/commands/utility/userinfo.ts index da79e416..ce2b7f10 100644 --- a/src/commands/utility/userinfo.ts +++ b/src/commands/utility/userinfo.ts @@ -1,6 +1,6 @@ import { EmbedBuilder, SlashCommandBuilder, PermissionFlagsBits, type GuildMember } from "discord.js"; import { Logger } from "@components/Logger"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; export default { data: new SlashCommandBuilder() diff --git a/src/common/index.ts b/src/common/index.ts index b133371a..611b14fa 100644 --- a/src/common/index.ts +++ b/src/common/index.ts @@ -1 +1 @@ -export * from "./types"; \ No newline at end of file +export * from "./types.js"; \ No newline at end of file diff --git a/src/common/types.ts b/src/common/types.ts index 0d35029b..08cb101e 100644 --- a/src/common/types.ts +++ b/src/common/types.ts @@ -36,5 +36,3 @@ export type QueueOptions = { connection: VoiceConnection; interaction: ChatInputCommandInteraction; } - -export { }; diff --git a/src/components/Bot.ts b/src/components/Bot.ts index ff329c8c..aefbcb40 100644 --- a/src/components/Bot.ts +++ b/src/components/Bot.ts @@ -1,5 +1,5 @@ import { Client, type ClientOptions, Collection } from "discord.js"; -import type { Command } from "@common/types"; +import type { Command } from "@common"; import { config } from "@components/config"; import { Manager } from "@manager"; import type { MusicQueue } from "@components/MusicQueue"; diff --git a/src/components/MusicQueue.ts b/src/components/MusicQueue.ts index 4d7b1791..ab1140cd 100644 --- a/src/components/MusicQueue.ts +++ b/src/components/MusicQueue.ts @@ -14,7 +14,7 @@ import { } from "@discordjs/voice"; import type { CacheType, ChatInputCommandInteraction, Message, TextChannel } from "discord.js"; import { promisify } from "node:util"; -import type { QueueOptions } from "common"; +import type { QueueOptions } from "@common"; import { config } from "@components/config"; import type { Song } from "@components/Song"; import type { Bot } from "@components/Bot"; diff --git a/src/components/config.ts b/src/components/config.ts index 2bf985d6..016c5bed 100644 --- a/src/components/config.ts +++ b/src/components/config.ts @@ -1,4 +1,4 @@ -import { Config } from "@common/types"; +import { Config } from "@common"; export const config: Config = { TOKEN: process.env.TOKEN || "", diff --git a/src/manager/index.ts b/src/manager/index.ts index 4f6eafe2..64157270 100644 --- a/src/manager/index.ts +++ b/src/manager/index.ts @@ -1,5 +1,5 @@ -import { ready } from "./modules/ready"; -import { commands } from "./modules/commands"; +import { ready } from "./modules/ready.js"; +import { commands } from "./modules/commands.js"; import { Logger } from "@components/Logger"; import type { Bot } from "@components/Bot"; diff --git a/src/manager/modules/ready.ts b/src/manager/modules/ready.ts index 27fcdcd4..75cd4fdd 100644 --- a/src/manager/modules/ready.ts +++ b/src/manager/modules/ready.ts @@ -1,10 +1,10 @@ import { ActivityType, Routes } from "discord.js"; import { Logger } from "@components/Logger"; -import { commands as musicCmds } from "commands/music"; -import { commands as infoCmds } from "commands/info"; -import { commands as utilCmds } from "commands/utility"; +import { commands as musicCmds } from "commands/music/index.js"; +import { commands as infoCmds } from "commands/info/index.js"; +import { commands as utilCmds } from "commands/utility/index.js"; import { config } from "@components/config"; -import { Bot } from "@components/Bot"; +import type { Bot } from "@components/Bot"; export async function ready(client: Bot): Promise { client.once("ready", async (): Promise => { @@ -41,7 +41,7 @@ export async function ready(client: Bot): Promise { function setupAutomaticPresence(): void { let state = 0; - setInterval(async () => { + setInterval(() => { const presences: [{ type: ActivityType, message: string }] = [ { type: ActivityType.Listening, message: `music.` }, ]; diff --git a/src/utils/index.ts b/src/utils/index.ts new file mode 100644 index 00000000..a20cb7b8 --- /dev/null +++ b/src/utils/index.ts @@ -0,0 +1,4 @@ +export * from "./hash.js"; +export * from "./queue.js"; +export * from "./sleep.js"; +export * from "./timeConverter.js"; \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 52bb40f3..3961d32a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,37 +5,36 @@ "outDir": "./dist", "rootDir": ".", "baseUrl": "./src", - "module": "ESNext", + "module": "NodeNext", "target": "ESNext", - "moduleResolution": "Node", + "moduleResolution": "NodeNext", "resolveJsonModule": true, "allowUnreachableCode": false, "noUnusedLocals": true, "esModuleInterop": true, "noUnusedParameters": true, - "strictPropertyInitialization": true, + "isolatedModules": true, + "allowSyntheticDefaultImports": true, "skipDefaultLibCheck": true, "skipLibCheck": true, "noImplicitAny": true, "newLine": "LF", + "allowJs": true, "paths": { "@manager": [ - "manager/index" + "manager/index.js" ], - "@common/*": [ - "common/*" + "@common": [ + "common/index.js" ], - "@utils/*": [ - "utils/*" + "@utils": [ + "utils/index.js" ], "@components/*": [ - "components/*" - ], - "@components": [ - "components/index" + "components/*.js" ], "@bot": [ - "bot" + "index.js" ] } }