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.
3 Replies
1Lucas1.apk
1Lucas1.apk•10mo ago
I did not understand
Piedra ~
Piedra ~OP•10mo ago
Normally, when the bot restarts, the bot leaves the vroom, but when we do "resume: true" and "autoResume: true", the bot does not leave the vroom and continues as it is. However, if the voiceChannel ID is null or does not exist, it returns a connection failure error.
1Lucas1.apk
1Lucas1.apk•10mo ago
the resume is not recommended for restarting the bot In fact, until today I didn't understand its purpose.

Did you find this page helpful?