Help with some code
So.. when i use client.moon.search(query) and use a url like a youtube url or smth, i get
but when i type the title i dont get the error?
i dont understand..
42 Replies
GG @Norby/, you just advanced to level 1!
Hello, the new version of moonlink is being refactored to v4 by lavalink, lavalink developers have published a beta version
foreign-sapphireOP•2y ago
yeah i know that, and i'm using it already
other-emerald•2y ago
yes me too
it would be perfect if it was fixed
Just update the lavalink
I intend to remove all lavalink support below this version, as it is already weighing the code
other-emerald•2y ago
but it was already up to date even i deleted it and downloaded it again but the result is the same
GG @Mèmte, you just advanced to level 1!
other-emerald•2y ago

other-emerald•2y ago
this problem occurs when url is entered song or playlist url
I guess the same was true for the auto play function
optimistic-gold•2y ago
I do get the same error, and I already use the newest version brother
@deleted_user_f8d2b1e7c3a9 Can you send me the full error to see where it comes from
other-emerald•2y ago
<#1126189246445793311>
I wanted complete, this is a superficial part, the error only shows that it comes from search
Nowhere is it issued
Type can be internal or from bot command
other-emerald•2y ago
i guess I didn't quite understand what you meant
All error log
It is essential to find the root of the problem
If she is us moonlink codes
other-emerald•2y ago
👍🏼
It will show step by step where he went
I need full error
I found the problem guys

Some things have been changed, the next version will be corrected
other-emerald•2y ago
okey thanks
exotic-emerald•2y ago
@1Lucas1.apk
How come
So basically if i search for a song using an url i get this error:
TypeError: Cannot read properties of undefined (reading '0')
And if I try using normal words I get no error and res.tracks[0] is defined all of a sudden
Lucas hello?
@Mèmte did u find any fix for your issue?other-emerald•2y ago
I am not facing any problem at the moment.
deep-jade•2y ago
Try this
I think it would be like this to add the music in moonlink
I'm using the Erela.js fork of Tomato6966 at the moment
GG @NedcloarBR, you just advanced to level 1!
exotic-emerald•2y ago
i upgraded everything last night from erela.js and it wasn't to hard. but I dont get why res.tacks[0] is null when a track gets loaded
exotic-emerald•2y ago
if you want to use erela.js but lavalink v4. I would recommend trying out Magmastream
Magmastream is a fork of erela.js which is being mantained and only works atm with lavalink v4
https://github.com/Blackfort-Hosting/magmastream
https://docs.blackforthosting.com/introduction/getting-started
GitHub
GitHub - Blackfort-Hosting/magmastream: A user-friendly Lavalink cl...
A user-friendly Lavalink client designed for NodeJS. - GitHub - Blackfort-Hosting/magmastream: A user-friendly Lavalink client designed for NodeJS.
Getting Started
Welcome to Magmastream's documentation! Magmastream is a fork of Erela.Js. This fork is powerfull and contains alot of tweaks.
exotic-emerald•2y ago
I will also use magmastream simply because the programmers KNOW english and KNOW how to properly name stuff xD
deep-jade•2y ago
thx for the suggestion!
i'm using this fork at the moment
https://github.com/Tomato6966/erela.js
GitHub
GitHub - Tomato6966/erela.js: An up to date Lavalink Wrapper, which...
An up to date Lavalink Wrapper, which makes it easy to use Lavalink within your Discord Bot! - GitHub - Tomato6966/erela.js: An up to date Lavalink Wrapper, which makes it easy to use Lavalink with...
exotic-emerald•2y ago
Wow, thank you for telling me that. I follwed many tutorials from Tomato but didnt realize he had his own erela.js fork
I still want to switch to magmastream tho! Try something new because I am having issues with erela.js atm with joining the voice channel, player state is on playing but no audio is coming through
I did not understand this part :?
deep-jade•2y ago
carinha doido mano ksksks
Meu Deus
Kk
Tou com uma preguiça enorme hoje 🥱
deep-jade•2y ago
acontece
to querendo terminar umas coisas no meu bot mas a preguiça ta muito forte
acho que vou jogar CS ou Vava
Ksk, eu tava tirando umas coisas do código, e nem percebi que já tava no jogo :k
Eu acho que já tenho TDH 🤔
Devo ter mesmo
deep-jade•2y ago
vai num psicologo pra ele te analizar dai se tu tiver o laudo fica mais facil de dar essa desculpa ksksks
Aqui só tem pisicologo do SUS 😌
Mora no interior tem suas desvantagens, alegria
deep-jade•2y ago
1 ano de espera pra cada consulta ksksksk
Imaginei, vamos analisar e o resultado sai em 14 de abril de 2026
Eu fico me perguntando porque o Amazonas não é o mais desenvolvido que os outros demais estados, outros países investem dinheiro pro Amazonas
deep-jade•2y ago
só querem os recursos da floresta
o pessoal que mora nela que se foda
só pode ser assim que pensam
E o que é recebido eu acho que é só benefício pros governadores
Porque nunca vi dinheiro salvar queimadas, no máximo quem faz é os bombeiros e ainda são pagos com mesmo salário
Bom vou jogar, porque programar eu não consigo hoje mais não ksks