1
0
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:
源文雨
2023-10-14 01:09:46 +09:00
parent 8461538905
commit 215cc6ac82
5 changed files with 142 additions and 0 deletions

View File

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