Closed Deivu closed 3 years ago
Some fixes:
Yeah and maybe don't forget this https://github.com/Deivu/Shoukaku/issues/38
Any ETA on v2 refactor?
No ETA for now, most likely when Lavalink dev goes to stable, and Discord.JS v13 gets finalized in its breaking changes, though it also depends on how fast I work, or when I will resume coding again
@inhydrox state should now be turning to connected in voice connection, as for moveChannel, I dropped it as I don't think I need to support that feature with Shoukaku as this deals with Discord REST which is not something I want to support with Shoukaku
@inhydrox state should now be turning to connected in voice connection, as for moveChannel, I dropped it as I don't think I need to support that feature with Shoukaku as this deals with Discord REST which is not something I want to support with Shoukaku
Alright, I'll test the voice connection one and let you know if I found any more bugs.
Hmmm pr ded
Types for next are in PR (#51)
So um my computer borked don’t expect updates lmfao
@0t4u there have been changes, quite a bit so typings may need to change, just do it at your own pace, as the recent commits enables the lib to be used on other libraries with ease
@Deivu updated. Please check if it works.
I specifically saw this line before i asked if i can guildID to camelCase https://github.com/Deivu/Shoukaku/blob/8653a0c14bf6a294da10a8c8b3a127a0b6ad32b1/src/guild/ShoukakuConnection.js#L93
Lol the amount of commits
Is this pr ready for testing :octocat:
Lol the amount of commits
Yea, sorry bout that, i used mobile and couldnt use my laptop xd won’t happen again
It could be tested, but there might be changes like changing things to camelcase one I decided to do so
~~Oh, can i do that ill use laptop this time~~ nvm ill do it if anyone else isnt doing it
This is ready for testing and review, in order for this to get merged, First, We need to wait for Discord.JS v13 to be the current stable, and Secondly, This needs to be tested thoroughly to ensure this one won't cause issues, specially on bots in production.
Discord js v13 will be released when crawl wakes up. ( im not lying, he announced that in the announcement channel )
Discord js v13 will be released when crawl wakes up. ( im not lying, he announced that in the announcement channel )
The second one must be also be considered, which is a through test of the next refactor, I don't want bots breaking in production due to unforseen bugs in the library
Discord js v13 will be released when crawl wakes up. ( im not lying, he announced that in the announcement channel )
and need node v16
Engine is updated
readme need to be fixed to show that node 16 is required
Types of ShoukakuTrack and ShoukakuTrackList arent there
Types of ShoukakuTrack and ShoukakuTrackList arent there @0t4u Could you add this typings
if you want i could add them, i just need to know what “raw” will be
@Deivu gimme a few hrs
if you want i could add them, i just need to know what “raw” will be
Tracklist raw is this
{
"loadType": "TRACK_LOADED",
"playlistInfo": {},
"tracks": [
{
"track": "QAAAjQIAJVJpY2sgQXN0bGV5IC0gTmV2ZXIgR29ubmEgR2l2ZSBZb3UgVXAADlJpY2tBc3RsZXlWRVZPAAAAAAADPCAAC2RRdzR3OVdnWGNRAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9ZFF3NHc5V2dYY1EAB3lvdXR1YmUAAAAAAAAAAA==",
"info": {
"identifier": "dQw4w9WgXcQ",
"isSeekable": true,
"author": "RickAstleyVEVO",
"length": 212000,
"isStream": false,
"position": 0,
"title": "Rick Astley - Never Gonna Give You Up",
"uri": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
}
]
}
ShoukakuTrack raw is the object inside the array of tracks
if you want i could add them, i just need to know what “raw” will be
Tracklist raw is this
{ "loadType": "TRACK_LOADED", "playlistInfo": {}, "tracks": [ { "track": "QAAAjQIAJVJpY2sgQXN0bGV5IC0gTmV2ZXIgR29ubmEgR2l2ZSBZb3UgVXAADlJpY2tBc3RsZXlWRVZPAAAAAAADPCAAC2RRdzR3OVdnWGNRAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9ZFF3NHc5V2dYY1EAB3lvdXR1YmUAAAAAAAAAAA==", "info": { "identifier": "dQw4w9WgXcQ", "isSeekable": true, "author": "RickAstleyVEVO", "length": 212000, "isStream": false, "position": 0, "title": "Rick Astley - Never Gonna Give You Up", "uri": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" } } ] }
ShoukakuTrack raw is the object inside the array of tracks
Ty ty! I’ll do it
@Deivu @kakarot-dev it’s already in the Constants.d.ts file
Huh check the constants files in types folder
It is there
@Deivu @kakarot-dev it’s already in the Constants.d.ts file
smh I got jeibaited there
Oh, i got confused too when i didnt see the file xd
smh
One question tracklist has the property “playlistName” it also has “selectedTrack” (https://github.com/Deivu/Shoukaku/blob/5a2ab750545ccd17d58aae741966fe9aea1f8f1e/types/Constants.d.ts#L38) while the example of @Deivu has “playlistInfo” so…. Is that intentional?
My structure don't have playlistInfo, instead its a property directly in the class for convenience https://github.com/Deivu/Shoukaku/blob/next/src/struct/ShoukakuTrackList.js
Oh, kk understood
Someone mentioned me?
Code tested in production and works perfectly.
when setting volume to 0 using setFilters, its value will be always 1. because OR operator checks its boolean, and yeah 0 is false, so it will pick the 1.0 instead https://github.com/Deivu/Shoukaku/blob/c45294fcc2966b114bbf8a9c1d37263f68c76656/src/struct/ShoukakuFilter.js#L51 maybe we can replace the OR operator above with nullish coalescing operator (??) ?
normally you would just use the mute method to remove voice, so yea....
normally you would just use the mute method to remove voice, so yea....
indeed, but it's still a bug tho. the function doesn't set the correct value of what is given
when setting volume to 0 using setFilters, its value will be always 1. because OR operator checks its boolean, and yeah 0 is false, so it will pick the 1.0 instead https://github.com/Deivu/Shoukaku/blob/c45294fcc2966b114bbf8a9c1d37263f68c76656/src/struct/ShoukakuFilter.js#L51
maybe we can replace the OR operator above with nullish coalescing operator (??) ?
Makes sense for it to be on ?? instead of ||, updated in latest commit
when setting volume to 0 using setFilters, its value will be always 1. because OR operator checks its boolean, and yeah 0 is false, so it will pick the 1.0 instead https://github.com/Deivu/Shoukaku/blob/c45294fcc2966b114bbf8a9c1d37263f68c76656/src/struct/ShoukakuFilter.js#L51
maybe we can replace the OR operator above with nullish coalescing operator (??) ?
Makes sense for it to be on ?? instead of ||, updated in latest commit
thanks. anyway will sourceName be added to ShoukakuTrack#info?
thanks. anyway will sourceName be added to ShoukakuTrack#info?
Any relevant info on what git commit this was merged?
thanks. anyway will sourceName be added to ShoukakuTrack#info?
Any relevant info on what git commit this was merged?
you mean merged on dev branch? if so this is the commit https://github.com/freyacodes/Lavalink/commit/626c2186641d249e472a1070bdc61a99c077e6ba
I think this is mostly ironed out, feel free to comment if it's stable on your end or not
its stable for me 👍
This is the WIP update for Shoukaku, this aims to fix and reduce the clutter of v1 while providing the same benefits of v1
Progress: [x] Code [x] Testing [x] Documentation [x] Typescript Typings
For discussions or recommendations, feel free to comment down in this thread