1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

feat: get_guild_service_profile api

This commit is contained in:
Mrs4s 2021-11-07 16:13:48 +08:00
parent 6e03ef771c
commit 15b396251c
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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)