{"action":"created","issue":{"url":"https://api.github.com/repos/hydrabolt/discord.js/issues/750","repository_url":"https://api.github.com/repos/hydrabolt/discord.js","labels_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/750/labels{/name}","comments_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/750/comments","events_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/750/events","html_url":"https://github.com/hydrabolt/discord.js/issues/750","id":179592008,"number":750,"title":"login returns Bad Request","user":{"login":"ErmanSayin","id":5402062,"avatar_url":"https://avatars.githubusercontent.com/u/5402062?v=3","gravatar_id":"","url":"https://api.github.com/users/ErmanSayin","html_url":"https://github.com/ErmanSayin","followers_url":"https://api.github.com/users/ErmanSayin/followers","following_url":"https://api.github.com/users/ErmanSayin/following{/other_user}","gists_url":"https://api.github.com/users/ErmanSayin/gists{/gist_id}","starred_url":"https://api.github.com/users/ErmanSayin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErmanSayin/subscriptions","organizations_url":"https://api.github.com/users/ErmanSayin/orgs","repos_url":"https://api.github.com/users/ErmanSayin/repos","events_url":"https://api.github.com/users/ErmanSayin/events{/privacy}","received_events_url":"https://api.github.com/users/ErmanSayin/received_events","type":"User","site_admin":false},"labels":[{"id":246168567,"url":"https://api.github.com/repos/hydrabolt/discord.js/labels/invalid","name":"invalid","color":"f7c6c7","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-27T19:37:49Z","updated_at":"2016-12-17T11:10:28Z","closed_at":"2016-09-27T19:45:18Z","body":"Hello, I wanted to create a selfbot, but I get this error when I attempt to log in using email and password:\n\n```\n(node:4400) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Bad Request\n```\n\nThe code is basically:\n\n```\nvar Discord = require(\"discord.js\");\nvar api = new Discord.Client();\napi.login('<email>', '<password>');\n```\n"},"comment":{"url":"https://api.github.com/repos/hydrabolt/discord.js/issues/comments/267757033","html_url":"https://github.com/hydrabolt/discord.js/issues/750#issuecomment-267757033","issue_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/750","id":267757033,"user":{"login":"ErmanSayin","id":5402062,"avatar_url":"https://avatars.githubusercontent.com/u/5402062?v=3","gravatar_id":"","url":"https://api.github.com/users/ErmanSayin","html_url":"https://github.com/ErmanSayin","followers_url":"https://api.github.com/users/ErmanSayin/followers","following_url":"https://api.github.com/users/ErmanSayin/following{/other_user}","gists_url":"https://api.github.com/users/ErmanSayin/gists{/gist_id}","starred_url":"https://api.github.com/users/ErmanSayin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErmanSayin/subscriptions","organizations_url":"https://api.github.com/users/ErmanSayin/orgs","repos_url":"https://api.github.com/users/ErmanSayin/repos","events_url":"https://api.github.com/users/ErmanSayin/events{/privacy}","received_events_url":"https://api.github.com/users/ErmanSayin/received_events","type":"User","site_admin":false},"created_at":"2016-12-17T11:10:28Z","updated_at":"2016-12-17T11:10:28Z","body":"@CornerOfTheOval I used tokens instead of username/password, because using tokens bypasses the location detector. You can get the token of an user account by logging in through the web client, then putting `javascript:prompt(\"\", localStorage.token)` into the address bar"}}
{"actor":{"display_login":"ErmanSayin"}}