{"action":"created","issue":{"url":"https://api.github.com/repos/Rapptz/discord.py/issues/29","labels_url":"https://api.github.com/repos/Rapptz/discord.py/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/Rapptz/discord.py/issues/29/comments","events_url":"https://api.github.com/repos/Rapptz/discord.py/issues/29/events","html_url":"https://github.com/Rapptz/discord.py/issues/29","id":113156019,"number":29,"title":"ValueError on GUILD_MEMBER_REMOVE","user":{"login":"Hornwitser","id":14362102,"avatar_url":"https://avatars.githubusercontent.com/u/14362102?v=3","gravatar_id":"","url":"https://api.github.com/users/Hornwitser","html_url":"https://github.com/Hornwitser","followers_url":"https://api.github.com/users/Hornwitser/followers","following_url":"https://api.github.com/users/Hornwitser/following{/other_user}","gists_url":"https://api.github.com/users/Hornwitser/gists{/gist_id}","starred_url":"https://api.github.com/users/Hornwitser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hornwitser/subscriptions","organizations_url":"https://api.github.com/users/Hornwitser/orgs","repos_url":"https://api.github.com/users/Hornwitser/repos","events_url":"https://api.github.com/users/Hornwitser/events{/privacy}","received_events_url":"https://api.github.com/users/Hornwitser/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Rapptz/discord.py/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Rapptz/discord.py/milestones/2","html_url":"https://github.com/Rapptz/discord.py/milestones/v0.9.0","labels_url":"https://api.github.com/repos/Rapptz/discord.py/milestones/2/labels","id":1367325,"number":2,"title":"v0.9.0","description":"The other major version of discord.py","creator":{"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},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2015-10-20T22:50:29Z","updated_at":"2015-10-24T17:53:09Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-10-24T12:03:46Z","updated_at":"2015-10-28T02:02:59Z","closed_at":null,"body":"It's possible to receive a GUILD_MEMBER_REMOVE for a member that has not been present in the guilds.members array in the READY event and for which no GUILD_MEMBER_ADD has been received for.  Resulting in `ValueError` being raised with the following traceback.\r\n\r\n    Traceback (most recent call last):\r\n      File \"bot.py\", line 345, in <module>\r\n        bot.run()\r\n      File \"/home/julian/prog/record/logger/discord/client.py\", line 560, in run\r\n        self.ws.run()\r\n      File \"/usr/lib/python3.5/site-packages/ws4py/websocket.py\", line 427, in run\r\n        if not self.once():\r\n      File \"/usr/lib/python3.5/site-packages/ws4py/websocket.py\", line 305, in once\r\n        if not self.process(b):\r\n      File \"/usr/lib/python3.5/site-packages/ws4py/websocket.py\", line 377, in process\r\n        self.received_message(s.message)\r\n      File \"/home/julian/prog/record/logger/discord/client.py\", line 133, in received_message\r\n        self.dispatch('socket_update', event, data)\r\n      File \"/home/julian/prog/record/logger/discord/client.py\", line 537, in dispatch\r\n        getattr(self, handle_method, _null_event)(*args, **kwargs)\r\n      File \"/home/julian/prog/record/logger/discord/client.py\", line 545, in handle_socket_update\r\n        getattr(self.connection, method)(data)\r\n      File \"/home/julian/prog/record/logger/discord/client.py\", line 311, in handle_guild_member_remove\r\n        server.members.remove(member)\r\n    ValueError: list.remove(x): x not in list\r\n\r\nThis was encountered on commit 5efddaf of the develop branch.\r\n\r\n[WebSocket context](http://hornwitser.no/discord/query?query=SELECT+*+FROM+message+WHERE+raw+LIKE+%27%2597778769732849664%25%27+AND+id+%3C+503679+ORDER+BY+id+DESC+LIMIT+20)"},"comment":{"url":"https://api.github.com/repos/Rapptz/discord.py/issues/comments/151696946","html_url":"https://github.com/Rapptz/discord.py/issues/29#issuecomment-151696946","issue_url":"https://api.github.com/repos/Rapptz/discord.py/issues/29","id":151696946,"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},"created_at":"2015-10-28T02:02:59Z","updated_at":"2015-10-28T02:02:59Z","body":"Should be fixed in 60dfd044395e7cf65a1d44c795eb43258cde83bf"}}