Package-level declarations
用于存放QQ频道中各API的响应数据模型。
数据模型与文档中定义的类型基本对应,以不可变数据类 (immutable data class) 的形式定义实现,并通过API模块下的各API响应结果对外提供。
Types
Link copied to clipboard
data class Announces @ApiModelConstructor constructor(val guildId: String, val channelId: String, val messageId: String, val announcesType: UInt, val recommendChannels: List<RecommendChannel> = emptyList())
Link copied to clipboard
data class ApiPermission @ApiModelConstructor constructor(val path: String, val method: String, val desc: String, val authStatus: Int)
Link copied to clipboard
data class ApiPermissionDemand @ApiModelConstructor constructor(val guildId: String, val channelId: String, val apiIdentify: ApiPermissionDemandIdentify, val title: String, val desc: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ChannelPermissions @ApiModelConstructor constructor(val channelId: String, val userId: String? = null, val roleId: String? = null, val permissions: Permissions)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object EmojiTypes
Link copied to clipboard
interface Guild
Link copied to clipboard
interface Member
Link copied to clipboard
Link copied to clipboard
data class Message @ApiModelConstructor constructor(val id: String, val channelId: String, val guildId: String, val content: String, val timestamp: String, val editedTimestamp: String? = null, val mentionEveryone: Boolean = false, val author: User, val attachments: List<Message.Attachment> = emptyList(), val embeds: List<Message.Embed> = emptyList(), val mentions: List<User> = emptyList(), val member: MessageMember? = null, val ark: Message.Ark? = null, val seqInChannel: String, val messageReference: Message.Reference? = null, val srcGuildId: String? = null)
Link copied to clipboard
data class MessageKeyboard @ApiModelConstructor constructor(val id: String? = null, val renderData: MessageKeyboard.RenderData? = null, val action: MessageKeyboard.Action? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
用于更便捷构建 MessageKeyboard 的构建器,Java 中可用链式 API,Kotlin 额外提供一些 DSL API。
Link copied to clipboard
Link copied to clipboard
data class MessageMedia @ApiModelConstructor constructor(val fileUuid: String, val fileInfo: String, val ttl: Int, val id: String? = null)
Link copied to clipboard
data class MessageMember @ApiModelConstructor constructor(val nick: String = "", val roles: List<String> = emptyList(), val joinedAt: String = ZERO_ISO_INSTANT) : Member
在 MessageMember 中使用的 Member 实现。 其中的 user 来自 Message.author
Link copied to clipboard
Link copied to clipboard
data class PinsMessage @ApiModelConstructor constructor(val guildId: String, val channelId: String, val messageIds: List<String> = emptyList())
Link copied to clipboard
Link copied to clipboard
data class RecommendChannel @ApiModelConstructor constructor(val channelId: String, val introduce: String)
Link copied to clipboard
data class Schedule @ApiModelConstructor constructor(val id: String, val name: String, val description: String, val startTimestamp: Long, val endTimestamp: Long, val creator: SimpleMember, val jumpChannelId: String, val remindType: String)
Link copied to clipboard
Link copied to clipboard
data class SimpleChannel @ApiModelConstructor constructor(val id: String, val guildId: String, val name: String, val type: ChannelType, val subType: ChannelSubType, val position: Int, val parentId: String, val ownerId: String, val privateType: PrivateType? = null, val speakPermission: SpeakPermission? = null, val applicationId: String? = null, val permissions: Permissions? = null) : Channel
Channel 的基础实现。
Link copied to clipboard
data class SimpleMember @ApiModelConstructor constructor(val user: User, val nick: String, val roles: List<String> = emptyList(), val joinedAt: String) : Member
Member 的简单基本实现。
Link copied to clipboard
data class SimpleMemberWithGuildId @ApiModelConstructor constructor(val guildId: String, val user: User, val nick: String, val roles: List<String> = emptyList(), val joinedAt: String = ZERO_ISO_INSTANT) : MemberWithGuildId
MemberWithGuildId 的简单基本实现。
Link copied to clipboard
Inherited properties
Functions
Link copied to clipboard
通过 DSL 构建 MessageKeyboard。