🎶 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

Previous Function

There is a way to reach the previous song? I don't see the option in the player.

using direct link gives no results but searching does.

I haven't used this library at all but I've used some that are similar to it in the past (erela.js, vulkava, etc...). I picked it because it was the most familiar feeling but I'm running into an issue with direct links in my first implementation. Here is the code I use to play tracks and attached to this post is the logs from the console ```js const player = client.moonlink.createPlayer({ guildId: interaction.guild.id, voiceChannelId: voiceChannel.id,...
Solution:
I didn't read the lavalink logs properly and it ended up being that they depricated their out-of-the-box youtube support so I had to install a plugin. Thank you so much for your help regardless ❤️
No description

Certain URLs Not Working

Starting today I've noticed an issue where 'query' is undefined, specifically in the loadTracks() function. if (query.startsWith("http://") || query.startsWith("https://")) ^ ...
Solution:
``` let req; if (isLink) { req = await client.manager.search({ query }); } else {...

I have question

why when i destroy player it error like this?
No description

Lavalink throws up on moonlink init

Cmd log in attachment. I have no clue whats going on and cant help
No description

When player.destroy play another music!

Even though there is no song in the queue, when I destroy it, it leaves the vc, but trackStart is triggered and embed spam as different music.
No description

Can't see connection status and event in moonlink doesn't seem to work.

```javascript const { Client, Collection } = require('discord.js'); const { Manager } = require('moonlink.js'); module.exports = class BotClient extends Client {...

mp3 download

can i use moonlink to download mp3 ? or just get the stream url

Connecting to NodeLink over network

Hi, I would like to know if there's some steps to take in order to connect to a server instance on another device. Thanks.

The Music was successfully found, but not played

I followed every step on the guide for moonlink.js, but the player isn't playing the sound, it shows that the music was successfully found and give me the infos of the track, but the track doesn't start playing

can't join a channel

when i try to join a channel it says it joined but didn't join it send Connecting to voice channel: 1233157221181948117 to the log but don't join...
No description

Spotify

Is there no spotify as a defaultSearchEngine?

Play : Error

[ERROR] => TypeError: Cannot read properties of undefined (reading 'map')
at C:\Users\Kevin\Desktop\Code\Discord Bots\Mitthu\node_modules\moonlink.js\dist\src\@Managers\MoonlinkManager.js:109:41
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[ERROR] => TypeError: Cannot read properties of undefined (reading 'map')
at C:\Users\Kevin\Desktop\Code\Discord Bots\Mitthu\node_modules\moonlink.js\dist\src\@Managers\MoonlinkManager.js:109:41
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
...

after restart bot autoreconnect error

``` 1|PBOT | Unhandled promise rejection: Error: @Moonlink(PlayerManager) - Missing parameters for player creati on: voiceChannel 1|PBOT | at PlayerManager.create (/root/pbot-rewrite-2022/node_modules/moonlink.js/dist/src/@Managers/Pl ayerManager.js:112:19) 1|PBOT | at MoonlinkNode.message (/root/pbot-rewrite-2022/node_modules/moonlink.js/dist/src/@Entities/Mo onlinkNode.js:182:62) 1|PBOT | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)...

Skip : Error

[ERROR] => TypeError: this.queue.all is not a function

I created a singing bot and the music plays fine on my computer.When I move to Windows hosting, eve

I created a song bot and it plays music well on my computer. When I switch to Windows hosting, everything else is normal but I don't hear anything. The log does not appear, and it does not work even when using a normal external server, so it does not seem to be a problem with the Lava Link server....

blunder 💀

rewrote the whole bot in ts for bun, and now i found out why moonlink doesnt work with bun. pretty doomed lmao
No description

How can I get the total size on the servers?

example;
((await client.cluster!.fetchClientValues('manager.players.size')) as number[])!.reduce((a, b) => a + b, 0)!;
((await client.cluster!.fetchClientValues('manager.players.size')) as number[])!.reduce((a, b) => a + b, 0)!;
...

trackEnd not fired?

elloo sooo i'm just trying to destory the player after the track ended but with the event it is not working