1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

api: temporary delete get_guild_members api

This commit is contained in:
Mrs4s 2021-12-08 17:26:13 +08:00
parent 44e0ff44fb
commit 7278f99ed9
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7
2 changed files with 2 additions and 3 deletions

View File

@ -128,6 +128,7 @@ func (bot *CQBot) CQGetGuildChannelList(guildID uint64, noCache bool) global.MSG
return OK(channels) return OK(channels)
} }
/*
// CQGetGuildMembers 获取频道成员列表 // CQGetGuildMembers 获取频道成员列表
// @route(get_guild_members) // @route(get_guild_members)
func (bot *CQBot) CQGetGuildMembers(guildID uint64) global.MSG { func (bot *CQBot) CQGetGuildMembers(guildID uint64) global.MSG {
@ -137,6 +138,7 @@ func (bot *CQBot) CQGetGuildMembers(guildID uint64) global.MSG {
} }
return OK(nil) // todo return OK(nil) // todo
} }
*/
// CQGetGuildRoles 获取频道角色列表 // CQGetGuildRoles 获取频道角色列表
// @route(get_guild_roles) // @route(get_guild_roles)

View File

@ -140,9 +140,6 @@ func (c *Caller) call(action string, p Getter) global.MSG {
return c.bot.CQGetGuildChannelList(p0, p1) return c.bot.CQGetGuildChannelList(p0, p1)
case "get_guild_list": case "get_guild_list":
return c.bot.CQGetGuildList() return c.bot.CQGetGuildList()
case "get_guild_members":
p0 := p.Get("guild_id").Uint()
return c.bot.CQGetGuildMembers(p0)
case "get_guild_meta_by_guest": case "get_guild_meta_by_guest":
p0 := p.Get("guild_id").Uint() p0 := p.Get("guild_id").Uint()
return c.bot.CQGetGuildMetaByGuest(p0) return c.bot.CQGetGuildMetaByGuest(p0)