{"action":"closed","issue":{"url":"https://api.github.com/repos/jimmycuadra/lita/issues/123","labels_url":"https://api.github.com/repos/jimmycuadra/lita/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/jimmycuadra/lita/issues/123/comments","events_url":"https://api.github.com/repos/jimmycuadra/lita/issues/123/events","html_url":"https://github.com/jimmycuadra/lita/issues/123","id":89275591,"number":123,"title":"Check whether response is private?","user":{"login":"nickjer","id":4260509,"avatar_url":"https://avatars.githubusercontent.com/u/4260509?v=3","gravatar_id":"","url":"https://api.github.com/users/nickjer","html_url":"https://github.com/nickjer","followers_url":"https://api.github.com/users/nickjer/followers","following_url":"https://api.github.com/users/nickjer/following{/other_user}","gists_url":"https://api.github.com/users/nickjer/gists{/gist_id}","starred_url":"https://api.github.com/users/nickjer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickjer/subscriptions","organizations_url":"https://api.github.com/users/nickjer/orgs","repos_url":"https://api.github.com/users/nickjer/repos","events_url":"https://api.github.com/users/nickjer/events{/privacy}","received_events_url":"https://api.github.com/users/nickjer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jimmycuadra/lita/labels/component/robot","name":"component/robot","color":"bfd4f2"},{"url":"https://api.github.com/repos/jimmycuadra/lita/labels/effort/easy","name":"effort/easy","color":"bfe5bf"},{"url":"https://api.github.com/repos/jimmycuadra/lita/labels/status/accepted","name":"status/accepted","color":"fef2c0"},{"url":"https://api.github.com/repos/jimmycuadra/lita/labels/type/question","name":"type/question","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-18T12:07:19Z","updated_at":"2015-06-29T09:49:43Z","closed_at":"2015-06-29T09:49:43Z","body":"This is more of a question to gauge your opinion before I do anything rash, like another pull request. I know right now I can do...\r\n\r\n```\r\n# is this a private direct message?\r\nresponse.message.source.private_message?\r\n```\r\n\r\nto test if it is a private message sent directly to the bot. But maybe we could trickle this upstream closer to the `response` as well...\r\n\r\n```\r\n# is this a private direct message?\r\nresponse.private_message?\r\n```\r\n\r\nPros or cons?\r\n\r\nPro: developers who deal with separate private and public messages won't need to know about the intricacies of the `Response` object\r\n\r\nCon: can't think of one right off the top of my head, I don't know this code well enough to judge if this is a terrible idea"}}