{"action":"created","comment":{"url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/pulls/comments/166148352","pull_request_review_id":94183393,"id":166148352,"diff_hunk":"@@ -1223,30 +1223,49 @@ def _gen_embed(self):\n         If a command is specified, it prints a help message for that command.\n         Otherwise, it lists the available commands.\n         \"\"\"\n+        self.commands = []\n+        prefix = self.config.command_prefix\n \n-        if command:\n-            cmd = getattr(self, 'cmd_' + command, None)\n-            if cmd and not hasattr(cmd, 'dev_cmd'):\n-                return Response(\n-                    \"```\\n{}```\".format(\n-                        dedent(cmd.__doc__)\n-                    ).format(command_prefix=self.config.command_prefix),\n-                    delete_after=60\n-                )\n-            else:\n-                raise exceptions.CommandError(self.str.get('cmd-help-invalid', \"No such command\"), expire_in=10)\n-\n-        else:\n-            commands = []\n+        async def gen_cmd_list(message, all=False):","path":"musicbot/bot.py","position":30,"original_position":30,"commit_id":"37ffa07ea5b0a0a4ef1c8bc597d4101ac58b2205","original_commit_id":"37ffa07ea5b0a0a4ef1c8bc597d4101ac58b2205","user":{"login":"jaydenkieran","id":7265189,"avatar_url":"https://avatars3.githubusercontent.com/u/7265189?v=4","gravatar_id":"","url":"https://api.github.com/users/jaydenkieran","html_url":"https://github.com/jaydenkieran","followers_url":"https://api.github.com/users/jaydenkieran/followers","following_url":"https://api.github.com/users/jaydenkieran/following{/other_user}","gists_url":"https://api.github.com/users/jaydenkieran/gists{/gist_id}","starred_url":"https://api.github.com/users/jaydenkieran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaydenkieran/subscriptions","organizations_url":"https://api.github.com/users/jaydenkieran/orgs","repos_url":"https://api.github.com/users/jaydenkieran/repos","events_url":"https://api.github.com/users/jaydenkieran/events{/privacy}","received_events_url":"https://api.github.com/users/jaydenkieran/received_events","type":"User","site_admin":false},"body":"Not sure that this should be within the scope of the cmd_help function. `all` should probably be renamed too as it is the name of an built-in function.","created_at":"2018-02-05T23:42:49Z","updated_at":"2018-02-05T23:51:43Z","html_url":"https://github.com/Just-Some-Bots/MusicBot/pull/1495#discussion_r166148352","pull_request_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/pulls/1495","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Just-Some-Bots/MusicBot/pulls/comments/166148352"},"html":{"href":"https://github.com/Just-Some-Bots/MusicBot/pull/1495#discussion_r166148352"},"pull_request":{"href":"https://api.github.com/repos/Just-Some-Bots/MusicBot/pulls/1495"}}},"pull_request":{"url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/pulls/1495","id":166424622,"html_url":"https://github.com/Just-Some-Bots/MusicBot/pull/1495","diff_url":"https://github.com/Just-Some-Bots/MusicBot/pull/1495.diff","patch_url":"https://github.com/Just-Some-Bots/MusicBot/pull/1495.patch","issue_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/issues/1495","number":1495,"state":"open","locked":false,"title":"Help command only returns commands you can use","user":{"login":"MattBSG","id":7331408,"avatar_url":"https://avatars2.githubusercontent.com/u/7331408?v=4","gravatar_id":"","url":"https://api.github.com/users/MattBSG","html_url":"https://github.com/MattBSG","followers_url":"https://api.github.com/users/MattBSG/followers","following_url":"https://api.github.com/users/MattBSG/following{/other_user}","gists_url":"https://api.github.com/users/MattBSG/gists{/gist_id}","starred_url":"https://api.github.com/users/MattBSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattBSG/subscriptions","organizations_url":"https://api.github.com/users/MattBSG/orgs","repos_url":"https://api.github.com/users/MattBSG/repos","events_url":"https://api.github.com/users/MattBSG/events{/privacy}","received_events_url":"https://api.github.com/users/MattBSG/received_events","type":"User","site_admin":false},"body":"Please make sure these boxes are checked (put an 'x' inside them) **before** creating the pull request.\r\n\r\n- [x] I have tested my changes against the `review` branch (the latest developmental version), and this pull request is targeting that branch as a base\r\n- [x] I have tested my changes on Python 3.5/3.6\r\n\r\n----\r\n\r\n### Description\r\nChanges the behavior for the help command. `{}help` now only returns commands you can run with your permissions. You can bypass this by running `{}help all` or if you are owner.\r\n\r\n### Related issues (if applicable)\r\nFeature request #129\r\n","created_at":"2018-02-01T01:54:20Z","updated_at":"2018-02-05T23:51:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6e85a2a7d97974e4f8778c5471ef7f474f9708f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/pulls/1495/commits","review_comments_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/pulls/1495/comments","review_comment_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/issues/1495/comments","statuses_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/statuses/37ffa07ea5b0a0a4ef1c8bc597d4101ac58b2205","head":{"label":"MattBSG:review","ref":"review","sha":"37ffa07ea5b0a0a4ef1c8bc597d4101ac58b2205","user":{"login":"MattBSG","id":7331408,"avatar_url":"https://avatars2.githubusercontent.com/u/7331408?v=4","gravatar_id":"","url":"https://api.github.com/users/MattBSG","html_url":"https://github.com/MattBSG","followers_url":"https://api.github.com/users/MattBSG/followers","following_url":"https://api.github.com/users/MattBSG/following{/other_user}","gists_url":"https://api.github.com/users/MattBSG/gists{/gist_id}","starred_url":"https://api.github.com/users/MattBSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattBSG/subscriptions","organizations_url":"https://api.github.com/users/MattBSG/orgs","repos_url":"https://api.github.com/users/MattBSG/repos","events_url":"https://api.github.com/users/MattBSG/events{/privacy}","received_events_url":"https://api.github.com/users/MattBSG/received_events","type":"User","site_admin":false},"repo":{"id":119766597,"name":"MusicBot","full_name":"MattBSG/MusicBot","owner":{"login":"MattBSG","id":7331408,"avatar_url":"https://avatars2.githubusercontent.com/u/7331408?v=4","gravatar_id":"","url":"https://api.github.com/users/MattBSG","html_url":"https://github.com/MattBSG","followers_url":"https://api.github.com/users/MattBSG/followers","following_url":"https://api.github.com/users/MattBSG/following{/other_user}","gists_url":"https://api.github.com/users/MattBSG/gists{/gist_id}","starred_url":"https://api.github.com/users/MattBSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattBSG/subscriptions","organizations_url":"https://api.github.com/users/MattBSG/orgs","repos_url":"https://api.github.com/users/MattBSG/repos","events_url":"https://api.github.com/users/MattBSG/events{/privacy}","received_events_url":"https://api.github.com/users/MattBSG/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MattBSG/MusicBot","description":":musical_note: The original MusicBot for Discord (formerly SexualRhinoceros/MusicBot)","fork":true,"url":"https://api.github.com/repos/MattBSG/MusicBot","forks_url":"https://api.github.com/repos/MattBSG/MusicBot/forks","keys_url":"https://api.github.com/repos/MattBSG/MusicBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MattBSG/MusicBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MattBSG/MusicBot/teams","hooks_url":"https://api.github.com/repos/MattBSG/MusicBot/hooks","issue_events_url":"https://api.github.com/repos/MattBSG/MusicBot/issues/events{/number}","events_url":"https://api.github.com/repos/MattBSG/MusicBot/events","assignees_url":"https://api.github.com/repos/MattBSG/MusicBot/assignees{/user}","branches_url":"https://api.github.com/repos/MattBSG/MusicBot/branches{/branch}","tags_url":"https://api.github.com/repos/MattBSG/MusicBot/tags","blobs_url":"https://api.github.com/repos/MattBSG/MusicBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MattBSG/MusicBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MattBSG/MusicBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/MattBSG/MusicBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MattBSG/MusicBot/statuses/{sha}","languages_url":"https://api.github.com/repos/MattBSG/MusicBot/languages","stargazers_url":"https://api.github.com/repos/MattBSG/MusicBot/stargazers","contributors_url":"https://api.github.com/repos/MattBSG/MusicBot/contributors","subscribers_url":"https://api.github.com/repos/MattBSG/MusicBot/subscribers","subscription_url":"https://api.github.com/repos/MattBSG/MusicBot/subscription","commits_url":"https://api.github.com/repos/MattBSG/MusicBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/MattBSG/MusicBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/MattBSG/MusicBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/MattBSG/MusicBot/issues/comments{/number}","contents_url":"https://api.github.com/repos/MattBSG/MusicBot/contents/{+path}","compare_url":"https://api.github.com/repos/MattBSG/MusicBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MattBSG/MusicBot/merges","archive_url":"https://api.github.com/repos/MattBSG/MusicBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MattBSG/MusicBot/downloads","issues_url":"https://api.github.com/repos/MattBSG/MusicBot/issues{/number}","pulls_url":"https://api.github.com/repos/MattBSG/MusicBot/pulls{/number}","milestones_url":"https://api.github.com/repos/MattBSG/MusicBot/milestones{/number}","notifications_url":"https://api.github.com/repos/MattBSG/MusicBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MattBSG/MusicBot/labels{/name}","releases_url":"https://api.github.com/repos/MattBSG/MusicBot/releases{/id}","deployments_url":"https://api.github.com/repos/MattBSG/MusicBot/deployments","created_at":"2018-02-01T01:36:23Z","updated_at":"2018-02-01T01:36:26Z","pushed_at":"2018-02-01T02:47:30Z","git_url":"git://github.com/MattBSG/MusicBot.git","ssh_url":"git@github.com:MattBSG/MusicBot.git","clone_url":"https://github.com/MattBSG/MusicBot.git","svn_url":"https://github.com/MattBSG/MusicBot","homepage":"https://just-some-bots.github.io/MusicBot/","size":100910,"stargazers_count":0,"watchers_count":0,"language":"Python","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Just-Some-Bots:review","ref":"review","sha":"e0ab8f2365f7a1c23a6db019dc0bd1d276318eed","user":{"login":"Just-Some-Bots","id":22779351,"avatar_url":"https://avatars3.githubusercontent.com/u/22779351?v=4","gravatar_id":"","url":"https://api.github.com/users/Just-Some-Bots","html_url":"https://github.com/Just-Some-Bots","followers_url":"https://api.github.com/users/Just-Some-Bots/followers","following_url":"https://api.github.com/users/Just-Some-Bots/following{/other_user}","gists_url":"https://api.github.com/users/Just-Some-Bots/gists{/gist_id}","starred_url":"https://api.github.com/users/Just-Some-Bots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Just-Some-Bots/subscriptions","organizations_url":"https://api.github.com/users/Just-Some-Bots/orgs","repos_url":"https://api.github.com/users/Just-Some-Bots/repos","events_url":"https://api.github.com/users/Just-Some-Bots/events{/privacy}","received_events_url":"https://api.github.com/users/Just-Some-Bots/received_events","type":"Organization","site_admin":false},"repo":{"id":48729353,"name":"MusicBot","full_name":"Just-Some-Bots/MusicBot","owner":{"login":"Just-Some-Bots","id":22779351,"avatar_url":"https://avatars3.githubusercontent.com/u/22779351?v=4","gravatar_id":"","url":"https://api.github.com/users/Just-Some-Bots","html_url":"https://github.com/Just-Some-Bots","followers_url":"https://api.github.com/users/Just-Some-Bots/followers","following_url":"https://api.github.com/users/Just-Some-Bots/following{/other_user}","gists_url":"https://api.github.com/users/Just-Some-Bots/gists{/gist_id}","starred_url":"https://api.github.com/users/Just-Some-Bots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Just-Some-Bots/subscriptions","organizations_url":"https://api.github.com/users/Just-Some-Bots/orgs","repos_url":"https://api.github.com/users/Just-Some-Bots/repos","events_url":"https://api.github.com/users/Just-Some-Bots/events{/privacy}","received_events_url":"https://api.github.com/users/Just-Some-Bots/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Just-Some-Bots/MusicBot","description":":musical_note: The original MusicBot for Discord (formerly SexualRhinoceros/MusicBot)","fork":false,"url":"https://api.github.com/repos/Just-Some-Bots/MusicBot","forks_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/forks","keys_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/teams","hooks_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/hooks","issue_events_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/issues/events{/number}","events_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/events","assignees_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/assignees{/user}","branches_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/branches{/branch}","tags_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/tags","blobs_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/statuses/{sha}","languages_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/languages","stargazers_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/stargazers","contributors_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/contributors","subscribers_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/subscribers","subscription_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/subscription","commits_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/contents/{+path}","compare_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/merges","archive_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/downloads","issues_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/issues{/number}","pulls_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/pulls{/number}","milestones_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/milestones{/number}","notifications_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/labels{/name}","releases_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/releases{/id}","deployments_url":"https://api.github.com/repos/Just-Some-Bots/MusicBot/deployments","created_at":"2015-12-29T05:30:11Z","updated_at":"2018-02-03T01:36:47Z","pushed_at":"2018-02-05T23:34:24Z","git_url":"git://github.com/Just-Some-Bots/MusicBot.git","ssh_url":"git@github.com:Just-Some-Bots/MusicBot.git","clone_url":"https://github.com/Just-Some-Bots/MusicBot.git","svn_url":"https://github.com/Just-Some-Bots/MusicBot","homepage":"https://just-some-bots.github.io/MusicBot/","size":100841,"stargazers_count":1364,"watchers_count":1364,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1222,"mirror_url":null,"archived":false,"open_issues_count":113,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1222,"open_issues":113,"watchers":1364,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Just-Some-Bots/MusicBot/pulls/1495"},"html":{"href":"https://github.com/Just-Some-Bots/MusicBot/pull/1495"},"issue":{"href":"https://api.github.com/repos/Just-Some-Bots/MusicBot/issues/1495"},"comments":{"href":"https://api.github.com/repos/Just-Some-Bots/MusicBot/issues/1495/comments"},"review_comments":{"href":"https://api.github.com/repos/Just-Some-Bots/MusicBot/pulls/1495/comments"},"review_comment":{"href":"https://api.github.com/repos/Just-Some-Bots/MusicBot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Just-Some-Bots/MusicBot/pulls/1495/commits"},"statuses":{"href":"https://api.github.com/repos/Just-Some-Bots/MusicBot/statuses/37ffa07ea5b0a0a4ef1c8bc597d4101ac58b2205"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"jaydenkieran"}}