mirror of
https://github.com/fumiama/NanoBot.git
synced 2026-06-07 11:40:23 +08:00
finish all main openapi
This commit is contained in:
@@ -50,6 +50,7 @@ func (bot *Bot) SetUserMuteInGuild(guildid, userid string, endtimestamp string,
|
||||
// https://bot.q.qq.com/wiki/develop/api/openapi/guild/patch_guild_mute.html
|
||||
func (bot *Bot) SetUsersMuteInGuild(guildid string, endtimestamp string, seconds string, userids ...string) ([]string, error) {
|
||||
resp := &struct {
|
||||
CodeMessageBase
|
||||
U []string `json:"user_ids"`
|
||||
}{}
|
||||
err := bot.PatchOpenAPI("/guilds/"+guildid+"/mute", "", resp, WriteBodyFromJSON(&struct {
|
||||
|
||||
Reference in New Issue
Block a user