trender-client
Version:
Official Trender client API
84 lines (83 loc) • 1.79 kB
TypeScript
export declare type error = {
message: string;
code: number;
};
export declare type attachments = {
height?: number;
width?: number;
id: string;
name: string;
size: number;
mimetype: string;
created_at: Date;
};
export declare type userInfo = {
user_id: string;
nickname: string;
username: string;
is_private: boolean;
avatar: string;
flags: number;
description: string;
certified: boolean;
banner: string;
accent_color: string;
allow_mp: boolean;
created_at: string;
link: string;
};
export declare type embeds = {
/**0 = text only | 1 = image (include gif) | 2 = video
* @default 0
*/
type?: 0 | 1 | 2 | 3;
icon_url?: string;
url?: string;
title?: string;
description?: string;
color?: string;
attachments?: string;
};
export declare type emptyResponse = {
error?: error;
};
export declare type successResponse = {
error?: error;
data?: {
message: string;
code: 200;
};
};
export declare type paginationParams = {
skip?: number | string;
limit?: number | string;
};
export declare type uploadFiles = {
error?: error;
data?: {
request_id: string;
/**0 = text only | 1 = image (include gif) | 2 = video | 3 = audio | 4 = others */
type: 0 | 1 | 2 | 3 | 4;
attachments: Array<attachments>;
};
};
export interface pollInterface {
poll_id: string;
time: {
days: number;
hours: number;
minutes: number;
};
options: Array<{
name: string;
option_id: string;
}>;
}
export interface givewayInterface {
follow: Array<string>;
sub: boolean;
like: boolean;
comment: boolean;
share: boolean;
paid: boolean;
}