koishi-plugin-adapter-iirose
Version:
[IIROSE-蔷薇花园](https://iirose.com/)适配器
28 lines (27 loc) • 536 B
TypeScript
/**
* 单条动态的结构
*/
export interface Moment {
name: string;
avatar: string;
unknownFlag: string;
content: string;
image?: string;
timestamp1: string;
timestamp2: string;
color: string;
uid: string;
}
/**
* 用户动态的整体结构
*/
export interface UserMoments {
background: string;
moments: Moment[];
}
/**
* 解析用户动态
* @param message 消息
* @returns {UserMoments | null}
*/
export declare const parseUserMoments: (message: string) => UserMoments | null;