(node:1) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions
at item.request.gen.end (/usr/src/app/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:71:65)
at then (/usr/src/app/node_modules/snekfetch/src/index.js:215:21)
at
at process._tickCallback (internal/process/next_tick.js:118:7)
(node:1) 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: 8)
(node:1) [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.
/usr/src/app/bot.js:88
if (responseEntity.member.voiceChannel) {
^
TypeError: Cannot read property 'voiceChannel' of null
at playSound (/usr/src/app/bot.js:88:31)
at Client.bot.on.response (/usr/src/app/bot.js:75:17)
at Client.emit (events.js:180:13)
at MessageCreateHandler.handle (/usr/src/app/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
at WebSocketPacketManager.handle (/usr/src/app/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:103:65)
at WebSocketConnection.onPacket (/usr/src/app/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
at WebSocketConnection.onMessage (/usr/src/app/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
at WebSocket.onMessage (/usr/src/app/node_modules/ws/lib/event-target.js:120:16)
at WebSocket.emit (events.js:180:13)
at Receiver._receiver.onmessage (/usr/src/app/node_modules/ws/lib/websocket.js:137:47)