HewkawAr
HewkawAr
Explore posts from servers
MIA🎄 Moonlink.js - Imagine a Music Application
Created by HewkawAr on 7/24/2024 in #issues
let tracks = req.data.tracks.map((data) => new index_1.Track(data, requester));
I have 2 problems 1. My bot is connected to Lavalink but don't log in console like
[0] "HStudio - BKK" was connected.
[0] "HStudio - BKK" was connected.
2. When I search it error log in console
D:\.Projects\HewkawDiscordBotProject\HStudio\node_modules\moonlink.js\dist\src\core\Manager.js:51
let tracks = req.data.tracks.map((data) => new index_1.Track(data, requester));
^

TypeError: Cannot read properties of null (reading 'tracks')
at D:\.Projects\HewkawDiscordBotProject\HStudio\node_modules\moonlink.js\dist\src\core\Manager.js:51:35
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v22.2.0
D:\.Projects\HewkawDiscordBotProject\HStudio\node_modules\moonlink.js\dist\src\core\Manager.js:51
let tracks = req.data.tracks.map((data) => new index_1.Track(data, requester));
^

TypeError: Cannot read properties of null (reading 'tracks')
at D:\.Projects\HewkawDiscordBotProject\HStudio\node_modules\moonlink.js\dist\src\core\Manager.js:51:35
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v22.2.0
Search Code
let res = await client.moon.search({
query,
source: "spsearch",
requester: interaction.user.id
});
let res = await client.moon.search({
query,
source: "spsearch",
requester: interaction.user.id
});
Full Code: https://github.com/HStudioDiscordBot/HStudioSource/tree/Bump-moonlink.js-from-3.6.64-to-4.0.1
26 replies