UNPKG

kbotify

Version:

kaiheila bot framework

38 lines (37 loc) 1.07 kB
import { KMarkdownMessage as Kmd, MessageType, TextMessage as Text, User, UserInGuild } from 'kaiheila-bot-root'; import { KBotify } from '../kbotify'; export declare class TextMessage { type: MessageType.kMarkdown | MessageType.text; author: User & UserInGuild; mention: { user: string[]; roles: string[]; all: boolean; here: boolean; channels: string[]; } | { user: string[]; roles: string[]; all: boolean; here: boolean; }; channelName?: string; content: string; code: string; msgId: string; msgTimestamp: number; channelId: string; guildId?: string; channelType: string; authorId: string; client: KBotify; /** * Transfer message info class * * @param rawMessage TextMessageInterface, from kaiheila-bot-root * @param client */ constructor(rawMessage: Kmd | Text, client: KBotify); delete(): Promise<boolean>; update(content: string, quote?: string, tempTargetId?: string): Promise<boolean>; }