Package-level declarations

用于存放QQ频道中各API的响应数据模型

数据模型与文档中定义的类型基本对应,以不可变数据类 (immutable data class) 的形式定义实现,并通过API模块下的各API响应结果对外提供。

Types

Link copied to clipboard
data class Announces(val guildId: String, val channelId: String, val messageId: String, val announcesType: UInt, val recommendChannels: List<RecommendChannel> = emptyList())
Link copied to clipboard
data class ApiPermission(val path: String, val method: String, val desc: String, val authStatus: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ChannelPermissions(val channelId: String, val userId: String? = null, val roleId: String? = null, val permissions: Permissions)
Link copied to clipboard
Link copied to clipboard
data class DirectMessageSession(val guildId: String, val channelId: String, val createTime: String)
Link copied to clipboard
data class Emoji(val id: String, val type: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class Message(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 MessageAudited(val auditId: String, val messageId: String? = null, val guildId: String, val channelId: String, val auditTime: String, val createTime: String, val seqInChannel: String)
Link copied to clipboard
data class MessageKeyboard(val id: String? = null, val renderData: MessageKeyboard.RenderData? = null, val action: MessageKeyboard.Action? = null)
Link copied to clipboard
data class MessageMedia(val fileUuid: String, val fileInfo: String, val ttl: Int, val id: String? = null)
Link copied to clipboard
data class MessageMember(val nick: String = "", val roles: List<String> = emptyList(), val joinedAt: String = ZERO_ISO_INSTANT) : Member

MessageMember 中使用的 Member 实现。 其中的 user 来自 Message.author

Link copied to clipboard
data class MessageSetting(val disableCreateDm: String, val disablePushMsg: String, val channelIds: List<String>, val channelPushMaxNum: Int)
Link copied to clipboard
Link copied to clipboard
data class PinsMessage(val guildId: String, val channelId: String, val messageIds: List<String> = emptyList())
Link copied to clipboard
Link copied to clipboard
data class Role(val id: String, val name: String, val color: Int, val hoist: Int, val number: Int, val memberLimit: Int)
Link copied to clipboard
data class Schedule(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(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 SimpleGuild(val id: String, val name: String, val icon: String, val ownerId: String, val isOwner: Boolean, val memberCount: Int, val maxMembers: Int, val description: String, val joinedAt: String) : Guild

Guild 的基础实现。

Link copied to clipboard
data class SimpleMember(val user: User, val nick: String, val roles: List<String> = emptyList(), val joinedAt: String) : Member

Member 的简单基本实现。

Link copied to clipboard
data class SimpleMemberWithGuildId(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
data class User(val id: String, val username: String, val avatar: String = "", val isBot: Boolean = false, val unionOpenid: String? = null, val unionUserAccount: String? = null)

Inherited properties

Link copied to clipboard
Link copied to clipboard

Inherited functions