Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /home/matt/Documents/programming/node/discord/hopson_bot/src/commands/role_command_handler.js:108
- member.addRole(role)
- ^
- TypeError: Cannot read property 'addRole' of null
- at modifyRoles (/home/matt/Documents/programming/node/discord/hopson_bot/src/commands/role_command_handler.js:108:24)
- at Comamnd.addRoles [as action] (/home/matt/Documents/programming/node/discord/hopson_bot/src/commands/role_command_handler.js:83:5)
- at RoleEventHandler.handleCommand (/home/matt/Documents/programming/node/discord/hopson_bot/src/commands/command_handler.js:40:17)
- at MessageSentHandler.handleCommand (/home/matt/Documents/programming/node/discord/hopson_bot/src/events/message_sent_handler.js:80:25)
- at MessageSentHandler.handleMessageSent (/home/matt/Documents/programming/node/discord/hopson_bot/src/events/message_sent_handler.js:46:18)
- at Client.client.on.message (/home/matt/Documents/programming/node/discord/hopson_bot/src/hopson_bot.js:29:37)
- at Client.emit (events.js:182: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)
- at WebSocketPacketManager.handle (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:103:65)
- at WebSocketConnection.onPacket (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
- at WebSocketConnection.onMessage (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
- at WebSocket.onMessage (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/ws/lib/event-target.js:120:16)
- at WebSocket.emit (events.js:182:13)
- at Receiver._receiver.onmessage (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/ws/lib/websocket.js:137:47)
- at Receiver.dataMessage (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/ws/lib/receiver.js:409:14)
- at Receiver.getData (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/ws/lib/receiver.js:347:12)
- at Receiver.startLoop (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/ws/lib/receiver.js:143:16)
- at Receiver.add (/home/matt/Documents/programming/node/discord/hopson_bot/node_modules/ws/lib/receiver.js:117:10)
- at TLSSocket.emit (events.js:182:13)
- at addChunk (_stream_readable.js:283:12)
- at readableAddChunk (_stream_readable.js:264:11)
- at TLSSocket.Readable.push (_stream_readable.js:219:10)
Advertisement
Add Comment
Please, Sign In to add comment