Please describe the problem you are having in as much detail as possible:
My bot can play music with url or video title. But everytime I try to search a video and connect to the channel it returns an error:
UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'has' of null at VoiceChannel.get joinable [as joinable]
But at the same time my bot can play music with url and join the channel without any error.
Include a reproducible code sample here, if possible:
Please describe the problem you are having in as much detail as possible: My bot can play music with url or video title. But everytime I try to search a video and connect to the channel it returns an error:
UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'has' of null at VoiceChannel.get joinable [as joinable]
But at the same time my bot can play music with url and join the channel without any error.
Include a reproducible code sample here, if possible:
music.js [handleVideo function]
music.js [play function]
play.js
Further details: