{"action":"created","issue":{"url":"https://api.github.com/repos/nlopes/slack/issues/155","repository_url":"https://api.github.com/repos/nlopes/slack","labels_url":"https://api.github.com/repos/nlopes/slack/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/nlopes/slack/issues/155/comments","events_url":"https://api.github.com/repos/nlopes/slack/issues/155/events","html_url":"https://github.com/nlopes/slack/pull/155","id":222058014,"number":155,"title":"add support for setting and unsetting Custom Status/Emoji","user":{"login":"theckman","id":787332,"avatar_url":"https://avatars3.githubusercontent.com/u/787332?v=3","gravatar_id":"","url":"https://api.github.com/users/theckman","html_url":"https://github.com/theckman","followers_url":"https://api.github.com/users/theckman/followers","following_url":"https://api.github.com/users/theckman/following{/other_user}","gists_url":"https://api.github.com/users/theckman/gists{/gist_id}","starred_url":"https://api.github.com/users/theckman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theckman/subscriptions","organizations_url":"https://api.github.com/users/theckman/orgs","repos_url":"https://api.github.com/users/theckman/repos","events_url":"https://api.github.com/users/theckman/events{/privacy}","received_events_url":"https://api.github.com/users/theckman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-17T03:28:40Z","updated_at":"2017-04-17T14:02:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nlopes/slack/pulls/155","html_url":"https://github.com/nlopes/slack/pull/155","diff_url":"https://github.com/nlopes/slack/pull/155.diff","patch_url":"https://github.com/nlopes/slack/pull/155.patch"},"body":"This change introduces two new methods on *Client for setting and unsetting the\r\nCustom Status and Status Emoji for the currently authenticated User. This also\r\nadds `StatusText` and `StatusEmoji` fields to the `UserProfile` struct. The\r\nCustom Status and Status Emoji functionality was recently added as part of the\r\nUser's profile[1].\r\n\r\nThe first method added is `SetUserCustomStatus()` which takes two string\r\narguments. This method uses an anonymous struct to generate the JSON required to\r\nupdate a User's Custom Status and Status Emoji. If both arguments are set to\r\nempty-string (`\"\"`) the Slack API will unset the Custom Status/Emoji.\r\n\r\nThe second method is `UnsetUserCustomStatus()`, which is a convenience method\r\nthat takes zero arguments and wraps `SetUserCustomStatus()`. It unsets the\r\ncustom status.\r\n\r\nIntegration tests were added to ensure that that setting and unsetting the\r\nCustom Status should work as-expected.\r\n\r\nCloses #153.\r\n\r\n[1] https://slackhq.com/set-your-status-in-slack-28a793914b98\r\n\r\nSigned-off-by: Tim Heckman <t@heckman.io>"},"comment":{"url":"https://api.github.com/repos/nlopes/slack/issues/comments/294491169","html_url":"https://github.com/nlopes/slack/pull/155#issuecomment-294491169","issue_url":"https://api.github.com/repos/nlopes/slack/issues/155","id":294491169,"user":{"login":"dlsniper","id":607868,"avatar_url":"https://avatars1.githubusercontent.com/u/607868?v=3","gravatar_id":"","url":"https://api.github.com/users/dlsniper","html_url":"https://github.com/dlsniper","followers_url":"https://api.github.com/users/dlsniper/followers","following_url":"https://api.github.com/users/dlsniper/following{/other_user}","gists_url":"https://api.github.com/users/dlsniper/gists{/gist_id}","starred_url":"https://api.github.com/users/dlsniper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlsniper/subscriptions","organizations_url":"https://api.github.com/users/dlsniper/orgs","repos_url":"https://api.github.com/users/dlsniper/repos","events_url":"https://api.github.com/users/dlsniper/events{/privacy}","received_events_url":"https://api.github.com/users/dlsniper/received_events","type":"User","site_admin":false},"created_at":"2017-04-17T14:02:36Z","updated_at":"2017-04-17T14:02:36Z","body":"Thank you!"}}
{"actor":{"display_login":"dlsniper"}}