Describe the bug
A clear and concise description of what the bug is.
discord.js-musicbot-addon module crashes when play button is used.
To Reproduce
Steps to reproduce the behavior:
do !play
Error appears in console and then nothing plays.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
(node:3064) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'type' of undefined
at exports.determineType.type (D:\skywarn\node_modules\ytsearcher\lib\deps\determineType.js:11:57)
at Promise (D:\skywarn\node_modules\ytsearcher\lib\struct\YTSearch.js:81:15)
at new Promise (<anonymous>)
at YTSearch.search (D:\skywarn\node_modules\ytsearcher\lib\struct\YTSearch.js:68:12)
at YTSearcher.search (D:\skywarn\node_modules\ytsearcher\lib\struct\YTSearcher.js:76:8)
at msg.channel.send.then.response (D:\skywarn\node_modules\discord.js-musicbot-addon\index.js:1331:29)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:3064) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:3064) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Desktop (please complete the following information):
OS: [e.g. iOS] Windows 10 Home Build 1803
Browser [e.g. chrome, safari] Discord Client
Version [e.g. 22] N/A
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
Describe the bug A clear and concise description of what the bug is.
discord.js-musicbot-addon module crashes when play button is used.
To Reproduce Steps to reproduce the behavior:
!play
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.