Guest User

Untitled

a guest
May 28th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. /home/matt/Documents/programming/node/discord/hopson_bot/src/commands/role_command_handler.js:108
  2. member.addRole(role)
  3. ^
  4.  
  5. TypeError: Cannot read property 'addRole' of null
  6. at modifyRoles (/home/matt/Documents/programming/node/discord/hopson_bot/src/commands/role_command_handler.js:108:24)
  7. at Comamnd.addRoles [as action] (/home/matt/Documents/programming/node/discord/hopson_bot/src/commands/role_command_handler.js:83:5)
  8. at RoleEventHandler.handleCommand (/home/matt/Documents/programming/node/discord/hopson_bot/src/commands/command_handler.js:40:17)
  9. at MessageSentHandler.handleCommand (/home/matt/Documents/programming/node/discord/hopson_bot/src/events/message_sent_handler.js:80:25)
  10. at MessageSentHandler.handleMessageSent (/home/matt/Documents/programming/node/discord/hopson_bot/src/events/message_sent_handler.js:46:18)
  11. at Client.client.on.message (/home/matt/Documents/programming/node/discord/hopson_bot/src/hopson_bot.js:29:37)
  12. at Client.emit (events.js:182:13)
  13. at MessageCreateHandler.handle (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
  14. at WebSocketPacketManager.handle (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:103:65)
  15. at WebSocketConnection.onPacket (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
  16. at WebSocketConnection.onMessage (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
  17. at WebSocket.onMessage (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/ws/lib/event-target.js:120:16)
  18. at WebSocket.emit (events.js:182:13)
  19. at Receiver._receiver.onmessage (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/ws/lib/websocket.js:137:47)
  20. at Receiver.dataMessage (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/ws/lib/receiver.js:409:14)
  21. at Receiver.getData (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/ws/lib/receiver.js:347:12)
  22. at Receiver.startLoop (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/ws/lib/receiver.js:143:16)
  23. at Receiver.add (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/ws/lib/receiver.js:117:10)
  24. at TLSSocket.emit (events.js:182:13)
  25. at addChunk (_stream_readable.js:283:12)
  26. at readableAddChunk (_stream_readable.js:264:11)
  27. at TLSSocket.Readable.push (_stream_readable.js:219:10)
Advertisement
Add Comment
Please, Sign In to add comment