🎶 Moonlink.js - Imagine a Music Application

MIA

🎶 Moonlink.js - Imagine a Music Application

Join the community to ask questions about 🎶 Moonlink.js - Imagine a Music Application and get answers from other members.

Join

issues

suggestion

help

Lavalink&Bot saying it's playing, but Bot wont join the channel

Hi, Im new to moonlink.js and have worked with erela.js years ago, so i want to make a Radio Bot that should start all streams automatically when the Bot gets started. The Lavalink recieves the requests, and the bot also answers that it started playing, but the bot wont connect to my voice channel. I've included all Intents, the Bot has Administrator Perms, i've already tried to fetch the guild/all channels on startup but still it's refusing to connect to the Voice Channel. If i run the same command manually it works fine. I think it has something to with the cache but idk. Maybe someone can help! I do not recieve any errors in my bot/lavalink. The code is here: ...

error in v3

unhandledRejection Bot: Blocks Night [Error_Handling] :: Uncaught Exception/Catch (MONITOR) TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "Client-Name" at ClientRequest.setHeader (node:_http_outgoing:579:3)...

Possible AsyncEventEmitter memory leak detected. 11 ready listeners added to WebSocketShard. Use emi

Possible AsyncEventEmitter memory leak detected. 11 ready listeners added to WebSocketShard. Use emitter.setMaxListeners() to increase the limit.

error in play command

when i play a song or playlist the bot respone with the song name and the song add to queue but the bot not playing any thing in voice channel

Lavalink error when setting up basic bot

Hi, I'm just trying to a get bot similar to the one in the readme running. I am creating a new MoonlinkManager on my bot with the correct credentials for my Lavalink, some sort of request does get through to Lavalink but it throws and error No mapping for GET /v4/websocket and then eventually times out. Any ideas for the cause of this? Happy to add more detail. Thanks

check server status and change server

my idea is to add 10 lavalink servers and each one can have max 100 bots on it how can i make the code check if the server is at 100 bot or not and if it is how can the bot disconnect and re connect to another one...

song uri

if ${track.title} is the title what is the url i tried ${track.uri} and been searching the docs

Failed to fetch data

Error: [ @Moonlink/Database ]: Failed to fetch data at MoonlinkDatabase.fetch (/home/container/node_modules/moonlink.js/dist/src/@Rest/MoonlinkDatabase.js:94:23) at MoonlinkDatabase.get (/home/container/node_modules/moonlink.js/dist/src/@Rest/MoonlinkDatabase.js:26:14) at new MoonlinkPlayer (/home/container/node_modules/moonlink.js/dist/src/@Moonlink/MoonlinkPlayers.js:68:44) at get (/home/container/node_modules/moonlink.js/dist/src/@Moonlink/MoonlinkManager.js:360:20)...

how i can get the requester

how i can get the requester when track start

player.timeRemains()

Is there is a way to find out how many milliseconds are left for the current song?

Filters

Hi everyone, I’m currently trying to understand the documentation and implement a filter command. However, I’m finding it quite challenging and could use some help. I’ve tried searching for posts about it but haven’t found anything useful yet. I’m not very familiar with how filters work and other related concepts. Any assistance or resources would be greatly appreciated. Thanks!...

lagging

When I run more than one bot the audio is lagging what are the possibilities for this problem and how to solve it?

Bot disconnects

When the bot plays it music (for me its a radio station) and when I disconnect the bot throughout discord itself "Disconnect <botname>" the bot doesn't re-connect, also doesn't re-connect when re-entering the command. I have to restart the entire discord bot for it. Is there a different way for this?...

TypeError: Cannot read properties of undefined (reading 'rest')

I get this error when i try to search for a song, heres hows my code is laid out: ```js // custom client for discord.js v14 class CustomClient extends Client {...

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

stop

How can I stop the song without making the bot leave the voice channel?