Package-level declarations

Types

Link copied to clipboard
object Alignments

段落对齐方式常量

Link copied to clipboard
data class AtGuildInfo(val guildId: String, val guildName: String)

@频道信息

Link copied to clipboard
data class AtInfo(val type: Int, val userInfo: String, val roleInfo: String, val guildInfo: String)

富文本 - @内容

Link copied to clipboard
data class AtRoleInfo(val roleId: String, val name: String, val color: Int)

@身份组信息

Link copied to clipboard
object AtTypes

@类型的常量

Link copied to clipboard
data class AtUserInfo(val id: String, val nick: String)

@用户信息

Link copied to clipboard
data class AuditResult(val guildId: String, val channelId: String, val authorId: String, val threadId: String, val postId: String, val replyId: String, val type: Int, val result: Int, val errMsg: String) : ForumSourceInfo

论坛帖子审核结果事件

Link copied to clipboard
object AuditTypes

部分审核类型的常量。

Link copied to clipboard
data class ChannelInfo(val channelId: String, val channelName: String)

富文本 - 子频道信息

Link copied to clipboard
data class Elem(val text: TextElem, val image: ImageElem, val video: VideoElem, val url: URLElem, val type: Int)

富文本 - 元素列表结构

Link copied to clipboard
object ElemTypes

富文本元素类型

Link copied to clipboard
data class EmojiInfo(val id: String, val type: String, val name: String, val url: String)

富文本 - Emoji信息

Link copied to clipboard
interface ForumSourceInfo

Forum 有关的基础源信息接口。

Link copied to clipboard
data class ImageElem(val thirdUrl: String, val widthPercent: Double)

富文本 - 图片属性

Link copied to clipboard
data class Paragraph(val elems: Elem, val props: ParagraphProps)

富文本 - 段落结构

Link copied to clipboard
data class ParagraphProps(val alignment: Int)

富文本 - 段落属性

Link copied to clipboard
data class PlatImage(val url: String, val width: Int, val height: Int, val imageId: String)

富文本 - 平台图片属性

Link copied to clipboard
data class PlatVideo(val url: String, val width: Int, val height: Int, val videoId: String, val duration: Int, val cover: PlatImage)

富文本 - 平台视频属性

Link copied to clipboard
data class Post(val guildId: String, val channelId: String, val authorId: String, val postInfo: PostInfo) : ForumSourceInfo

话题频道内对主题的评论称为帖子

Link copied to clipboard
data class PostInfo(val threadId: String, val postId: String, val content: String, val dateTime: String)

帖子事件包含的帖子内容信息

Link copied to clipboard
data class Reply(val guildId: String, val channelId: String, val authorId: String, val replyInfo: ReplyInfo) : ForumSourceInfo

话题频道对帖子回复或删除时生产该事件中包含该对象

Link copied to clipboard
data class ReplyInfo(val threadId: String, val postId: String, val replyId: String, val content: String, val dateTime: String)

回复事件包含的回复内容信息

Link copied to clipboard
data class RichObject(val type: Int, val textInfo: TextInfo, val atInfo: String, val urlInfo: String, val emojiInfo: String, val channelInfo: String)

富文本内容

Link copied to clipboard
data class RichText(val paragraphs: List<Paragraph>)

富文本内容

Link copied to clipboard
object RichTypes

富文本类型的部分常量

Link copied to clipboard
data class TextElem(val text: String, val props: TextProps)

富文本 - 文本属性

Link copied to clipboard
data class TextInfo(val text: String)

富文本 - 普通文本

Link copied to clipboard
data class TextProps(val fontBold: Boolean, val italic: Boolean, val underline: Boolean)

富文本 - 文本段落属性

Link copied to clipboard
data class Thread(val guildId: String, val channelId: String, val authorId: String, val threadInfo: ThreadInfo) : ForumSourceInfo

话题频道内发表的主帖称为主题

Link copied to clipboard
data class ThreadInfo(val threadId: String, val title: String, val content: String, val dateTime: String)

帖子事件包含的主帖内容相关信息

Link copied to clipboard
data class URLElem(val url: String, val desc: String)

富文本 - URL属性

Link copied to clipboard
data class URLInfo(val url: String, val displayText: String)

富文本 - 链接信息

Link copied to clipboard
data class VideoElem(val thirdUrl: String)

富文本 - 视频属性