{"action":"created","issue":{"url":"https://api.github.com/repos/meew0/discordrb/issues/227","repository_url":"https://api.github.com/repos/meew0/discordrb","labels_url":"https://api.github.com/repos/meew0/discordrb/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/meew0/discordrb/issues/227/comments","events_url":"https://api.github.com/repos/meew0/discordrb/issues/227/events","html_url":"https://github.com/meew0/discordrb/issues/227","id":177676040,"number":227,"title":"creating DM channels responds with 400","user":{"login":"greenbigfrog","id":6208894,"avatar_url":"https://avatars.githubusercontent.com/u/6208894?v=3","gravatar_id":"","url":"https://api.github.com/users/greenbigfrog","html_url":"https://github.com/greenbigfrog","followers_url":"https://api.github.com/users/greenbigfrog/followers","following_url":"https://api.github.com/users/greenbigfrog/following{/other_user}","gists_url":"https://api.github.com/users/greenbigfrog/gists{/gist_id}","starred_url":"https://api.github.com/users/greenbigfrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenbigfrog/subscriptions","organizations_url":"https://api.github.com/users/greenbigfrog/orgs","repos_url":"https://api.github.com/users/greenbigfrog/repos","events_url":"https://api.github.com/users/greenbigfrog/events{/privacy}","received_events_url":"https://api.github.com/users/greenbigfrog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-18T20:48:56Z","updated_at":"2016-09-19T00:36:33Z","closed_at":null,"body":"On latest master:\r\n```\r\n[5] pry(main)> Discordrb::API::User.create_private(bot.token, 170220684675383297)\r\nRestClient::BadRequest: 400 Bad Request\r\nfrom /home/frog/.rvm/gems/ruby-2.3.0/gems/rest-client-2.0.0/lib/restclient/abstract_response.rb:223:in `exception_with_response'\r\n[6] pry(main)> bot.user(170220684675383297).pm\r\n=> <Channel name=Talha2506 id=183566388122615809 topic=\"\" type=text position= server=>\r\n```\r\n\r\nOn gateway-v6 PR:\r\n```\r\n[12] pry(main)> bot.user(170220684675383297).pm\r\n=> <Channel name=Talha2506 id=183566388122615809 topic=\"\" type=1 position= server=>\r\n[13] pry(main)> Discordrb::API::User.create_pm(bot.token, 170220684675383297)\r\nRestClient::BadRequest: 400 Bad Request\r\nfrom /home/frog/.rvm/gems/ruby-2.3.0/gems/rest-client-2.0.0/lib/restclient/abstract_response.rb:223:in `exception_with_response'\r\n```\r\n\r\nDoing a postman request works perfectly. (I've been encountering this randomly accross users (but only starting a month ago or so), users that have been using my bot for \"years\" and users that just found my bot)"},"comment":{"url":"https://api.github.com/repos/meew0/discordrb/issues/comments/247894352","html_url":"https://github.com/meew0/discordrb/issues/227#issuecomment-247894352","issue_url":"https://api.github.com/repos/meew0/discordrb/issues/227","id":247894352,"user":{"login":"heimidal","id":1901,"avatar_url":"https://avatars.githubusercontent.com/u/1901?v=3","gravatar_id":"","url":"https://api.github.com/users/heimidal","html_url":"https://github.com/heimidal","followers_url":"https://api.github.com/users/heimidal/followers","following_url":"https://api.github.com/users/heimidal/following{/other_user}","gists_url":"https://api.github.com/users/heimidal/gists{/gist_id}","starred_url":"https://api.github.com/users/heimidal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heimidal/subscriptions","organizations_url":"https://api.github.com/users/heimidal/orgs","repos_url":"https://api.github.com/users/heimidal/repos","events_url":"https://api.github.com/users/heimidal/events{/privacy}","received_events_url":"https://api.github.com/users/heimidal/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T00:36:33Z","updated_at":"2016-09-19T00:36:33Z","body":"I believe I've fixed this in https://github.com/meew0/discordrb/pull/228"}}
{"actor":{"display_login":"heimidal"}}