From 9e89c6ca5c087f16f3cd646d921c93b19644f0f1 Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 13 Sep 2021 16:29:42 +0100 Subject: [PATCH] Fix change email / password routes. --- README.md | 2 +- package.json | 2 +- src/api/routes.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 74f18c4b..c80d8859 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ client.loginBot('..'); client.login({ email: '..', password: '..' }); // Or use an existing session: -client.useExistingSession({ user_id: '..', session_token: '..' }); +client.useExistingSession({ token: '..' }); ``` ## MobX diff --git a/package.json b/package.json index 60dc00c6..1ec7d715 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "revolt.js", - "version": "5.1.0-alpha.0-patch.0", + "version": "5.1.0-alpha.0-patch.1", "main": "dist/index.js", "repository": "https://gitlab.insrt.uk/revolt/revolt.js", "author": "Paul Makles ", diff --git a/src/api/routes.ts b/src/api/routes.ts index 34af1caf..3a069f09 100644 --- a/src/api/routes.ts +++ b/src/api/routes.ts @@ -79,7 +79,7 @@ type Routes = response: undefined } | { - method: 'POST', + method: 'PATCH', route: `/auth/account/change/password`, data: { password: string, @@ -88,7 +88,7 @@ type Routes = response: undefined } | { - method: 'POST', + method: 'PATCH', route: `/auth/account/change/email`, data: { email: string,