kbotify
Version:
kaiheila bot framework
22 lines (21 loc) • 962 B
TypeScript
import { AppCommand } from '../command/command.app';
import { Guild } from '../guild';
import { KBotify } from '../kbotify';
import { MenuCommand } from '../command';
import { ButtonEventMessage, TextMessage } from '../message';
import { GuildUser } from '../user/user.guild';
import { BaseSession } from './session.base';
export declare class GuildSession extends BaseSession {
user: GuildUser;
guild: Guild;
constructor(command: AppCommand | MenuCommand, args: string[], msg: TextMessage | ButtonEventMessage, client?: KBotify);
static fromSession: (session: BaseSession, full?: boolean) => Promise<GuildSession>;
/**
* 等待用户在当前频道发送的下一条消息。
*
* @param {RegExp} condition
* @param {(number | undefined)} [timeout=6e4] timeout time, in **ms**
* @memberof GuildSession
*/
awaitMessage: (condition: RegExp, timeout?: number | undefined) => Promise<TextMessage | undefined>;
}