Switching from another client, having some issues
First issue:
- Moonlink is connecting to Lavalink, however, the
nodeCreate
event never triggers. Not sure why this is, I tried switching to Moonlink once before and had the same issue before.
Second issue:
- I'm unable to get the bot to join the VC. This isn't a permissions/intents/partials issue. I've ran into this before, it's usually related to the client.on("raw")
event. The track loads, the trackStart
event is triggered, and the player has the correct guild & voice channel ID's. If I had to guess, this may be connected to the nodeCreate
event not triggering?
Some questions:
- Can player volume be set in createPlayer
or player.connect
?
- With the last client I used, I could attach options to the player. For example: player.options.message = message
, can I use the player.data
in this same way? It seems fine so far, not sure if that'll conflict with anything later.
- For track requester I'd prefer to pass a Guild#Member, not just an ID. Fetching members constantly isn't ideal imo. So, is there any way to add that to the track object like I'm doing with player.data
?15 Replies
2 more questions:
- Can moonlink search with only one source? I'm used to searching youtube by default, but allowing soundcloud or spotify links. Providing a soundcloud link shows the correct song with my autocomplete, but it queues something entirely different from youtube.
- Is there no loadType for a direct URL? The last client I used had a "track_loaded" and "search". I think my soundcloud links are queueing random youtube videos because it's querying youtube for the URL instead of loading the soundcloud URL.
fascinating-indigo•4mo ago
@ComicallyBad you can find all the events at
https://github.com/Ecliptia/moonlink.js/blob/v4/dist/src/typings/Interfaces.d.ts
GitHub
moonlink.js/dist/src/typings/Interfaces.d.ts at v4 · Ecliptia/moonl...
MoonLink.js is a simple package for lavalink client, perfect for you to create your discord bot with songs, and very simple and easy to use. - Ecliptia/moonlink.js
I’m not sure that helps, I know what the events are, like nodeCreate just isn’t triggering
fascinating-indigo•4mo ago
When you check the events there is an other event that looks like it and that is
nodeConnected
. If you use that it would solve that problemah I switched away from that event when troubleshooting, alright 1 problem fixed lol
GG @ComicallyBad, you just advanced to level 1!
fascinating-indigo•4mo ago
If i can help you with something else let me know
Do you know if there's a loadType for direct link? As well, is moonlink restricted to searching only 1 source?
I'm used to my old client, that when provided a URL, it tries loading the URL, no matter the source. Currently, a link is showing the correct song, but when I queue it, it adds some random youtube video. Because youtube-plugin isn't working with lavalink atm, I've been trying to queue soundcloud
fascinating-indigo•4mo ago
I will try to find something to it
GG @Rubenツ, you just advanced to level 5!
appreciate it :tip:
fascinating-indigo•4mo ago
loadtype: https://github.com/Ecliptia/moonlink.js/blob/v4/src/typings/types.ts#L2
sources: https://github.com/Ecliptia/moonlink.js/blob/v4/src/typings/types.ts#L1
GitHub
moonlink.js/src/typings/types.ts at v4 · Ecliptia/moonlink.js
MoonLink.js is a simple package for lavalink client, perfect for you to create your discord bot with songs, and very simple and easy to use. - Ecliptia/moonlink.js
awesome, I was able to find my minor issues I believe, thanks.
I do a search for autocomplete, and again in the actual command, and I only changed the autocomplete search to
track.url
instead of track.uri
which my old client used.
so that's why it continued to search even when provided a urlfascinating-indigo•4mo ago
I hope this solved a lot of your questions. If there is anything else. Let us know
appreciate it :tip: