diff --git a/package.json b/package.json index b9489e00..60dc00c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "revolt.js", - "version": "5.1.0-alpha.0", + "version": "5.1.0-alpha.0-patch.0", "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 7e58b040..34af1caf 100644 --- a/src/api/routes.ts +++ b/src/api/routes.ts @@ -5,7 +5,7 @@ import type { RetrievedInvite, ServerInvite } from 'revolt-api/types/Invites' import type { Profile, Relationship, RelationshipOnly, Status, User } from 'revolt-api/types/Users'; import type { Ban, Category, Member, PermissionTuple, Server, SystemMessageChannels } from 'revolt-api/types/Servers'; import type { Channel, DirectMessageChannel, GroupChannel, Message, TextChannel, VoiceChannel } from 'revolt-api/types/Channels'; -import { SessionInfo } from 'revolt-api/types/Auth'; +import { Account, SessionInfo } from 'revolt-api/types/Auth'; export type RemoveUserField = 'ProfileContent' | 'ProfileBackground' | 'StatusText' | 'Avatar'; export type RemoveChannelField = 'Icon' | 'Description'; @@ -32,10 +32,7 @@ type Routes = method: 'GET', route: `/auth/account`, data: undefined, - response: { - _id: string, - user_id: string - } + response: Account, } | { method: 'POST',