mirror of
https://github.com/fumiama/NanoBot.git
synced 2026-06-05 18:50:24 +08:00
22 lines
432 B
Go
22 lines
432 B
Go
// Code generated by codegen/putopenapiof. DO NOT EDIT.
|
|
|
|
package nano
|
|
|
|
import (
|
|
"io"
|
|
|
|
"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 &resp.GuildRoleChannelID, err
|
|
}
|