Skip to content

Commit

Permalink
Merge pull request #9 from TEGRAXD/dev-1.0.5
Browse files Browse the repository at this point in the history
Dev 1.0.5
  • Loading branch information
TEGRAXD authored Aug 23, 2024
2 parents c85f166 + 0a9ed87 commit 067f2a2
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 37 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand All @@ -20,14 +20,15 @@ Laurentina is Audio Controller and Queue Wrapper for Shoukaku and Discord.js to
- Resume
- Stop
- Loop
- Shuffle
- Get Queue
- Clear Queue

## Download
Get the latest package from [NPM](https://www.npmjs.com/package/laurentina).

## Version
1.0.4
1.0.5

## Usage
- Binding Laurentina
Expand Down Expand Up @@ -106,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;

Expand Down
63 changes: 33 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 067f2a2

Please sign in to comment.