🎶 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

Equalizer

import { Equalizer } from 'moonlink.js'; var bands: Equalizer[] = []; switch (argument) { case 'disable': player.setEqualizer([]);...

SyntaxError: Unexpected end of JSON input

SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at MoonlinkNode.message (C:\Users\ahmet\Documents\GitHub\pbot-rewrite-2022\node_modules\moonlink.js\dist\src@Entities\MoonlinkNode.js:139:28) at MoonlinkWebSocket.emit (node:events:513:28) at Socket.<anonymous> (C:\Users\ahmet\Documents\GitHub\pbot-rewrite-2022\node_modules\moonlink.js\dist\src@Services\MoonlinkWebSocket.js:120:34) ...

TrackError

Meanwhile I don't what am I doing wrong...

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

So I was create multi client Discord Bot Music. It was all fine for connecting the Discord Bot and initialize the manager with the bot. So right now I have two bot running. The first bot with prefix pp. and the second one ri. When I tried to play music with pp. its all fine, the music started, but when I tried with the second one appear error like this....
No description

TypeError: [ @Moonlink/Manager ]: No lavalink server connected

I have used lots of Lavalink’s nodes accurately, but none of them worked, can anybody help me what’s the problem?

Not finding soundcloud link using nodelink

Normal soundcloud searches work just fine but when you paste a link it shows these errors: Bot:
TypeError: Cannot read properties of undefined (reading '0')
TypeError: Cannot read properties of undefined (reading '0')
What the Bot is referring to: ```js...

trackStart Event works 50% of the time

sometimes the embed from the trackStart event sends but sometimes it doesn't. it seems to go in an order of (sends, doesnt send, sends, doesnt send) etc..
No description

Alguém consegue me ajudar ?

O enconding do track tá retornando null, já não sei o que fazer kkk
No description

Song information is fetched but there is no sound

Song information is fetched but there is no sound

@Moonlink(Database) - Failed to save data, error:

An error occurred, I don't know what to do May I ask for your help? please...

(Bug): Error synchronizing information when connection is resumed

Error: @Moonlink(Player) - cannot change volume while the player is not playing
at MoonlinkPlayer.setVolume (C:\Users\user\Desktop\Miona\node_modules\.pnpm\[email protected]\node_modules\moonlink.js\dist\src\@Entities\MoonlinkPlayer.js:262:19)
at Object.execute (C:\Users\user\Desktop\Miona\src\interactions\commands\music\volume.js:51:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.execute (C\Users\user\Desktop\Miona\src\events\InteractionCreate.js:46:17)
Error: @Moonlink(Player) - cannot change volume while the player is not playing
at MoonlinkPlayer.setVolume (C:\Users\user\Desktop\Miona\node_modules\.pnpm\[email protected]\node_modules\moonlink.js\dist\src\@Entities\MoonlinkPlayer.js:262:19)
at Object.execute (C:\Users\user\Desktop\Miona\src\interactions\commands\music\volume.js:51:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.execute (C\Users\user\Desktop\Miona\src\events\InteractionCreate.js:46:17)
...
Solution:
Thanks for the explanation, I'll fix it as soon as I finish all the changes I'm making

Lavalink plugins not working?

My lavalink plugins dont seem to be able to load, this is the log output.

Access to client instance from player

Hey everyone, I'd like to know if there's a way to access the client object from the player. If not, I'd like to know if there's a way to get the actual channel (TextChannel object) from the player.textChannel attribute

Cannot create MoonlinkManager()

When I try to create the Moonlink Manager, I get no information in the console. No login attempt is logged on the lavalink host. Also, the IDE says that it is not possible to create an interface. ...
No description

question

question to the new update: does that new update mean i can add JUST the encoded track to the player and it will play?
encoded: 'QAAAqAMAEUh1bWJlIC0gZmFudGFzbWFzAAVIdW1iZQAAAAAABGEYAAtlMmM4TmtOWTQxVQABACtodHRwczovL3d3dy55b3V0dWJlLmNvbS93YXRjaD92PWUyYzhOa05ZNDFVAQA0aHR0cHM6Ly9pLnl0aW1nLmNvbS92aS9lMmM4TmtOWTQxVS9tYXhyZXNkZWZhdWx0LmpwZwAAB3lvdXR1YmUAAAAAAAAAAA==',
encoded: 'QAAAqAMAEUh1bWJlIC0gZmFudGFzbWFzAAVIdW1iZQAAAAAABGEYAAtlMmM4TmtOWTQxVQABACtodHRwczovL3d3dy55b3V0dWJlLmNvbS93YXRjaD92PWUyYzhOa05ZNDFVAQA0aHR0cHM6Ly9pLnl0aW1nLmNvbS92aS9lMmM4TmtOWTQxVS9tYXhyZXNkZWZhdWx0LmpwZwAAB3lvdXR1YmUAAAAAAAAAAA==',
so this for example ...

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)...