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,