Piedra ~
Piedra ~
Explore posts from servers
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Piedra ~ on 8/10/2024 in #help
When player.destroy play another music!
No description
3 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Piedra ~ on 6/1/2024 in #help
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)
1|PBOT | [antiCrash] :: Unhandled Rejection/Catch
1|PBOT | Error: @Moonlink(PlayerManager) - Missing parameters for player creation: 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) Promise {
1|PBOT | <rejected> Error: @Moonlink(PlayerManager) - Missing parameters for player creation: voiceChannel
1|PBOT | at PlayerManager.create (/root/pbot-rewrite-2022/node_modules/moonlink.js/dist/src/@Managers/ PlayerManager.js:112:19)
1|PBOT | at MoonlinkNode.message (/root/pbot-rewrite-2022/node_modules/moonlink.js/dist/src/@Entities/ MoonlinkNode.js:182:62)
1|PBOT | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1|PBOT | }
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)
1|PBOT | [antiCrash] :: Unhandled Rejection/Catch
1|PBOT | Error: @Moonlink(PlayerManager) - Missing parameters for player creation: 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) Promise {
1|PBOT | <rejected> Error: @Moonlink(PlayerManager) - Missing parameters for player creation: voiceChannel
1|PBOT | at PlayerManager.create (/root/pbot-rewrite-2022/node_modules/moonlink.js/dist/src/@Managers/ PlayerManager.js:112:19)
1|PBOT | at MoonlinkNode.message (/root/pbot-rewrite-2022/node_modules/moonlink.js/dist/src/@Entities/ MoonlinkNode.js:182:62)
1|PBOT | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1|PBOT | }
Voice Channel may give an error on some channels, I cannot fix it because it is a lib source, I am saying this as an idea, it would be perfect if "!voiceChannel return" is done after the restart.
7 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Piedra ~ on 5/6/2024 in #help
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)!;
10 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Piedra ~ on 5/2/2024 in #help
Payload Shard Error
No description
8 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Piedra ~ on 4/30/2024 in #help
Equalizer
import { Equalizer } from 'moonlink.js'; var bands: Equalizer[] = []; switch (argument) { case 'disable': player.setEqualizer([]); break; case 'low': player.setEqualizer([{ band: 0, gain: 0.25 }, { band: 1, gain: 0.34 }]); break; case 'middle': player.setEqualizer([{ band: 0, gain: 0.5 }, { band: 1, gain: 0.5 }]); break; case 'high': player.setEqualizer([{ band: 0, gain: 0.75 }, { band: 1, gain: 0.75 }]); break; case 'vhigh': player.setEqualizer([{ band: 0, gain: 1 }, { band: 1, gain: 1 }]); break; } Property 'setEqualizer' does not exist on type 'MoonlinkPlayer'.ts(2339) how can fix?
4 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Piedra ~ on 4/30/2024 in #help
SyntaxError: Unexpected end of JSON input
SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at MoonlinkNode.message (C:\Users\ahmet\Documents\GitHub\pbot-rewrite-2022\node_modules\moonlink.js\dist\src@Entities\MoonlinkNode.js:139:28) at MoonlinkWebSocket.emit (node:events:513:28) at Socket.<anonymous> (C:\Users\ahmet\Documents\GitHub\pbot-rewrite-2022\node_modules\moonlink.js\dist\src@Services\MoonlinkWebSocket.js:120:34)
at Socket.emit (node:events:513:28) at addChunk (node:internal/streams/readable:324:12) at readableAddChunk (node:internal/streams/readable:297:9) at Readable.push (node:internal/streams/readable:234:10) at TCP.onStreamRead (node:internal/stream_base_commons:190:23) Promise { <rejected> SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at MoonlinkNode.message (C:\Users\ahmet\Documents\GitHub\pbot-rewrite-2022\node_modules\moonlink.js\dist\src@Entities\MoonlinkNode.js:139:28) at MoonlinkWebSocket.emit (node:events:513:28) at Socket.<anonymous> (C:\Users\ahmet\Documents\GitHub\pbot-rewrite-2022\node_modules\moonlink.js\dist\src@Services\MoonlinkWebSocket.js:120:34)
at Socket.emit (node:events:513:28) at addChunk (node:internal/streams/readable:324:12) at readableAddChunk (node:internal/streams/readable:297:9) at Readable.push (node:internal/streams/readable:234:10) at TCP.onStreamRead (node:internal/stream_base_commons:190:23) } Emitted data that has not been implemented; opcode: 13 Emitted data that has not been implemented; opcode: 2 Emitted data that has not been implemented; opcode: 13 Emitted data that has not been implemented; opcode: 7 Emitted data that has not been implemented; opcode: 2 Emitted data that has not been implemented; opcode: 12 Emitted data that has not been implemented; opcode: 12 Emitted data that has not been implemented; opcode: 3 Emitted data that has not been implemented; opcode: 9 Emitted data that has not been implemented; opcode: 15 Emitted data that has not been implemented; opcode: 2 Emitted data that has not been implemented; opcode: 6 Emitted data that has not been implemented; opcode: 5 Emitted data that has not been implemented; opcode: 14 Emitted data that has not been implemented; opcode: 9 Emitted data that has not been implemented; opcode: 2 Emitted data that has not been implemented; opcode: 9 Emitted data that has not been implemented; opcode: 13 Emitted data that has not been implemented; opcode: 2 Emitted data that has not been implemented; opcode: 15 Emitted data that has not been implemented; opcode: 5 Emitted data that has not been implemented; opcode: 4 Emitted data that has not been implemented; opcode: 12 Emitted data that has not been implemented; opcode: 4 Emitted data that has not been implemented; opcode: 12 Emitted data that has not been implemented; opcode: 15 Emitted data that has not been implemented; opcode: 2 Emitted data that has not been implemented; opcode: 15 Emitted data that has not been implemented; opcode: 2 Emitted data that has not been implemented; opcode: 9
15 replies