{"action":"created","issue":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1764","repository_url":"https://api.github.com/repos/phoenixframework/phoenix","labels_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1764/labels{/name}","comments_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1764/comments","events_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1764/events","html_url":"https://github.com/phoenixframework/phoenix/pull/1764","id":161488062,"number":1764,"title":"Add an `includes?` method to Presence to check presences by key","user":{"login":"ProGM","id":5167659,"avatar_url":"https://avatars.githubusercontent.com/u/5167659?v=3","gravatar_id":"","url":"https://api.github.com/users/ProGM","html_url":"https://github.com/ProGM","followers_url":"https://api.github.com/users/ProGM/followers","following_url":"https://api.github.com/users/ProGM/following{/other_user}","gists_url":"https://api.github.com/users/ProGM/gists{/gist_id}","starred_url":"https://api.github.com/users/ProGM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProGM/subscriptions","organizations_url":"https://api.github.com/users/ProGM/orgs","repos_url":"https://api.github.com/users/ProGM/repos","events_url":"https://api.github.com/users/ProGM/events{/privacy}","received_events_url":"https://api.github.com/users/ProGM/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-06-21T16:54:38Z","updated_at":"2016-08-25T17:05:29Z","closed_at":"2016-06-21T16:59:45Z","pull_request":{"url":"https://api.github.com/repos/phoenixframework/phoenix/pulls/1764","html_url":"https://github.com/phoenixframework/phoenix/pull/1764","diff_url":"https://github.com/phoenixframework/phoenix/pull/1764.diff","patch_url":"https://github.com/phoenixframework/phoenix/pull/1764.patch"},"body":"I searched around if there was a method like this, but I couldn't find it.\r\n\r\nAn example usage:\r\nI have a chat and I want to check if a certain user is online in the channel. If it isn't, for instance, send him an email.\r\n\r\nCurrently, I had to do something like:\r\n\r\n```elixir\r\nPresence.list(\"topic\").has_key?(user_id)\r\n```\r\n\r\nWith this method:\r\n\r\n```elixir\r\nPresence.includes?(\"topic\", user_id)\r\n```\r\n\r\nMaybe it could be renamed to `exists?` or `any?`.\r\n"},"comment":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/comments/242465715","html_url":"https://github.com/phoenixframework/phoenix/pull/1764#issuecomment-242465715","issue_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1764","id":242465715,"user":{"login":"ProGM","id":5167659,"avatar_url":"https://avatars.githubusercontent.com/u/5167659?v=3","gravatar_id":"","url":"https://api.github.com/users/ProGM","html_url":"https://github.com/ProGM","followers_url":"https://api.github.com/users/ProGM/followers","following_url":"https://api.github.com/users/ProGM/following{/other_user}","gists_url":"https://api.github.com/users/ProGM/gists{/gist_id}","starred_url":"https://api.github.com/users/ProGM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProGM/subscriptions","organizations_url":"https://api.github.com/users/ProGM/orgs","repos_url":"https://api.github.com/users/ProGM/repos","events_url":"https://api.github.com/users/ProGM/events{/privacy}","received_events_url":"https://api.github.com/users/ProGM/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T17:05:29Z","updated_at":"2016-08-25T17:05:29Z","body":"Great, thanks!"}}
{"actor":{"display_login":"ProGM"}}