Error when selecting a radio with a selectmenu

Hello to all of you, I have an error with my bot discord, when I select a radio all goes well, but after several selection I have this error that appears and I do not understand why Thonkang
TypeError [ERR_INVALID_ARG_TYPE]: The "body" argument must be of type function or an instance of Blob, ReadableStream, WritableStream, Stream, Iterable, AsyncIterable, or Promise or { readable, writable } pair. Received undefined
at new NodeError (node:internal/errors:387:5)
at duplexify (node:internal/streams/duplexify:199:9)
at Function.Duplex.from (node:internal/streams/duplex:121:10)
at pipelineImpl (node:internal/streams/pipeline:260:22)
at pipeline (node:internal/streams/pipeline:172:10)
at new AudioResource (/home/ultralion/bot-discord/radio-box/radio-box/node_modules/@discordjs/voice/dist/index.js:1849:77)
at createAudioResource (/home/ultralion/bot-discord/radio-box/radio-box/node_modules/@discordjs/voice/dist/index.js:1926:10)
at InteractionCollector.<anonymous> (/home/ultralion/bot-discord/radio-box/radio-box/commands/radio/radio-russian.js:113:18)
at InteractionCollector.emit (node:events:525:35)
at InteractionCollector.handleCollect (/home/ultralion/bot-discord/radio-box/radio-box/node_modules/discord.js/src/structures/interfaces/Collector.js:119:14) {
code: 'ERR_INVALID_ARG_TYPE'
}
TypeError [ERR_INVALID_ARG_TYPE]: The "body" argument must be of type function or an instance of Blob, ReadableStream, WritableStream, Stream, Iterable, AsyncIterable, or Promise or { readable, writable } pair. Received undefined
at new NodeError (node:internal/errors:387:5)
at duplexify (node:internal/streams/duplexify:199:9)
at Function.Duplex.from (node:internal/streams/duplex:121:10)
at pipelineImpl (node:internal/streams/pipeline:260:22)
at pipeline (node:internal/streams/pipeline:172:10)
at new AudioResource (/home/ultralion/bot-discord/radio-box/radio-box/node_modules/@discordjs/voice/dist/index.js:1849:77)
at createAudioResource (/home/ultralion/bot-discord/radio-box/radio-box/node_modules/@discordjs/voice/dist/index.js:1926:10)
at InteractionCollector.<anonymous> (/home/ultralion/bot-discord/radio-box/radio-box/commands/radio/radio-russian.js:113:18)
at InteractionCollector.emit (node:events:525:35)
at InteractionCollector.handleCollect (/home/ultralion/bot-discord/radio-box/radio-box/node_modules/discord.js/src/structures/interfaces/Collector.js:119:14) {
code: 'ERR_INVALID_ARG_TYPE'
}
4 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
UltraLion
UltraLionOP2y ago
discord.js : [email protected] nodejs version : v16.18.1
dzlandis
dzlandis2y ago
Well that whatever you're passing in the function is undefined, but I don't have your code so I can't tell you more than that 🤷‍♂️
UltraLion
UltraLionOP2y ago
It's a bit tricky to post my code in public, I can send it to you by mp if needed oh sorry for the ping 😅
Want results from more Discord servers?
Add your server