{"action":"opened","issue":{"url":"https://api.github.com/repos/eslachance/guidebot/issues/19","repository_url":"https://api.github.com/repos/eslachance/guidebot","labels_url":"https://api.github.com/repos/eslachance/guidebot/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/eslachance/guidebot/issues/19/comments","events_url":"https://api.github.com/repos/eslachance/guidebot/issues/19/events","html_url":"https://github.com/eslachance/guidebot/issues/19","id":181889561,"number":19,"title":"Reload command crashes when not given a parameter","user":{"login":"FOG-Yamato","id":22725593,"avatar_url":"https://avatars.githubusercontent.com/u/22725593?v=3","gravatar_id":"","url":"https://api.github.com/users/FOG-Yamato","html_url":"https://github.com/FOG-Yamato","followers_url":"https://api.github.com/users/FOG-Yamato/followers","following_url":"https://api.github.com/users/FOG-Yamato/following{/other_user}","gists_url":"https://api.github.com/users/FOG-Yamato/gists{/gist_id}","starred_url":"https://api.github.com/users/FOG-Yamato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FOG-Yamato/subscriptions","organizations_url":"https://api.github.com/users/FOG-Yamato/orgs","repos_url":"https://api.github.com/users/FOG-Yamato/repos","events_url":"https://api.github.com/users/FOG-Yamato/events{/privacy}","received_events_url":"https://api.github.com/users/FOG-Yamato/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-09T14:24:19Z","updated_at":"2016-10-09T14:24:19Z","closed_at":null,"body":"`D:\\c2857\\Desktop\\Discord Bots\\guidebot\\cmds\\reload.js:11\r\n    if (params[0].includes(\".js\")) params[0] = params[0].replace(\".js\",\"\");\r\n                 ^\r\n\r\nTypeError: Cannot read property 'includes' of undefined\r\n    at Object.exports.run (D:\\c2857\\Desktop\\Discord Bots\\guidebot\\cmds\\reload.js:11:18)\r\n    at Client.bot.on.msg (D:\\c2857\\Desktop\\Discord Bots\\guidebot\\app.js:77:9)\r\n    at emitOne (events.js:96:13)\r\n    at Client.emit (events.js:188:7)\r\n    at MessageCreateHandler.handle (D:\\c2857\\Desktop\\Discord Bots\\guidebot\\node_modules\\discord.js\\src\\client\\websocket\\packets\\handlers\\MessageCreate.js:9:34)\r\n    at WebSocketPacketManager.handle (D:\\c2857\\Desktop\\Discord Bots\\guidebot\\node_modules\\discord.js\\src\\client\\websocket\\packets\\WebSocketPacketManager.js:94:65)\r\n    at WebSocketManager.eventMessage (D:\\c2857\\Desktop\\Discord Bots\\guidebot\\node_modules\\discord.js\\src\\client\\websocket\\WebSocketManager.js:220:31)\r\n    at WebSocket.ws.onmessage (D:\\c2857\\Desktop\\Discord Bots\\guidebot\\node_modules\\discord.js\\src\\client\\websocket\\WebSocketManager.js:78:37)\r\n    at WebSocket.onMessage (D:\\c2857\\Desktop\\Discord Bots\\guidebot\\node_modules\\ws\\lib\\WebSocket.js:442:14)\r\n    at emitTwo (events.js:106:13)`\r\nI myself fixed it by adding a return if params[0] is null"}}
{"actor":{"display_login":"FOG-Yamato"}}