From 29bc07319e56a196330d31ae47a538e4a466db6a Mon Sep 17 00:00:00 2001 From: TEGRAXD <58646818+TEGRAXD@users.noreply.github.com> Date: Thu, 22 Aug 2024 22:27:40 +0700 Subject: [PATCH 1/3] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 43d4415..1ce77ac 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Laurentina is Audio Controller and Queue Wrapper for Shoukaku and Discord.js to - Resume - Stop - Loop +- Shuffle - Get Queue - Clear Queue From 4bc9bc7097a62b9ec32b67272599770b401a06b6 Mon Sep 17 00:00:00 2001 From: TEGRAXD <58646818+TEGRAXD@users.noreply.github.com> Date: Thu, 22 Aug 2024 22:28:23 +0700 Subject: [PATCH 2/3] Changing version to 1.0.5 --- README.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1ce77ac..7c835f9 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Laurentina is Audio Controller and Queue Wrapper for Shoukaku and Discord.js to Get the latest package from [NPM](https://www.npmjs.com/package/laurentina). ## Version -1.0.4 +1.0.5 ## Usage - Binding Laurentina diff --git a/package.json b/package.json index eb1efe3..bfa77c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "laurentina", - "version": "1.0.4", + "version": "1.0.5", "description": "Audio controller and queue wrapper for Shoukaku and Discord.js to manage music playback.", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", From 0a9ed879c3d3b29a8eaad8dd1bb747aa0d7a2c44 Mon Sep 17 00:00:00 2001 From: TEGRAXD <58646818+TEGRAXD@users.noreply.github.com> Date: Sat, 24 Aug 2024 01:39:17 +0700 Subject: [PATCH 3/3] Upgrade: Shoukaku 4.1.0, Discord Api Types 0.37.97. Fixing playTrack encoded string options --- README.md | 4 +-- package-lock.json | 63 +++++++++++++++++++++++++---------------------- package.json | 4 +-- src/index.ts | 2 +- 4 files changed, 38 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 7c835f9..f9cdecd 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Laurentina [![Build](https://img.shields.io/github/actions/workflow/status/TEGRAXD/laurentina/tests.yml)](https://github.com/TEGRAXD/laurentina) -[![Version](https://img.shields.io/badge/version-1.0.4-blue)](https://www.npmjs.com/package/laurentina) +[![Version](https://img.shields.io/badge/version-1.0.5-blue)](https://www.npmjs.com/package/laurentina) [![Github Stars](https://img.shields.io/github/stars/TEGRAXD/Laurentina?style=flat-square)](https://github.com/TEGRAXD/laurentina) [![License](https://img.shields.io/github/license/TEGRAXD/laurentina)](https://github.com/TEGRAXD/laurentina?tab=readme-ov-file#license) @@ -107,7 +107,7 @@ let controller = client.laurentina.getController("guildID"); if (!controller) return; -const result = await controller.search("ytseach", "Roshidere - Kawaikute gomen"); +const result = await controller.search("ytsearch", "Roshidere - Kawaikute gomen"); if (!result?.length) return; diff --git a/package-lock.json b/package-lock.json index 9ea4028..17525ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,17 @@ { "name": "laurentina", - "version": "1.0.0", + "version": "1.0.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "laurentina", - "version": "1.0.0", + "version": "1.0.5", "license": "MIT", "dependencies": { - "discord-api-types": "^0.37.91", + "discord-api-types": "^0.37.97", "discord.js": "^14.15.3", - "shoukaku": "^4.0.1" + "shoukaku": "^4.1.0" }, "devDependencies": { "@rollup/plugin-babel": "^6.0.4", @@ -2855,9 +2855,10 @@ } }, "node_modules/discord-api-types": { - "version": "0.37.91", - "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.91.tgz", - "integrity": "sha512-yPGOP1SlkRtnT9Vor5noZHNm7t+EpRdaDvEoeqWTSCzeenMWyB1RbOGKYxdZ1OZijji51Yd1yodhOTi9CfrrQg==" + "version": "0.37.97", + "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.97.tgz", + "integrity": "sha512-No1BXPcVkyVD4ZVmbNgDKaBoqgeQ+FJpzZ8wqHkfmBnTZig1FcH3iPPersiK1TUIAzgClh2IvOuVUYfcWLQAOA==", + "license": "MIT" }, "node_modules/discord.js": { "version": "14.15.3", @@ -5721,9 +5722,9 @@ "license": "MIT" }, "node_modules/micromatch": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", - "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, "license": "MIT", "dependencies": { @@ -6237,11 +6238,12 @@ } }, "node_modules/shoukaku": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/shoukaku/-/shoukaku-4.0.1.tgz", - "integrity": "sha512-+Y94AnUFabCkE8O2Y3MSfnVmiiQ1MMVK/DO962Q23KPTWJkuqs+S/CPRQSOPWqo+ISq7teVxGJsSapwnJOrFgQ==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/shoukaku/-/shoukaku-4.1.0.tgz", + "integrity": "sha512-MnkVczmAgw0Fh0OKqSrlDv3qRtUFridHpkOog4K7YeK0RkRBjg7J0oa3SZwj5Jpz3V+0+2mQes9nPTWiOnF3+g==", + "license": "MIT", "dependencies": { - "ws": "^8.14.2" + "ws": "^8.18.0" }, "engines": { "node": ">=18.0.0", @@ -6958,9 +6960,10 @@ "license": "ISC" }, "node_modules/ws": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", - "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "license": "MIT", "engines": { "node": ">=10.0.0" }, @@ -9046,9 +9049,9 @@ "dev": true }, "discord-api-types": { - "version": "0.37.91", - "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.91.tgz", - "integrity": "sha512-yPGOP1SlkRtnT9Vor5noZHNm7t+EpRdaDvEoeqWTSCzeenMWyB1RbOGKYxdZ1OZijji51Yd1yodhOTi9CfrrQg==" + "version": "0.37.97", + "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.97.tgz", + "integrity": "sha512-No1BXPcVkyVD4ZVmbNgDKaBoqgeQ+FJpzZ8wqHkfmBnTZig1FcH3iPPersiK1TUIAzgClh2IvOuVUYfcWLQAOA==" }, "discord.js": { "version": "14.15.3", @@ -11043,9 +11046,9 @@ "dev": true }, "micromatch": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", - "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, "requires": { "braces": "^3.0.3", @@ -11399,11 +11402,11 @@ "dev": true }, "shoukaku": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/shoukaku/-/shoukaku-4.0.1.tgz", - "integrity": "sha512-+Y94AnUFabCkE8O2Y3MSfnVmiiQ1MMVK/DO962Q23KPTWJkuqs+S/CPRQSOPWqo+ISq7teVxGJsSapwnJOrFgQ==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/shoukaku/-/shoukaku-4.1.0.tgz", + "integrity": "sha512-MnkVczmAgw0Fh0OKqSrlDv3qRtUFridHpkOog4K7YeK0RkRBjg7J0oa3SZwj5Jpz3V+0+2mQes9nPTWiOnF3+g==", "requires": { - "ws": "^8.14.2" + "ws": "^8.18.0" } }, "signal-exit": { @@ -11882,9 +11885,9 @@ } }, "ws": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", - "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", "requires": {} }, "y18n": { diff --git a/package.json b/package.json index bfa77c0..75ca279 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,9 @@ "dist/" ], "dependencies": { - "discord-api-types": "^0.37.91", + "discord-api-types": "^0.37.97", "discord.js": "^14.15.3", - "shoukaku": "^4.0.1" + "shoukaku": "^4.1.0" }, "devDependencies": { "@rollup/plugin-babel": "^6.0.4", diff --git a/src/index.ts b/src/index.ts index 70c045b..3b65ba3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -109,7 +109,7 @@ class AudioController extends EventEmitter { this.clearTimer(); try { - await this.player.playTrack({ track: this.currentTrack.encoded }); + await this.player.playTrack({ track: { encoded: this.currentTrack.encoded } }) if (callback) await callback(this.currentTrack);