/home/darkbot/1.0.0/node_modules/discord.js/src/client/rest/RESTMethods.js:323
return this.rest.makeRequest('put', Constants.Endpoints.guildMemberRole(member.guild.id, member.id, role.id), true)
^
TypeError: Cannot read property 'id' of undefined
at RESTMethods.addMemberRole (/home/darkbot/1.0.0/node_modules/discord.js/src/client/rest/RESTMethods.js:323:109)
at GuildMember.addRole (/home/darkbot/1.0.0/node_modules/discord.js/src/structures/GuildMember.js:333:37)
at Client.module.exports (/home/darkbot/1.0.0/bot/events/presenceUpdate.js:6:19)
at emitTwo (events.js:106:13)
at Client.emit (events.js:191:7)
at PresenceUpdateHandler.handle (/home/darkbot/1.0.0/node_modules/discord.js/src/client/websocket/packets/handlers/PresenceUpdate.js:44:16)
at WebSocketPacketManager.handle (/home/darkbot/1.0.0/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:120:65)
at WebSocketManager.eventMessage (/home/darkbot/1.0.0/node_modules/discord.js/src/client/websocket/WebSocketManager.js:273:31)
at WebSocket.onMessage (/home/darkbot/1.0.0/node_modules/ws/lib/WebSocket.js:442:14)
at emitTwo (events.js:106:13)
Error: