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));
}
)
65 Replies
This may occur because the guild's priority does not exist.
foreign-sapphireOPβ’11mo 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)
Update the package
foreign-sapphireOPβ’11mo ago
i have the latest update is there any new update
See MoonlinkManager for the version
console.log(client.moon.version)
The latest version is stable, the rest are all unstable
foreign-sapphireOPβ’11mo ago
3.3.76
The player he is trying to change the priority of a non-existent player
foreign-sapphireOPβ’11mo ago
undefined
TypeError: Cannot read properties of undefined (reading '0')
@1Lucas1.apk why the new update can't play spotify songs
Because lavalink now accepts plugins
You need to install LavaSrc on Lavalink
foreign-sapphireOPβ’11mo ago
i just need to add the plugin to lavalink ?
Yes
foreign-sapphireOPβ’11mo ago
foreign-sapphireOPβ’11mo ago
why i am getting this error
It is one of lavalink's current problems, I suggest you report it to the lavalink server
@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
There are no errors like 403 and 400
foreign-sapphireOPβ’11mo ago
it works with moonlink ?
Yes
foreign-sapphireOPβ’11mo ago
thx for help
You are welcome
If you are going to use it, use the 2.0.0 branch which is much better than the previous version
foreign-sapphireOPβ’10mo ago
why i am getting this when i try nodelink
@ThePedroo It will help you with the software
passive-yellowβ’10mo 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 NodeLinkforeign-sapphireOPβ’10mo ago
npm install -f
foreign-sapphireOPβ’10mo 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.
git checkout v2.0.0
It will change to V2 then you start again
foreign-sapphireOPβ’10mo ago
Already on 'v2.0.0'
Your branch is up to date with 'origin/v2.0.0'.
Now start again and try again
passive-yellowβ’10mo ago
youtu.be/code isn't a track
foreign-sapphireOPβ’10mo ago
i replace it with code
it was a vilde youtube video
passive-yellowβ’10mo ago
NodeLink says it received a youtu.be/code
You're sending the wrong url
foreign-sapphireOPβ’10mo ago
yup it's was problem with url it's working now thx
passive-yellowβ’10mo ago
Feel free to give a sincere feedback about NodeLink when you have tested it for longer
foreign-sapphireOPβ’10mo ago
there is some url it's working but in bot it's saying the url is wrong
GG @Ghos't, you just advanced to level 7!
passive-yellowβ’10mo ago
Wdym?
foreign-sapphireOPβ’10mo 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
passive-yellowβ’10mo ago
youtu.be/ isn't supported yet
foreign-sapphireOPβ’10mo ago
first url from the share button seconed url from
passive-yellowβ’10mo ago
Feel free to create a feature request
foreign-sapphireOPβ’10mo ago
okay thx
passive-yellowβ’10mo ago
Np
Also, a question, do you get 400s in NodeLink?
foreign-sapphireOPβ’10mo ago
no i start using it today for now it's great i am still testing it
passive-yellowβ’10mo ago
β€οΈ
@Ghos't Just in case you didn't see the GitHub, youtu.be support was added
foreign-sapphireOPβ’10mo ago
Thank you all, I appreciate your effort
passive-yellowβ’10mo ago
:purr_love:
foreign-sapphireOPβ’10mo 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
passive-yellowβ’10mo ago
Is that the entire error?
That doesn't seem like an error, not by itself
foreign-sapphireOPβ’10mo 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
passive-yellowβ’10mo ago
Logs, please?
foreign-sapphireOPβ’10mo ago
i can't see bec there is no error handler
passive-yellowβ’10mo ago
From the node, I mean
foreign-sapphireOPβ’10mo ago
i can't find any thing else
passive-yellowβ’10mo ago
Something went wrong in your pkg.json LOL
foreign-sapphireOPβ’10mo ago
that's was wrong file
passive-yellowβ’10mo ago
Ahh
foreign-sapphireOPβ’10mo ago
in the nodelink server i can't find any error in logs file
passive-yellowβ’10mo ago
Do you mind providind NodeLink logs?
It redacts sensitive information btw
@Ghos't Sorry for pinging. Any update?
foreign-sapphireOPβ’10mo ago
no erros but when i play a song now no audio again
passive-yellowβ’10mo ago
Logs?
foreign-sapphireOPβ’10mo ago
passive-yellowβ’10mo ago
Uhm
I mean, NodeLink loga
Logs
foreign-sapphireOPβ’10mo ago
Thatβs all the logs on console there is nothing
passive-yellowβ’10mo ago
NodeLink doesn't print those -- I need the logs from the node