UNPKG

@kotori-bot/kotori-plugin-adapter-sandbox

Version:

Kotori modules test environment,a visual sandbox

55 lines (54 loc) 2.96 kB
import { Api, type Message, type UserInfoResponse, type GroupInfoResponse } from 'kotori-bot'; import type SandboxAdapter from './adapter'; export declare class SandboxApi extends Api { private factory; readonly adapter: SandboxAdapter; constructor(adapter: SandboxAdapter); getSupportedEvents(): ReturnType<Api['getSupportedEvents']>; sendPrivateMsg(message: Message, userId: string): Promise<import("kotori-bot").ObjectParserInfer<{ response: import("kotori-bot").LiteralParser<"send_message_response">; messageId: import("kotori-bot").StringParser; time: import("kotori-bot").NumberParser; }>>; sendGroupMsg(message: Message, groupId: string): Promise<import("kotori-bot").ObjectParserInfer<{ response: import("kotori-bot").LiteralParser<"send_message_response">; messageId: import("kotori-bot").StringParser; time: import("kotori-bot").NumberParser; }>>; deleteMsg(messageId: string): void; getSelfInfo(): Promise<import("kotori-bot").ObjectParserInfer<{ response: import("kotori-bot").LiteralParser<"self_info_response">; userId: import("kotori-bot").StringParser; username: import("kotori-bot").StringParser; userDisplayname: import("kotori-bot").StringParser; }>>; getUserInfo(userId: string): Promise<import("kotori-bot").ObjectParserInfer<{ response: import("kotori-bot").LiteralParser<"user_info_response">; userId: import("kotori-bot").StringParser; username: import("kotori-bot").StringParser; userDisplayname: import("kotori-bot").StringParser; userRemark: import("kotori-bot").StringParser; }>>; getFriendList(): Promise<UserInfoResponse[]>; getGroupInfo(groupId: string): Promise<import("kotori-bot").ObjectParserInfer<{ response: import("kotori-bot").LiteralParser<"group_info_response">; groupId: import("kotori-bot").StringParser; groupName: import("kotori-bot").StringParser; }>>; getGroupList(): Promise<GroupInfoResponse[]>; getGroupMemberInfo(groupId: string, userId: string): Promise<import("kotori-bot").ObjectParserInfer<{ response: import("kotori-bot").LiteralParser<"group_member_info_response">; userId: import("kotori-bot").StringParser; username: import("kotori-bot").StringParser; userDisplayname: import("kotori-bot").StringParser; }>>; getGroupMemberList(groupId: string): Promise<UserInfoResponse[]>; setGroupName(groupId: string, groupName: string): void; leaveGroup(groupId: string): void; setGroupAdmin(groupId: string, userId: string, enable: boolean): void; setGroupCard(groupId: string, userId: string, card: string): void; setGroupBan(groupId: string, userId: string, time: number): void; setGroupWholeBan(groupId: string, enable?: boolean): void; setGroupKick(groupId: string, userId: string): void; } export default SandboxApi;