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
ComicallyBad
ComicallyBadOP•4mo ago
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
fascinating-indigo•4mo ago
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
ComicallyBad
ComicallyBadOP•4mo ago
I’m not sure that helps, I know what the events are, like nodeCreate just isn’t triggering
fascinating-indigo
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 problem
ComicallyBad
ComicallyBadOP•4mo ago
ah I switched away from that event when troubleshooting, alright 1 problem fixed lol
MEE6
MEE6•4mo ago
GG @ComicallyBad, you just advanced to level 1!
fascinating-indigo
fascinating-indigo•4mo ago
If i can help you with something else let me know
ComicallyBad
ComicallyBadOP•4mo ago
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
fascinating-indigo•4mo ago
I will try to find something to it
MEE6
MEE6•4mo ago
GG @Rubenツ, you just advanced to level 5!
ComicallyBad
ComicallyBadOP•4mo ago
appreciate it :tip:
fascinating-indigo
fascinating-indigo•4mo ago
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
ComicallyBad
ComicallyBadOP•4mo ago
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 url
fascinating-indigo
fascinating-indigo•4mo ago
I hope this solved a lot of your questions. If there is anything else. Let us know
ComicallyBad
ComicallyBadOP•4mo ago
appreciate it :tip:

Did you find this page helpful?