MIA
⛺ Moonlink.js - Imagine a Music Applicatiomextended-salmon
Cannot read properties of undefined (reading 'shard')
client.moon = new MoonlinkManager(
[
{
host: "localhost",
port: 2333,
secure: true,
password: "password"
}
],
{
/* Options */
},
(guild, sPayload) => {
// Sending payload information to the server
client.guilds.cache.get(guild).shard.send(JSON.parse(sPayload));
}
)
1Lucas1.apk•95d ago
This may occur because the guild's priority does not exist.
extended-salmon•94d ago
i have problem in spotify when i play a music he play another music
TypeError: Cannot set properties of null (setting 'ping')
at MoonlinkNode.message (/home/container/node_modules/moonlink.js/dist/src/@Entities/MoonlinkNode.js:264:29)
at MoonlinkWebSocket.emit (node:events:517:28)
at Socket.<anonymous> (/home/container/node_modules/moonlink.js/dist/src/@Services/MoonlinkWebSocket.js:96:30)
1Lucas1.apk•94d ago
Update the package
extended-salmon•94d ago
i have the latest update is there any new update
1Lucas1.apk•94d ago
See MoonlinkManager for the version
console.log(client.moon.version)
The latest version is stable, the rest are all unstable
extended-salmon•94d ago
3.3.76
1Lucas1.apk•94d ago
The player he is trying to change the priority of a non-existent player
extended-salmon•94d ago
undefined
TypeError: Cannot read properties of undefined (reading '0')
@1Lucas1.apk why the new update can't play spotify songs
1Lucas1.apk•94d ago
Because lavalink now accepts plugins
You need to install LavaSrc on Lavalink
extended-salmon•94d ago
i just need to add the plugin to lavalink ?
1Lucas1.apk•94d ago
Yes
extended-salmon•83d ago
extended-salmon•83d ago
why i am getting this error
1Lucas1.apk•83d ago
It is one of lavalink's current problems, I suggest you report it to the lavalink server
1Lucas1.apk•83d ago
@Ghos't An alternative if the error persists is to use NodeLink https://github.com/PerformanC/NodeLink
GitHub
GitHub - PerformanC/NodeLink: Performant LavaLink alternative writt...
Performant LavaLink alternative written with Node.Js - PerformanC/NodeLink
1Lucas1.apk•83d ago
There are no errors like 403 and 400
extended-salmon•83d ago
it works with moonlink ?
1Lucas1.apk•83d ago
Yes
extended-salmon•83d ago
thx for help
1Lucas1.apk•83d ago
You are welcome
If you are going to use it, use the 2.0.0 branch which is much better than the previous version
extended-salmon•82d ago
why i am getting this when i try nodelink
1Lucas1.apk•82d ago
@ThePedroo It will help you with the software
national-gold•82d ago
You're using v1
V1 has issues with soundcloud regex which makes it identify multiple URLs as SoundCloud
use
git clone https://github.com/PerformanC/NodeLink -b v2.0.0
to clone v2 NodeLinkextended-salmon•72d ago
1Lucas1.apk•72d ago
npm install -f
extended-salmon•72d ago
thx
Params: "/v4/loadtracks"
Headers: {"authorization":"REDACTED","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","content-type":"application/json","host":"REDACTED","connection":"close"}
[loadTracks]: Loading track from https: https://youtu.be/code
[voice]: Received a request from client.
Params: "/v4/sessions/KWPiTkP9WvuL1BX7/players/1079373766565560421"
Headers: {"authorization":"REDACTED","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","content-type":"application/json","host":"REDACTED","connection":"close","transfer-encoding":"chunked"}
Body: {"voice":{"sessionId":"b949a9c099bef6d7724a4094a309896a","endpoint":"rotterdam6393.discord.media:443","token":"1ca411b0b18e1d07"}}
[loadTracks]: Loaded undefined from https.
1Lucas1.apk•72d ago
git checkout v2.0.0
It will change to V2 then you start again
extended-salmon•72d ago
Already on 'v2.0.0'
Your branch is up to date with 'origin/v2.0.0'.
1Lucas1.apk•72d ago
Now start again and try again
national-gold•72d ago
youtu.be/code isn't a track
extended-salmon•72d ago
i replace it with code
it was a vilde youtube video
national-gold•72d ago
NodeLink says it received a youtu.be/code
You're sending the wrong url
extended-salmon•72d ago
yup it's was problem with url it's working now thx
national-gold•72d ago
Feel free to give a sincere feedback about NodeLink when you have tested it for longer
extended-salmon•72d ago
there is some url it's working but in bot it's saying the url is wrong
exotic-emerald•72d ago
GG @Ghos't, you just advanced to level 7!
national-gold•72d ago
Wdym?
extended-salmon•72d ago
this url : https://youtu.be/dQw4w9WgXcQ?si=OlsiOGvx9bb4YuLN
give me this respone : [loadTracks]: Loading track from https: https://youtu.be/dQw4w9WgXcQ?si=OlsiOGvx9bb4YuLN
[loadTracks]: Loaded undefined from https.
and this url : https://www.youtube.com/watch?v=dQw4w9WgXcQ
working with no errors
[loadTracks]: Loading track from YouTube: https://www.youtube.com/watch?v=dQw4w9WgXcQ
[loadTracks]: Loaded Rick Astley - Never Gonna Give You Up (Official Music Video) by Rick Astley from YouTube: https://www.youtube.com/watch?v=dQw4w9WgXcQ
@ThePedroo
national-gold•72d ago
youtu.be/ isn't supported yet
extended-salmon•72d ago
first url from the share button seconed url from
national-gold•72d ago
Feel free to create a feature request
extended-salmon•72d ago
okay thx
national-gold•72d ago
Np
Also, a question, do you get 400s in NodeLink?
extended-salmon•72d ago
no i start using it today for now it's great i am still testing it
national-gold•71d ago
❤️
@Ghos't Just in case you didn't see the GitHub, youtu.be support was added
extended-salmon•70d ago
Thank you all, I appreciate your effort
national-gold•70d ago
:purr_love:
extended-salmon•69d ago
what version should i install bec i am getting error when i install v2
Lifecycle scripts included in undefined:
start
node --dns-result-order=ipv4first --openssl-legacy-provider src/connection/index.js
national-gold•69d ago
Is that the entire error?
That doesn't seem like an error, not by itself
extended-salmon•69d ago
i fix it i was write the run command wrong but now i have another problem that the server working but no audio when i play song
national-gold•69d ago
Logs, please?
extended-salmon•69d ago
i can't see bec there is no error handler
national-gold•69d ago
From the node, I mean
extended-salmon•69d ago
i can't find any thing else
national-gold•69d ago
Something went wrong in your pkg.json LOL
extended-salmon•69d ago
that's was wrong file
national-gold•69d ago
Ahh
extended-salmon•69d ago
in the nodelink server i can't find any error in logs file
national-gold•68d ago
Do you mind providind NodeLink logs?
It redacts sensitive information btw
@Ghos't Sorry for pinging. Any update?
extended-salmon•68d ago
no erros but when i play a song now no audio again
national-gold•68d ago
Logs?
extended-salmon•68d ago
national-gold•68d ago
Uhm
I mean, NodeLink loga
Logs
extended-salmon•64d ago
That’s all the logs on console there is nothing
national-gold•64d ago
NodeLink doesn't print those -- I need the logs from the node
Want results from more Discord servers?
More PostsJSON Parse errors while sending the payloadbefore this it was posting errors with this token `♥` in JSON, so i tried sanitizing it but resultederror when starting / connecting to node```TypeError: require(...).setDefaultAutoSelectFamily is not a function
at new MoonlinkWebSocketError when searching for a songHey there! Im getting this very weird error when trying to play a simple song, I copied the example error(node:6856) [DEP0128] DeprecationWarning: Invalid 'main' field in 'G:\k\node_modules\moonlink.js\disthere is code in the package that console.log(queue)this code is so annoyingEror when playing song with deezerMusic not playing but connectingHey there! My music doesn't play when connecting. I think it's because I do not have a raw event. I'In debug, connected is falseThe bot is connected but the music is not playing, I saw the debug and found thisnão tem skip nas docs e fica dando erro de Node mesmo conectandoe issomodule errorsometimes this error pops up while using play comand