1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-06 11:10:24 +08:00

finish role

This commit is contained in:
源文雨
2023-10-11 00:16:44 +09:00
parent 50939b98aa
commit 4745fa990e
5 changed files with 187 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
// Code generated by codegen/putopenapiof. DO NOT EDIT.
package nano
import (
"io"
"unsafe"
"github.com/pkg/errors"
)
func (bot *Bot) putOpenAPIofGuildRoleChannelID(ep string, body io.Reader) (*GuildRoleChannelID, error) {
resp := &struct {
CodeMessageBase
GuildRoleChannelID
}{}
err := bot.PutOpenAPI(ep, resp, body)
if err != nil {
err = errors.Wrap(err, getCallerFuncName())
return nil, err
}
return (*GuildRoleChannelID)(unsafe.Add(unsafe.Pointer(resp), unsafe.Sizeof(CodeMessageBase{}))), nil
}