{"action":"created","comment":{"url":"https://api.github.com/repos/Yamboy1/discord-donuts/pulls/comments/226699357","pull_request_review_id":166591868,"id":226699357,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjY5OTM1Nw==","diff_hunk":"@@ -49,23 +49,34 @@ module.exports =\n \n \t\t\t\treturn message.channel.send(notInTimeEmbed);\n \t\t\t}\n-\n-\t\t\ttry {\n-\t\t\t\tawait Orders.update({ status: 2, url: response.first().content }, { where: { id: id }, individualHooks: true });\n-\t\t\t} catch (e) {\n-\t\t\t\tif (e.name === \"SequelizeValidationError\") {\n-\t\t\t\t\t// TODO: Add better error detection\n+\t\t\tif (!response.first().attachments.array()) {\n+\t\t\t\ttry {\n+\t\t\t\t\tawait Orders.update({ status: 2, url: response.first().content }, { where: { id: id }, individualHooks: true });\n+\t\t\t\t} catch (e) {\n+\t\t\t\t\tif (e.name === \"SequelizeValidationError\") {\n+\t\t\t\t\t\t// TODO: Add better error detection\n+\t\t\t\t\t\tconst embed =\n+\t\t\t\t\t\t\tnew DDEmbed(client)\n+\t\t\t\t\t\t\t\t.setStyle(\"white\")\n+\t\t\t\t\t\t\t\t.setTitle(\"Cook\")\n+\t\t\t\t\t\t\t\t.setDescription(\"That doesn't look like a URL to me.\")\n+\t\t\t\t\t\t\t\t.setThumbnail(\"https://images.emojiterra.com/twitter/512px/274c.png\");\n+\n+\t\t\t\t\t\treturn message.channel.send(embed);\n+\t\t\t\t\t}\n+\t\t\t\t}\n+\t\t\t\t\t} else if (response.first().attachments.url.endsWith(\"png\") || response.first().attachments.url.endsWith(\"jpg\") || response.first().attachments.url.endsWith(\"jpeg\") || response.first().attachments.url.endsWith(\"webp\")) {","path":"commands/private/cook.cmd.js","position":26,"original_position":26,"commit_id":"98a7a573ad2078a42d6fd21f0a15f994f7cc96aa","original_commit_id":"98a7a573ad2078a42d6fd21f0a15f994f7cc96aa","user":{"login":"codeclimate[bot]","id":36754821,"node_id":"MDM6Qm90MzY3NTQ4MjE=","avatar_url":"https://avatars0.githubusercontent.com/in/9403?v=4","gravatar_id":"","url":"https://api.github.com/users/codeclimate%5Bbot%5D","html_url":"https://github.com/apps/codeclimate","followers_url":"https://api.github.com/users/codeclimate%5Bbot%5D/followers","following_url":"https://api.github.com/users/codeclimate%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codeclimate%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codeclimate%5Bbot%5D/repos","events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Expected indentation of 3 tabs but found 5.","created_at":"2018-10-19T16:03:21Z","updated_at":"2018-10-19T16:03:21Z","html_url":"https://github.com/Yamboy1/discord-donuts/pull/32#discussion_r226699357","pull_request_url":"https://api.github.com/repos/Yamboy1/discord-donuts/pulls/32","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Yamboy1/discord-donuts/pulls/comments/226699357"},"html":{"href":"https://github.com/Yamboy1/discord-donuts/pull/32#discussion_r226699357"},"pull_request":{"href":"https://api.github.com/repos/Yamboy1/discord-donuts/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/Yamboy1/discord-donuts/pulls/32","id":224334295,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0MzM0Mjk1","html_url":"https://github.com/Yamboy1/discord-donuts/pull/32","diff_url":"https://github.com/Yamboy1/discord-donuts/pull/32.diff","patch_url":"https://github.com/Yamboy1/discord-donuts/pull/32.patch","issue_url":"https://api.github.com/repos/Yamboy1/discord-donuts/issues/32","number":32,"state":"open","locked":false,"title":"Attachments cooking","user":{"login":"TNThacker2015","id":37024464,"node_id":"MDQ6VXNlcjM3MDI0NDY0","avatar_url":"https://avatars1.githubusercontent.com/u/37024464?v=4","gravatar_id":"","url":"https://api.github.com/users/TNThacker2015","html_url":"https://github.com/TNThacker2015","followers_url":"https://api.github.com/users/TNThacker2015/followers","following_url":"https://api.github.com/users/TNThacker2015/following{/other_user}","gists_url":"https://api.github.com/users/TNThacker2015/gists{/gist_id}","starred_url":"https://api.github.com/users/TNThacker2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TNThacker2015/subscriptions","organizations_url":"https://api.github.com/users/TNThacker2015/orgs","repos_url":"https://api.github.com/users/TNThacker2015/repos","events_url":"https://api.github.com/users/TNThacker2015/events{/privacy}","received_events_url":"https://api.github.com/users/TNThacker2015/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-19T15:54:34Z","updated_at":"2018-10-19T16:03:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"689cd69943a29bc8e6a8e3f58d3b302bc2bf981e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Yamboy1/discord-donuts/pulls/32/commits","review_comments_url":"https://api.github.com/repos/Yamboy1/discord-donuts/pulls/32/comments","review_comment_url":"https://api.github.com/repos/Yamboy1/discord-donuts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yamboy1/discord-donuts/issues/32/comments","statuses_url":"https://api.github.com/repos/Yamboy1/discord-donuts/statuses/98a7a573ad2078a42d6fd21f0a15f994f7cc96aa","head":{"label":"TNThacker2015:patch-5","ref":"patch-5","sha":"98a7a573ad2078a42d6fd21f0a15f994f7cc96aa","user":{"login":"TNThacker2015","id":37024464,"node_id":"MDQ6VXNlcjM3MDI0NDY0","avatar_url":"https://avatars1.githubusercontent.com/u/37024464?v=4","gravatar_id":"","url":"https://api.github.com/users/TNThacker2015","html_url":"https://github.com/TNThacker2015","followers_url":"https://api.github.com/users/TNThacker2015/followers","following_url":"https://api.github.com/users/TNThacker2015/following{/other_user}","gists_url":"https://api.github.com/users/TNThacker2015/gists{/gist_id}","starred_url":"https://api.github.com/users/TNThacker2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TNThacker2015/subscriptions","organizations_url":"https://api.github.com/users/TNThacker2015/orgs","repos_url":"https://api.github.com/users/TNThacker2015/repos","events_url":"https://api.github.com/users/TNThacker2015/events{/privacy}","received_events_url":"https://api.github.com/users/TNThacker2015/received_events","type":"User","site_admin":false},"repo":{"id":152511072,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI1MTEwNzI=","name":"discord-donuts-1","full_name":"TNThacker2015/discord-donuts-1","private":false,"owner":{"login":"TNThacker2015","id":37024464,"node_id":"MDQ6VXNlcjM3MDI0NDY0","avatar_url":"https://avatars1.githubusercontent.com/u/37024464?v=4","gravatar_id":"","url":"https://api.github.com/users/TNThacker2015","html_url":"https://github.com/TNThacker2015","followers_url":"https://api.github.com/users/TNThacker2015/followers","following_url":"https://api.github.com/users/TNThacker2015/following{/other_user}","gists_url":"https://api.github.com/users/TNThacker2015/gists{/gist_id}","starred_url":"https://api.github.com/users/TNThacker2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TNThacker2015/subscriptions","organizations_url":"https://api.github.com/users/TNThacker2015/orgs","repos_url":"https://api.github.com/users/TNThacker2015/repos","events_url":"https://api.github.com/users/TNThacker2015/events{/privacy}","received_events_url":"https://api.github.com/users/TNThacker2015/received_events","type":"User","site_admin":false},"html_url":"https://github.com/TNThacker2015/discord-donuts-1","description":null,"fork":true,"url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1","forks_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/forks","keys_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/teams","hooks_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/hooks","issue_events_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/issues/events{/number}","events_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/events","assignees_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/assignees{/user}","branches_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/branches{/branch}","tags_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/tags","blobs_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/statuses/{sha}","languages_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/languages","stargazers_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/stargazers","contributors_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/contributors","subscribers_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/subscribers","subscription_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/subscription","commits_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/contents/{+path}","compare_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/merges","archive_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/downloads","issues_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/issues{/number}","pulls_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/pulls{/number}","milestones_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/milestones{/number}","notifications_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/labels{/name}","releases_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/releases{/id}","deployments_url":"https://api.github.com/repos/TNThacker2015/discord-donuts-1/deployments","created_at":"2018-10-11T01:14:06Z","updated_at":"2018-10-11T01:14:08Z","pushed_at":"2018-10-19T16:03:02Z","git_url":"git://github.com/TNThacker2015/discord-donuts-1.git","ssh_url":"git@github.com:TNThacker2015/discord-donuts-1.git","clone_url":"https://github.com/TNThacker2015/discord-donuts-1.git","svn_url":"https://github.com/TNThacker2015/discord-donuts-1","homepage":null,"size":194,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"yams-rewrite"}},"base":{"label":"Yamboy1:yams-rewrite","ref":"yams-rewrite","sha":"a63ebc567fa4439a90bf3c1f26788c63386a613b","user":{"login":"Yamboy1","id":37413895,"node_id":"MDQ6VXNlcjM3NDEzODk1","avatar_url":"https://avatars2.githubusercontent.com/u/37413895?v=4","gravatar_id":"","url":"https://api.github.com/users/Yamboy1","html_url":"https://github.com/Yamboy1","followers_url":"https://api.github.com/users/Yamboy1/followers","following_url":"https://api.github.com/users/Yamboy1/following{/other_user}","gists_url":"https://api.github.com/users/Yamboy1/gists{/gist_id}","starred_url":"https://api.github.com/users/Yamboy1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yamboy1/subscriptions","organizations_url":"https://api.github.com/users/Yamboy1/orgs","repos_url":"https://api.github.com/users/Yamboy1/repos","events_url":"https://api.github.com/users/Yamboy1/events{/privacy}","received_events_url":"https://api.github.com/users/Yamboy1/received_events","type":"User","site_admin":false},"repo":{"id":151913959,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE5MTM5NTk=","name":"discord-donuts","full_name":"Yamboy1/discord-donuts","private":false,"owner":{"login":"Yamboy1","id":37413895,"node_id":"MDQ6VXNlcjM3NDEzODk1","avatar_url":"https://avatars2.githubusercontent.com/u/37413895?v=4","gravatar_id":"","url":"https://api.github.com/users/Yamboy1","html_url":"https://github.com/Yamboy1","followers_url":"https://api.github.com/users/Yamboy1/followers","following_url":"https://api.github.com/users/Yamboy1/following{/other_user}","gists_url":"https://api.github.com/users/Yamboy1/gists{/gist_id}","starred_url":"https://api.github.com/users/Yamboy1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yamboy1/subscriptions","organizations_url":"https://api.github.com/users/Yamboy1/orgs","repos_url":"https://api.github.com/users/Yamboy1/repos","events_url":"https://api.github.com/users/Yamboy1/events{/privacy}","received_events_url":"https://api.github.com/users/Yamboy1/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Yamboy1/discord-donuts","description":null,"fork":false,"url":"https://api.github.com/repos/Yamboy1/discord-donuts","forks_url":"https://api.github.com/repos/Yamboy1/discord-donuts/forks","keys_url":"https://api.github.com/repos/Yamboy1/discord-donuts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yamboy1/discord-donuts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yamboy1/discord-donuts/teams","hooks_url":"https://api.github.com/repos/Yamboy1/discord-donuts/hooks","issue_events_url":"https://api.github.com/repos/Yamboy1/discord-donuts/issues/events{/number}","events_url":"https://api.github.com/repos/Yamboy1/discord-donuts/events","assignees_url":"https://api.github.com/repos/Yamboy1/discord-donuts/assignees{/user}","branches_url":"https://api.github.com/repos/Yamboy1/discord-donuts/branches{/branch}","tags_url":"https://api.github.com/repos/Yamboy1/discord-donuts/tags","blobs_url":"https://api.github.com/repos/Yamboy1/discord-donuts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yamboy1/discord-donuts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yamboy1/discord-donuts/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yamboy1/discord-donuts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yamboy1/discord-donuts/statuses/{sha}","languages_url":"https://api.github.com/repos/Yamboy1/discord-donuts/languages","stargazers_url":"https://api.github.com/repos/Yamboy1/discord-donuts/stargazers","contributors_url":"https://api.github.com/repos/Yamboy1/discord-donuts/contributors","subscribers_url":"https://api.github.com/repos/Yamboy1/discord-donuts/subscribers","subscription_url":"https://api.github.com/repos/Yamboy1/discord-donuts/subscription","commits_url":"https://api.github.com/repos/Yamboy1/discord-donuts/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yamboy1/discord-donuts/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yamboy1/discord-donuts/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yamboy1/discord-donuts/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yamboy1/discord-donuts/contents/{+path}","compare_url":"https://api.github.com/repos/Yamboy1/discord-donuts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yamboy1/discord-donuts/merges","archive_url":"https://api.github.com/repos/Yamboy1/discord-donuts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yamboy1/discord-donuts/downloads","issues_url":"https://api.github.com/repos/Yamboy1/discord-donuts/issues{/number}","pulls_url":"https://api.github.com/repos/Yamboy1/discord-donuts/pulls{/number}","milestones_url":"https://api.github.com/repos/Yamboy1/discord-donuts/milestones{/number}","notifications_url":"https://api.github.com/repos/Yamboy1/discord-donuts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yamboy1/discord-donuts/labels{/name}","releases_url":"https://api.github.com/repos/Yamboy1/discord-donuts/releases{/id}","deployments_url":"https://api.github.com/repos/Yamboy1/discord-donuts/deployments","created_at":"2018-10-07T06:49:35Z","updated_at":"2018-10-19T00:47:17Z","pushed_at":"2018-10-19T16:03:03Z","git_url":"git://github.com/Yamboy1/discord-donuts.git","ssh_url":"git@github.com:Yamboy1/discord-donuts.git","clone_url":"https://github.com/Yamboy1/discord-donuts.git","svn_url":"https://github.com/Yamboy1/discord-donuts","homepage":null,"size":196,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":3,"open_issues":13,"watchers":4,"default_branch":"yams-rewrite"}},"_links":{"self":{"href":"https://api.github.com/repos/Yamboy1/discord-donuts/pulls/32"},"html":{"href":"https://github.com/Yamboy1/discord-donuts/pull/32"},"issue":{"href":"https://api.github.com/repos/Yamboy1/discord-donuts/issues/32"},"comments":{"href":"https://api.github.com/repos/Yamboy1/discord-donuts/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/Yamboy1/discord-donuts/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/Yamboy1/discord-donuts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yamboy1/discord-donuts/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/Yamboy1/discord-donuts/statuses/98a7a573ad2078a42d6fd21f0a15f994f7cc96aa"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codeclimate"}}