aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/http.py')
-rw-r--r--discord/http.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/discord/http.py b/discord/http.py
index cb0a666e..e4d48690 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -244,23 +244,6 @@ class HTTPClient:
# login management
@asyncio.coroutine
- def email_login(self, email, password):
- payload = {
- 'email': email,
- 'password': password
- }
-
- try:
- data = yield from self.request(Route('POST', '/auth/login'), json=payload)
- except HTTPException as e:
- if e.response.status == 400:
- raise LoginFailure('Improper credentials have been passed.') from e
- raise
-
- self._token(data['token'], bot=False)
- return data
-
- @asyncio.coroutine
def static_login(self, token, *, bot):
old_token, old_bot = self.token, self.bot_token
self._token(token, bot=bot)