JGriffin34432 / Skywarn

A basic weather bot.
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

discord.js-musicbot-addon crahses when play command is used. #5

Open JGriffin34432 opened 6 years ago

JGriffin34432 commented 6 years ago

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:

  1. do !play
  2. 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):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

JGriffin34432 commented 6 years ago

This issue will not be fixed for a while, so be please be patient.