Change default music search
Is it possible to switch from YouTube default to Soundcloud? I am new to Lavalink so unsure if Lavalink server is the one I should be asking
playerlist bug ?
play https://www.youtube.com/playlist?list=PLPSCssPYXhWTTcpNZwYoEQWt8Wc8KO0NV
version:
"moonlink.js": "^2.11.8"
...

'trackEnd' Listener never being called
I have the trackEnd listener intialized like so:
client.moon.on('trackEnd', async(player, track) => {
console.log("TRACK ENDED");
});
But I never see "TRACK ENDED" being printed to the console, my 'trackStart' works, just not the trackEnd listener....Type declaration not working correctly
Hey, I'm using TypeScript and when trying to import anything from moonlink I get the following error
```
Could not find a declaration file for module 'moonlink.js'. 'node_modules/moonlink.js/dist/index.mjs' implicitly has an 'any' type.
There are types at 'node_modules/moonlink.js/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'moonlink.js' library may need to update its package.json or typings. ts(7016)...
`<Player>.connect()` doesnt connect
Just trying to setup moonlink in my bot, made a quick command but it seems
player.connect(...)
doesn't connect or throw any errors?
Code:
```ts
import { ApplicationCommandOptionType, type CommandInteraction, type GuildMember } from "discord.js";
import { Discord, Slash, SlashOption } from "discordx";...Musica não toca mais
Alguns dias atrás percebi que o play parou de funcionar, então resolvi tentar atualizar o moonlink, porem percebi q agora precisava de um lavalink versão 4.0.0, então resolvi criar um server lavalink privado com o 4.0.0-beta.2 e o arquivo application.yml utilizado o desse site de exemplo https://github.com/lavalink-devs/Lavalink/blob/master/LavalinkServer/application.yml.example.
Ao ligar o bot usando esse server lavalink isso aparece:
[ @Moonlink/Node ]: starting server connection process
[ @Moonlink ]: Dear programmer, from new versions of moonlink.js it will only support versions above (4.0.0) please upgrade lavalink...
Connecting through docker compose
I can't connect to the node for some reason, do you know why?
```yml
version: '3.8'
...
res.tracks[0] is *null*
Hello, I am encountering this issue right now:
If i search a song using the title and author, i get an array of tracks from my search result.
However if I search something using a spotify track link, I get loadType "track" and res.tracks[0] is null...
[ @Moonlink ]: Dear programmer, from new versions of moonlink.js it will only support versions above
I downloded and replaced my Lavalink.jar and I still get this error...
I downloaded it from https://github.com/lavalink-devs/Lavalink/releases/tag/4.0.0-beta.1...
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.....
res.data.map is not a function
res.data.map is not a function
queue.size() is not a function
Using this code here (the player passed in is valid):
```javascript
const tracks = player.queue;
//if there are no other tracks, information
if (!tracks.size())...
Error Search music
C:\Users\geren\OneDriveÁrea de Trabalho\hugodoss\botdemusic\node_modules\moonlink.js\dist\src@Moonlink\MoonlinkManager.js:139
throw new Error("[ @Moonlink/Manager ]: the search option has to be in string format or in an array");
^
Error: [ @Moonlink/Manager ]: the search option has to be in string format or in an array...
Lavalink server is not connecting properly
Code:
```javascript
var {
MoonlinkManager
} = require("moonlink.js"),...
Is it possible to modify the player?
I'm looking to add my own custom function for the
player.play();
function and was wondering it was possible to pass it as an option, or would I have to edit the code directly to include this change? If you're confused, a notable example would be as follows, this is current the Shoukaku Lavalink Wrapper which does allow you to pass in your own Rest Client or Player. This question would also apply to the Rest Client, since the current port of my bot loads information from Spotify instead of through Lavalink and passes it to the player.
```class SpotifyPlayer extends Player {
async playTrack() {
// code here...