mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-19 17:13:35 -04:00
d70bdd4932
Include member count in invites.
43 lines
760 B
TypeScript
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
|
|
}
|