koishi-plugin-adapter-iirose
Version:
[IIROSE-蔷薇花园](https://iirose.com/)适配器
42 lines (41 loc) • 939 B
TypeScript
import { IIROSE_Bot } from '../../bot/bot';
export interface replyMessage {
message: string;
username: string;
time: number;
}
interface data {
type?: string;
timestamp: number;
avatar: string;
username: string;
message?: string;
color: string;
uid: string;
title?: string;
messageId?: number;
replyMessage?: replyMessage[] | null;
payload?: any;
}
export declare class ManyMessage {
timestamp: number;
avatar: string;
username: string;
message: string;
color: string;
uid: string;
title: string;
messageId: number;
replyMessage: replyMessage[] | null;
type: string | null;
payload: any;
constructor(data: data);
}
/**
* 解析包含多条消息的包
* @param input 消息
* @param bot bot实例
* @returns {ManyMessage[] | null}
*/
export declare const manyMessage: (input: string, bot: IIROSE_Bot) => ManyMessage[];
export {};