@@ -25,14 +25,14 @@ Pls read the docs before asking 🙏🙏🙏 There is a useful search feature th
25
25
26
26
## Metadata
27
27
28
- > version: 3.0.3
28
+ > version: 3.0.4
29
29
> pre-release: false
30
- > Last build: 3-24 -2024 21.36 PM
30
+ > Last build: 5-10 -2024 20.51 PM
31
31
32
32
## Plugins
33
33
- Official [ spotify plugin] ( https://npmjs.com/package/kazagumo-spotify )
34
34
> npm i kazagumo-spotify
35
- - Additional [ apple plugin] ( https://www.npmjs.com/package/kazagumo-apple )
35
+ - Additional [ apple plugin] ( https://www.npmjs.com/package/kazagumo-apple )
36
36
> npm i kazagumo-apple
37
37
- Additional [ filter plugin] ( https://www.npmjs.com/package/kazagumo-filter )
38
38
> npm i kazagumo-filter
@@ -146,9 +146,12 @@ kazagumo.shoukaku.on('ready', (name) => console.log(`Lavalink ${name}: Ready!`))
146
146
kazagumo .shoukaku .on (' error' , (name , error ) => console .error (` Lavalink ${ name} : Error Caught,` , error));
147
147
kazagumo .shoukaku .on (' close' , (name , code , reason ) => console .warn (` Lavalink ${ name} : Closed, Code ${ code} , Reason ${ reason || ' No reason' } ` ));
148
148
kazagumo .shoukaku .on (' debug' , (name , info ) => console .debug (` Lavalink ${ name} : Debug,` , info));
149
- kazagumo .shoukaku .on (' disconnect' , (name , players , moved ) => {
150
- if (moved) return ;
151
- players .map (player => player .connection .disconnect ())
149
+ kazagumo .shoukaku .on (' disconnect' , (name , count ) => {
150
+ const players = [... kazagumo .shoukaku .players .values ()].filter (p => p .node .name === name);
151
+ players .map (player => {
152
+ kazagumo .destroyPlayer (player .guildId );
153
+ player .destroy ();
154
+ });
152
155
console .warn (` Lavalink ${ name} : Disconnected` );
153
156
});
154
157
@@ -227,7 +230,7 @@ client.login('');
227
230
import { KazagumoTrack } from " kazagumo" ; // ES6; don't laugh if it's wrong
228
231
229
232
let track = result .tracks [0 ] // the spotify track
230
- let convertedTrack = new KazagumoTrack (track .getRaw (), track .author );
233
+ let convertedTrack = new KazagumoTrack (track .getRaw (). _raw , track .author );
231
234
player .play (convertedTrack);
232
235
` ` `
233
236
0 commit comments