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

add: postopenapiof codegen

This commit is contained in:
源文雨
2023-10-10 14:34:36 +09:00
parent 3dbb8d7b34
commit f04743c7a5
5 changed files with 134 additions and 1 deletions

View File

@@ -34,3 +34,17 @@ func (bot *Bot) GetChannelsOfGuild(id string) (*ChannelArray, error) {
func (bot *Bot) GetChannelByID(id string) (*Channel, error) {
return bot.getOpenAPIofChannel("/channels/" + id)
}
// ChannelPost 子频道 post 操作所用对象
type ChannelPost struct {
Name string `json:"name"`
Type int `json:"type"`
SubType int `json:"sub_type"`
Position int `json:"position"`
ParentID string `json:"parent_id"`
OwnerID string `json:"owner_id,omitempty"`
PrivateType int `json:"private_type"`
PrivateUserIds []string `json:"private_user_ids,omitempty"`
SpeakPermission int `json:"speak_permission,omitempty"`
ApplicationID string `json:"application_id,omitempty"`
}