Skip to content

Commit

Permalink
feat(cqhttp): support bot.setGroupPortrait()
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Oct 6, 2020
1 parent 2775284 commit f0658b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/adapter-cqhttp/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ declare module 'koishi-core/dist/server' {
setRestart(cleanLog?: boolean, cleanCache?: boolean, cleanEvent?: boolean): Promise<void>
setGroupName(groupId: number, name: string): Promise<void>
setGroupNameAsync(groupId: number, name: string): Promise<void>
setGroupPortrait(groupId: number, file: string, cache?: boolean): Promise<void>
setGroupPortraitAsync(groupId: number, file: string, cache?: boolean): Promise<void>
getGroupMsg(messageId: number): Promise<GroupMessage>
getForwardMsg(messageId: number): Promise<ForwardMessage>
sendGroupForwardMsg(groupId: number, messages: readonly CQNode[]): Promise<void>
Expand Down Expand Up @@ -412,7 +414,8 @@ interface CQNode {
}
}

defineAsync('set_group_name', 'group_id', 'name')
defineAsync('set_group_name', 'group_id', 'group_name')
defineAsync('set_group_portrait', 'group_id', 'file', 'cache')

export function toVersion(data: VersionInfo) {
const { coolqEdition, pluginVersion, goCqhttp, version } = data
Expand Down

0 comments on commit f0658b4

Please sign in to comment.