Wrong type on GET account route.

This commit is contained in:
Paul
2021-09-11 17:17:25 +01:00
parent 9459c78cdf
commit 1172fedbff
2 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -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 <insrt.uk>",
+2 -5
View File
@@ -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',