mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
feat: get_guild_service_profile api
This commit is contained in:
parent
6e03ef771c
commit
15b396251c
10
coolq/api.go
10
coolq/api.go
@ -50,6 +50,16 @@ func (bot *CQBot) CQGetQiDianAccountInfo() global.MSG {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CQGetGuildServiceProfile 获取频道系统个人资料
|
||||||
|
// @route(get_guild_service_profile)
|
||||||
|
func (bot *CQBot) CQGetGuildServiceProfile() global.MSG {
|
||||||
|
return OK(global.MSG{
|
||||||
|
"nickname": bot.Client.GuildService.Nickname,
|
||||||
|
"tiny_id": bot.Client.GuildService.TinyId,
|
||||||
|
"avatar_url": bot.Client.GuildService.AvatarUrl,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// CQGetFriendList 获取好友列表
|
// CQGetFriendList 获取好友列表
|
||||||
//
|
//
|
||||||
// https://git.io/Jtz1L
|
// https://git.io/Jtz1L
|
||||||
|
@ -123,6 +123,8 @@ func (c *Caller) call(action string, p Getter) global.MSG {
|
|||||||
return c.bot.CQGetGroupRootFiles(p0)
|
return c.bot.CQGetGroupRootFiles(p0)
|
||||||
case "get_group_system_msg":
|
case "get_group_system_msg":
|
||||||
return c.bot.CQGetGroupSystemMessages()
|
return c.bot.CQGetGroupSystemMessages()
|
||||||
|
case "get_guild_service_profile":
|
||||||
|
return c.bot.CQGetGuildServiceProfile()
|
||||||
case "get_image":
|
case "get_image":
|
||||||
p0 := p.Get("file").String()
|
p0 := p.Get("file").String()
|
||||||
return c.bot.CQGetImage(p0)
|
return c.bot.CQGetImage(p0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user