Files
javascript-client-api/types/Invites.ts
T
Paul d70bdd4932 Add mark server as read route.
Include member count in invites.
2021-08-07 11:17:44 +01:00

43 lines
760 B
TypeScript

import type { Attachment } from "./Autumn";
import type { Id } from "./_common";
export type ServerInvite = {
type: 'Server'
/**
* Invite Code
*/
_id: Id
/**
* ID of the server this invite is for.
*/
server: Id
/**
* ID of the user who created this invite.
*/
creator: Id
/**
* ID of the channel this invite is for.
*/
channel: Id
}
export type Invite = ServerInvite;
export type RetrievedInvite = {
type: 'Server'
server_id: Id
server_name: string
server_icon?: Attachment
server_banner?: Attachment
channel_id: Id
channel_name: string
channel_description?: string
user_name: string
user_avatar?: Attachment,
member_count: number
}