mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-19 17:13:31 -04:00
Wrong type on GET account route.
This commit is contained in:
+1
-1
@@ -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
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user