import { MessageType } from ".." ; import * as Message from "../message" ; /**
 * 转化为标准的 MessageChain
 */ export function toMessageChain ( messageChain ) { if ( typeof messageChain === "string" ) { messageChain = [ Message . Plain ( messageChain ) ] ; } else if ( ! Array . isArray ( messageChain ) ) { messageChain = [ messageChain ] ; } return messageChain ; }