onebots
Version:
基于icqq的多例oneBot实现
52 lines (51 loc) • 3.5 kB
TypeScript
import { V12 } from "../../../service/V12";
import { Dict } from "@zhinjs/shared";
export declare class GuildAction {
getGuildSelfInfo(this: V12): Promise<any>;
getChannelPermissionOfRole(this: V12, channel_id: string, role_id: string): Promise<any>;
setChannelAnnounce(this: V12, guild_id: string, channel_id: string, message_id: string): Promise<any>;
updateChannelPermissionOfRole(this: V12, channel_id: string, role_id: string, permission: Dict): Promise<any>;
getChannelMemberPermission(this: V12, channel_id: string, member_id: string): Promise<any>;
updateChannelMemberPermission(this: V12, channel_id: string, member_id: string, permission: Dict): Promise<any>;
getChannelPins(this: V12, channel_id: string): Promise<string[]>;
pinChannelMessage(this: V12, channel_id: string, message_id: string): Promise<any>;
unPinChannelMessage(this: V12, channel_id: string, message_id: string): Promise<any>;
createChannel(this: V12, guild_id: string, channelInfo: Dict): Promise<any>;
updateChannel(this: V12, { channel_id, ...updateInfo }: {
channel_id: string;
} & Dict): Promise<any>;
deleteChannel(this: V12, channel_id: string): Promise<any>;
getGuildRoles(this: V12, guild_id: string): Promise<any>;
creatGuildRole(this: V12, guild_id: string, role: Dict): Promise<any>;
updateGuildRole(this: V12, guild_id: string, { id, ...role }: {
[x: string]: any;
id: any;
}): Promise<any>;
deleteGuildRole(this: V12, role_id: string): Promise<any>;
getGuildAccessApis(this: V12, guild_id: string): Promise<any>;
applyGuildAccess(this: V12, guild_id: string, channel_id: string, apiInfo: Dict, desc?: string): Promise<any>;
unMuteGuild(this: V12, guild_id: string): Promise<any>;
muteGuild(this: V12, guild_id: string, seconds: number, end_time?: number): Promise<any>;
unMuteGuildMembers(this: V12, guild_id: string, member_ids: string[]): Promise<any>;
muteGuildMembers(this: V12, guild_id: string, member_ids: string[], seconds: number, end_time?: number): Promise<any>;
addGuildMemberRoles(this: V12, guild_id: string, channel_id: string, member_id: string, role_id: string): Promise<any>;
removeGuildMemberRoles(this: V12, guild_id: string, channel_id: string, member_id: string, role_id: string): Promise<any>;
kickGuildMember(this: V12, guild_id: string, member_id: string, clean?: -1 | 0 | 3 | 7 | 15 | 30, blacklist?: boolean): Promise<any>;
unMuteGuildMember(this: V12, guild_id: string, member_id: string): Promise<any>;
muteGuildMember(this: V12, guild_id: string, member_id: string, seconds: number, end_time?: number): Promise<any>;
getGuildList(this: V12): Promise<any>;
getGuildInfo(this: V12, guild_id: string): Promise<any>;
getChannelList(this: V12, guild_id: string): Promise<any>;
getChannelInfo(this: V12, channel_id: string): Promise<any>;
getGuildMemberList(this: V12, guild_id: string): Promise<any>;
/**
* 发送频道消息
* @param guild_id {string} 频道id
* @param channel_id {string} 通道id
* @param message {V12.Sendable} 消息
* @param source
*/
sendGuildMsg(this: V12, guild_id: string, channel_id: string, message: V12.Sendable, source?: string): Promise<V12.MessageRet>;
createDirectSession(this: V12, guild_id: string, user_id: string): Promise<any>;
sendDirectMsg(this: V12, guild_id: string, message: V12.Sendable, source?: string): Promise<V12.MessageRet>;
}