{"action":"opened","number":183,"pull_request":{"url":"https://api.github.com/repos/Rapptz/discord.py/pulls/183","id":67588875,"html_url":"https://github.com/Rapptz/discord.py/pull/183","diff_url":"https://github.com/Rapptz/discord.py/pull/183.diff","patch_url":"https://github.com/Rapptz/discord.py/pull/183.patch","issue_url":"https://api.github.com/repos/Rapptz/discord.py/issues/183","number":183,"state":"open","locked":false,"title":"Discord.py Resume support.","user":{"login":"ccubed","id":67614,"avatar_url":"https://avatars.githubusercontent.com/u/67614?v=3","gravatar_id":"","url":"https://api.github.com/users/ccubed","html_url":"https://github.com/ccubed","followers_url":"https://api.github.com/users/ccubed/followers","following_url":"https://api.github.com/users/ccubed/following{/other_user}","gists_url":"https://api.github.com/users/ccubed/gists{/gist_id}","starred_url":"https://api.github.com/users/ccubed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccubed/subscriptions","organizations_url":"https://api.github.com/users/ccubed/orgs","repos_url":"https://api.github.com/users/ccubed/repos","events_url":"https://api.github.com/users/ccubed/events{/privacy}","received_events_url":"https://api.github.com/users/ccubed/received_events","type":"User","site_admin":false},"body":"Made changes so that the library supports resumes. Fixed the resume packet to send the token (It was the only thing missing). Shouldn't interfere with anything else as it blocks all other threads until the reconnect happens (Which is necessary because otherwise everything implodes as things try to write to a dead websocket). Also successfully gets the pending missed events. Works good. Tested on my side in a custom build. Working good so far. Left in the reconnect_times variable, can be removed, but might be useful to someone somewhere.","created_at":"2016-04-23T00:13:37Z","updated_at":"2016-04-23T00:13:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8051be5e084c3ada6884536095e35c8cf8e67555","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Rapptz/discord.py/pulls/183/commits","review_comments_url":"https://api.github.com/repos/Rapptz/discord.py/pulls/183/comments","review_comment_url":"https://api.github.com/repos/Rapptz/discord.py/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Rapptz/discord.py/issues/183/comments","statuses_url":"https://api.github.com/repos/Rapptz/discord.py/statuses/bc3a47f3203172c47088beac5eb1fdb5398df990","head":{"label":"ccubed:Graceful_Exit","ref":"Graceful_Exit","sha":"bc3a47f3203172c47088beac5eb1fdb5398df990","user":{"login":"ccubed","id":67614,"avatar_url":"https://avatars.githubusercontent.com/u/67614?v=3","gravatar_id":"","url":"https://api.github.com/users/ccubed","html_url":"https://github.com/ccubed","followers_url":"https://api.github.com/users/ccubed/followers","following_url":"https://api.github.com/users/ccubed/following{/other_user}","gists_url":"https://api.github.com/users/ccubed/gists{/gist_id}","starred_url":"https://api.github.com/users/ccubed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccubed/subscriptions","organizations_url":"https://api.github.com/users/ccubed/orgs","repos_url":"https://api.github.com/users/ccubed/repos","events_url":"https://api.github.com/users/ccubed/events{/privacy}","received_events_url":"https://api.github.com/users/ccubed/received_events","type":"User","site_admin":false},"repo":{"id":56732017,"name":"discord.py","full_name":"ccubed/discord.py","owner":{"login":"ccubed","id":67614,"avatar_url":"https://avatars.githubusercontent.com/u/67614?v=3","gravatar_id":"","url":"https://api.github.com/users/ccubed","html_url":"https://github.com/ccubed","followers_url":"https://api.github.com/users/ccubed/followers","following_url":"https://api.github.com/users/ccubed/following{/other_user}","gists_url":"https://api.github.com/users/ccubed/gists{/gist_id}","starred_url":"https://api.github.com/users/ccubed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccubed/subscriptions","organizations_url":"https://api.github.com/users/ccubed/orgs","repos_url":"https://api.github.com/users/ccubed/repos","events_url":"https://api.github.com/users/ccubed/events{/privacy}","received_events_url":"https://api.github.com/users/ccubed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ccubed/discord.py","description":"An API wrapper for Discord written in Python.","fork":true,"url":"https://api.github.com/repos/ccubed/discord.py","forks_url":"https://api.github.com/repos/ccubed/discord.py/forks","keys_url":"https://api.github.com/repos/ccubed/discord.py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ccubed/discord.py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ccubed/discord.py/teams","hooks_url":"https://api.github.com/repos/ccubed/discord.py/hooks","issue_events_url":"https://api.github.com/repos/ccubed/discord.py/issues/events{/number}","events_url":"https://api.github.com/repos/ccubed/discord.py/events","assignees_url":"https://api.github.com/repos/ccubed/discord.py/assignees{/user}","branches_url":"https://api.github.com/repos/ccubed/discord.py/branches{/branch}","tags_url":"https://api.github.com/repos/ccubed/discord.py/tags","blobs_url":"https://api.github.com/repos/ccubed/discord.py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ccubed/discord.py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ccubed/discord.py/git/refs{/sha}","trees_url":"https://api.github.com/repos/ccubed/discord.py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ccubed/discord.py/statuses/{sha}","languages_url":"https://api.github.com/repos/ccubed/discord.py/languages","stargazers_url":"https://api.github.com/repos/ccubed/discord.py/stargazers","contributors_url":"https://api.github.com/repos/ccubed/discord.py/contributors","subscribers_url":"https://api.github.com/repos/ccubed/discord.py/subscribers","subscription_url":"https://api.github.com/repos/ccubed/discord.py/subscription","commits_url":"https://api.github.com/repos/ccubed/discord.py/commits{/sha}","git_commits_url":"https://api.github.com/repos/ccubed/discord.py/git/commits{/sha}","comments_url":"https://api.github.com/repos/ccubed/discord.py/comments{/number}","issue_comment_url":"https://api.github.com/repos/ccubed/discord.py/issues/comments{/number}","contents_url":"https://api.github.com/repos/ccubed/discord.py/contents/{+path}","compare_url":"https://api.github.com/repos/ccubed/discord.py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ccubed/discord.py/merges","archive_url":"https://api.github.com/repos/ccubed/discord.py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ccubed/discord.py/downloads","issues_url":"https://api.github.com/repos/ccubed/discord.py/issues{/number}","pulls_url":"https://api.github.com/repos/ccubed/discord.py/pulls{/number}","milestones_url":"https://api.github.com/repos/ccubed/discord.py/milestones{/number}","notifications_url":"https://api.github.com/repos/ccubed/discord.py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ccubed/discord.py/labels{/name}","releases_url":"https://api.github.com/repos/ccubed/discord.py/releases{/id}","deployments_url":"https://api.github.com/repos/ccubed/discord.py/deployments","created_at":"2016-04-21T01:14:02Z","updated_at":"2016-04-21T01:14:03Z","pushed_at":"2016-04-23T00:11:22Z","git_url":"git://github.com/ccubed/discord.py.git","ssh_url":"git@github.com:ccubed/discord.py.git","clone_url":"https://github.com/ccubed/discord.py.git","svn_url":"https://github.com/ccubed/discord.py","homepage":"http://rapptz.github.io/discord.py/","size":2225,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"async"}},"base":{"label":"Rapptz:async","ref":"async","sha":"bd5effeb68ca871e3d9ffba98b63430b817d4483","user":{"login":"Rapptz","id":1695103,"avatar_url":"https://avatars.githubusercontent.com/u/1695103?v=3","gravatar_id":"","url":"https://api.github.com/users/Rapptz","html_url":"https://github.com/Rapptz","followers_url":"https://api.github.com/users/Rapptz/followers","following_url":"https://api.github.com/users/Rapptz/following{/other_user}","gists_url":"https://api.github.com/users/Rapptz/gists{/gist_id}","starred_url":"https://api.github.com/users/Rapptz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rapptz/subscriptions","organizations_url":"https://api.github.com/users/Rapptz/orgs","repos_url":"https://api.github.com/users/Rapptz/repos","events_url":"https://api.github.com/users/Rapptz/events{/privacy}","received_events_url":"https://api.github.com/users/Rapptz/received_events","type":"User","site_admin":false},"repo":{"id":41179827,"name":"discord.py","full_name":"Rapptz/discord.py","owner":{"login":"Rapptz","id":1695103,"avatar_url":"https://avatars.githubusercontent.com/u/1695103?v=3","gravatar_id":"","url":"https://api.github.com/users/Rapptz","html_url":"https://github.com/Rapptz","followers_url":"https://api.github.com/users/Rapptz/followers","following_url":"https://api.github.com/users/Rapptz/following{/other_user}","gists_url":"https://api.github.com/users/Rapptz/gists{/gist_id}","starred_url":"https://api.github.com/users/Rapptz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rapptz/subscriptions","organizations_url":"https://api.github.com/users/Rapptz/orgs","repos_url":"https://api.github.com/users/Rapptz/repos","events_url":"https://api.github.com/users/Rapptz/events{/privacy}","received_events_url":"https://api.github.com/users/Rapptz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Rapptz/discord.py","description":"An API wrapper for Discord written in Python.","fork":false,"url":"https://api.github.com/repos/Rapptz/discord.py","forks_url":"https://api.github.com/repos/Rapptz/discord.py/forks","keys_url":"https://api.github.com/repos/Rapptz/discord.py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rapptz/discord.py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rapptz/discord.py/teams","hooks_url":"https://api.github.com/repos/Rapptz/discord.py/hooks","issue_events_url":"https://api.github.com/repos/Rapptz/discord.py/issues/events{/number}","events_url":"https://api.github.com/repos/Rapptz/discord.py/events","assignees_url":"https://api.github.com/repos/Rapptz/discord.py/assignees{/user}","branches_url":"https://api.github.com/repos/Rapptz/discord.py/branches{/branch}","tags_url":"https://api.github.com/repos/Rapptz/discord.py/tags","blobs_url":"https://api.github.com/repos/Rapptz/discord.py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rapptz/discord.py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rapptz/discord.py/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rapptz/discord.py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rapptz/discord.py/statuses/{sha}","languages_url":"https://api.github.com/repos/Rapptz/discord.py/languages","stargazers_url":"https://api.github.com/repos/Rapptz/discord.py/stargazers","contributors_url":"https://api.github.com/repos/Rapptz/discord.py/contributors","subscribers_url":"https://api.github.com/repos/Rapptz/discord.py/subscribers","subscription_url":"https://api.github.com/repos/Rapptz/discord.py/subscription","commits_url":"https://api.github.com/repos/Rapptz/discord.py/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rapptz/discord.py/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rapptz/discord.py/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rapptz/discord.py/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rapptz/discord.py/contents/{+path}","compare_url":"https://api.github.com/repos/Rapptz/discord.py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rapptz/discord.py/merges","archive_url":"https://api.github.com/repos/Rapptz/discord.py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rapptz/discord.py/downloads","issues_url":"https://api.github.com/repos/Rapptz/discord.py/issues{/number}","pulls_url":"https://api.github.com/repos/Rapptz/discord.py/pulls{/number}","milestones_url":"https://api.github.com/repos/Rapptz/discord.py/milestones{/number}","notifications_url":"https://api.github.com/repos/Rapptz/discord.py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rapptz/discord.py/labels{/name}","releases_url":"https://api.github.com/repos/Rapptz/discord.py/releases{/id}","deployments_url":"https://api.github.com/repos/Rapptz/discord.py/deployments","created_at":"2015-08-21T22:19:08Z","updated_at":"2016-04-23T00:10:26Z","pushed_at":"2016-04-23T00:13:37Z","git_url":"git://github.com/Rapptz/discord.py.git","ssh_url":"git@github.com:Rapptz/discord.py.git","clone_url":"https://github.com/Rapptz/discord.py.git","svn_url":"https://github.com/Rapptz/discord.py","homepage":"http://rapptz.github.io/discord.py/","size":2329,"stargazers_count":280,"watchers_count":280,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":87,"mirror_url":null,"open_issues_count":21,"forks":87,"open_issues":21,"watchers":280,"default_branch":"async"}},"_links":{"self":{"href":"https://api.github.com/repos/Rapptz/discord.py/pulls/183"},"html":{"href":"https://github.com/Rapptz/discord.py/pull/183"},"issue":{"href":"https://api.github.com/repos/Rapptz/discord.py/issues/183"},"comments":{"href":"https://api.github.com/repos/Rapptz/discord.py/issues/183/comments"},"review_comments":{"href":"https://api.github.com/repos/Rapptz/discord.py/pulls/183/comments"},"review_comment":{"href":"https://api.github.com/repos/Rapptz/discord.py/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Rapptz/discord.py/pulls/183/commits"},"statuses":{"href":"https://api.github.com/repos/Rapptz/discord.py/statuses/bc3a47f3203172c47088beac5eb1fdb5398df990"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":61,"deletions":3,"changed_files":1}}