SHARE
TWEET

getUserInput error

a guest Mar 21st, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (node:24792) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'send' of undefined
  2.     at getUserInput (C:\Users\Jules\Desktop\HatBot\Commands\translate.js:14:25)
  3.     at Object.module.exports.run (C:\Users\Jules\Desktop\HatBot\Commands\translate.js:22:39)
  4.     at Client.bot.on.message (C:\Users\Jules\Desktop\HatBot\bot.js:77:34)
  5.     at Client.emit (events.js:189:13)
  6.     at MessageCreateHandler.handle (C:\Users\Jules\Desktop\HatBot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  7.     at WebSocketPacketManager.handle (C:\Users\Jules\Desktop\HatBot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:103:65)
  8.     at WebSocketConnection.onPacket (C:\Users\Jules\Desktop\HatBot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  9.     at WebSocketConnection.onMessage (C:\Users\Jules\Desktop\HatBot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  10.     at WebSocket.onMessage (C:\Users\Jules\Desktop\HatBot\node_modules\ws\lib\event-target.js:120:16)
  11.     at WebSocket.emit (events.js:189:13)
  12.     at Receiver._receiver.onmessage (C:\Users\Jules\Desktop\HatBot\node_modules\ws\lib\websocket.js:137:47)
  13.     at Receiver.dataMessage (C:\Users\Jules\Desktop\HatBot\node_modules\ws\lib\receiver.js:409:14)
  14.     at Receiver.getData (C:\Users\Jules\Desktop\HatBot\node_modules\ws\lib\receiver.js:347:12)
  15.     at Receiver.startLoop (C:\Users\Jules\Desktop\HatBot\node_modules\ws\lib\receiver.js:143:16)
  16.     at Receiver.add (C:\Users\Jules\Desktop\HatBot\node_modules\ws\lib\receiver.js:117:10)
  17.     at TLSSocket.emit (events.js:189:13)
  18. (node:24792) 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: 1)
  19. (node:24792) [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.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top