channel

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	Id       string      `json:"id"`                  // 频道 ID
	Type     ChannelType `json:"type"`                // 频道类型
	Name     string      `json:"name,omitempty"`      // 频道名称
	ParentId string      `json:"parent_id,omitempty"` // 父频道 ID
}

频道

type ChannelList

type ChannelList struct {
	Data []Channel `json:"data"`           // 数据
	Next string    `json:"next,omitempty"` // 下一页的令牌
}

Channel 分页列表

type ChannelType

type ChannelType uint8 // 频道类型
const (
	ChannelTypeText     ChannelType = iota // 文本频道
	ChannelTypeDirect                      // 私聊频道
	ChannelTypeCategory                    // 分类频道
	ChannelTypeVoice                       // 语音频道
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL