Issue where the bot starts playing Youtube playlist
I have an issue where my bot starts playing a Youtube playlist even though a single track was specified, is it my settings on something? I am using Lavalink
Solution:
Two things:
1. Double check the URL to verify whether it is actually a single track.
2. Remove "autoPlay" option from the player...
Connect to VoiceChat
I'm having trouble connecting the bot to the voice channel, any ideas what might be going on?

Issues with Spotify Support
Howdy! I’m currently working on giving my Discord bot the ability to play music from YouTube (and optionally Spotify). I think Moonlink.js is a solid option.
I’m new to all the Lavalink stuff. I’ve set everything up according to the docs and tested it with the YouTube source. Only a few tracks work, and while some tracks play correctly in the Lavalink console on my server, others always prompt me to log in or something.
Since I’m just getting started, I wanted to ask if there’s an example bot that has both Spotify and YouTube support working smoothly, with reliable YouTube playback and Spotify integration. I’ve got everything prepared on my end, but I’m really struggling with getting Spotify support to work....
handshake failed due to invalid connection header
when i try to connect with moonlink i get this:
the server is on my pc i tried both localhost and 127.0.0.1 and both gives the same result...

PlayerCreate Evnet
```JavaScript
const redis = require('../../../utils/Redis/RedisClient');
module.exports.playerCreate = (client) => {
client.manager.on('playerCreate', async (player) => {...
How to handle loading spotify playlists with > 100 items?
When loading music using the following query snippet, it only loads the first 100 songs of a spotify playlist. If i recall this is because the spotify api paginates. Does moonlink handle this pagination?
```js
const result = await client.music.search({
query,
requester: message.author...
Solution:
Not that I’m aware of
Spotify issus
so guys i have a problem with spotify it's dosen't work when i try to play a music i get
undefined - 00:00:00 btw i use moonlink manager version ^2.16.60
and this in logs
2025-07-22T23:37:32.615+03:00 INFO 4020 --- [Lavalink] [ XNIO-1 task-5] l.server.player.AudioLoaderRestHandler : Got request to load for identifier "ytsearch:Unknown Artist undefined"...

How to use lyrics system?
I’m trying to use Moonlink’s lyrics feature with the "lavalyrics" provider, but every time I call getLyrics() it returns null and I see a bunch of errors in Lavalink’s logs. Could you help me figure out what I’m missing?
1. Environment
- Node.js: v22.13.0
- moonlink (npm pkg): v4.52.2...
Query dosen't find Spotify links
I have the issue where the Spotify links don't work disregarding the selected source
Solution:
Moonlink.js > Player#setVolume - volume is not a number or is out of range (0-1000).
This error was happended but I have no clue why also with autoplay
Is it possible to customize YouTube thumbnail resolution in Moonlink.js?
I have a question about the track.artworkUrl property. Currently it returns the YouTube thumbnail at the mqdefault.jpg resolution (320×180). In some use cases I’d like to display a higher-quality image, for example:
hqdefault.jpg (480×360)
sddefault.jpg (640×480)...
Solution:
just replace those from something like mqdefault.jpg to maxresdefault.jpg (Or any Other) and perform fetch requests to confirm that the requested Thumbnail size exists.
Spotify token error
I’m not currently using any Spotify features, but when I initialize Moonlink I get the following token
```js
Spotify token error: 400 Bad Request
{...
{...
Solution:
put in the options
disableNativeSource: true...
Spotify Error Just Started Today
```
Spotify token error: 400 Bad Request - {"totpVerExpired":"error","totpValidUntil":"2025-07-02T12:00:00.000Z","error":{"code":400,"message":"Unauthorized request","extra":{"_notes":"Usage of this endpoint is not permitted under the Spotify Developer Terms and Developer Policy, and applicable law"}}}
2025-06-30 13:54:49 [ERROR] unhandledRejection: Body is unusable: Body has already been read
TypeError: Body is unusable: Body has already been read
at consumeBody (node:internal/deps/undici/undici:6225:15)...
Solution:
put in the options
disableNativeSource: true...
Current track time
I am trying to create a now playing command that will show the current time in the track.
I've tried track.position and track.time, but neither seem to be giving a return value.
I am assuming I am really blind lol....
Solution:
Hello, the current position of the track is found at player.current.position
Spotify Access Token Fetch Error
I'm currently encountering an issue while using Moonlink.js with Spotify support. Here's the error log:
```/root/Moon/node_modules/moonlink.js/dist/src/sources/Spotify.js:56
throw new Error('Failed to fetch Spotify access token');
^...

Search results not found
```js
SearchResult {
query: '10s timer',
source: 'unknown',
tracks: [],...
Solution:
Thanks i solve this problem ❤️
TypeError: Cannot read properties of undefined (reading 'encoded') on skip function
```JavaScript
execute: async ({ args, context }) => {
const { position } = args;
const { message, discordClient } = context;
const guildId = message.guild?.id;...
Issue with Nodelink
I seem to have an issue with Spotify/Youtube on Nodelink.
Has anyone an idea how to fix this?...

AutoLeave not working
```js
static async #play(client, voiceChannel, guild, trackUrl) {
const player = client.moonlink.createPlayer({
guildId: guild.id,
voiceChannelId: voiceChannel.id,...
Solution:
I have now done it this way and would then install the function in our voice state logic
Error using moonlink in deno
I'm trying to update my bot to use moonlink given issues I've been having with other libraries and I get the following error:
```
error: Uncaught (in promise) SyntaxError: Invalid protocol value
at new WebSocket (ext:deno_websocket/01_websocket.js:207:13)
at Node.connect (file:///home/blocks/Documents/BIDOME/node_modules/.deno/moonlink.js@4.4.36/node_modules/moonlink.js/dist/src/entities/Node.js:62:23)...