From 7278f99ed9118fe2e54aca752e62574d5bae3f00 Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Wed, 8 Dec 2021 17:26:13 +0800 Subject: [PATCH] api: temporary delete get_guild_members api --- coolq/api.go | 2 ++ modules/api/api.go | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/coolq/api.go b/coolq/api.go index 372d52f..f63c4e8 100644 --- a/coolq/api.go +++ b/coolq/api.go @@ -128,6 +128,7 @@ func (bot *CQBot) CQGetGuildChannelList(guildID uint64, noCache bool) global.MSG return OK(channels) } +/* // CQGetGuildMembers 获取频道成员列表 // @route(get_guild_members) func (bot *CQBot) CQGetGuildMembers(guildID uint64) global.MSG { @@ -137,6 +138,7 @@ func (bot *CQBot) CQGetGuildMembers(guildID uint64) global.MSG { } return OK(nil) // todo } +*/ // CQGetGuildRoles 获取频道角色列表 // @route(get_guild_roles) diff --git a/modules/api/api.go b/modules/api/api.go index 41b9281..b0a047b 100644 --- a/modules/api/api.go +++ b/modules/api/api.go @@ -140,9 +140,6 @@ func (c *Caller) call(action string, p Getter) global.MSG { return c.bot.CQGetGuildChannelList(p0, p1) case "get_guild_list": 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": p0 := p.Get("guild_id").Uint() return c.bot.CQGetGuildMetaByGuest(p0)