{"action":"closed","issue":{"url":"https://api.github.com/repos/kvangent/PokeAlarm/issues/173","repository_url":"https://api.github.com/repos/kvangent/PokeAlarm","labels_url":"https://api.github.com/repos/kvangent/PokeAlarm/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/kvangent/PokeAlarm/issues/173/comments","events_url":"https://api.github.com/repos/kvangent/PokeAlarm/issues/173/events","html_url":"https://github.com/kvangent/PokeAlarm/issues/173","id":173652290,"number":173,"title":"[ENHANCEMENT] Slack - ability to send direct message to user","user":{"login":"JasonSchoon","id":11477874,"avatar_url":"https://avatars.githubusercontent.com/u/11477874?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonSchoon","html_url":"https://github.com/JasonSchoon","followers_url":"https://api.github.com/users/JasonSchoon/followers","following_url":"https://api.github.com/users/JasonSchoon/following{/other_user}","gists_url":"https://api.github.com/users/JasonSchoon/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonSchoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonSchoon/subscriptions","organizations_url":"https://api.github.com/users/JasonSchoon/orgs","repos_url":"https://api.github.com/users/JasonSchoon/repos","events_url":"https://api.github.com/users/JasonSchoon/events{/privacy}","received_events_url":"https://api.github.com/users/JasonSchoon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kvangent/PokeAlarm/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-28T15:33:04Z","updated_at":"2016-08-30T19:02:06Z","closed_at":"2016-08-30T19:02:06Z","body":"## Enhancement Description\r\nSupport posting to username channels on Slack\r\n\r\n## Use cases\r\nI would like to just send myself notifications (by sending to my username channel) on Slack. This should already be supported by the Slack API if the channel name given is by ID, and is the ID of the username channel.\r\n\r\nThe issue is likely due to the fact that these channels do not show up in the channels.List results.\r\n\r\nSpecifically, it would be cool if a channel name started with \"@\", to skip the current channels.List validation, and automatically do the lookup described below between users.list and im.list to get the appropriate channel ID automatically.\r\n\r\n## Other Links\r\nSlack postMessage documentation showing the support: https://api.slack.com/methods/chat.postMessage\r\n\r\nNote it's currently a little cumbersome to get the ID for a user channel. I used the users.List API tester (https://api.slack.com/methods/users.list/test) to get my user ID, and then used im.List tester (https://api.slack.com/methods/im.list/test) to get my user channel ID."}}
{"actor":{"display_login":"kvangent"}}