Message

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)(source)

消息对象(Message)

消息对象的完整定义。

Constructors

Link copied to clipboard
constructor(id: String, channelId: String, guildId: String, content: String, timestamp: String, editedTimestamp: String? = null, mentionEveryone: Boolean = false, author: User, attachments: List<Message.Attachment> = emptyList(), embeds: List<Message.Embed> = emptyList(), mentions: List<User> = emptyList(), member: MessageMember? = null, ark: Message.Ark? = null, seqInChannel: String, messageReference: Message.Reference? = null, srcGuildId: String? = null)

Types

Link copied to clipboard
class Ark(val templateId: String, val kv: List<Message.Ark.Kv> = emptyList())
Link copied to clipboard
Link copied to clipboard
class Embed(val title: String, val prompt: String, val thumbnail: Message.Embed.Thumbnail? = null, val fields: List<Message.Embed.Field> = emptyList())
Link copied to clipboard
class Markdown(val templateId: Int? = null, val customTemplateId: String? = null, val params: List<Message.Markdown.Param>? = null, val content: String? = null)
Link copied to clipboard
class Reference(val messageId: String, val ignoreGetMessageError: Boolean = false)

Properties

Link copied to clipboard

Ark 消息对象。

Link copied to clipboard
Link copied to clipboard

消息创建者。

Link copied to clipboard
@SerialName(value = "channel_id")
val channelId: String

子频道 ID。

Link copied to clipboard

消息内容。

Link copied to clipboard
@SerialName(value = "edited_timestamp")
val editedTimestamp: String?

消息编辑时间。

Link copied to clipboard

Embed 对象数组。

Link copied to clipboard
@SerialName(value = "guild_id")
val guildId: String

频道 ID。

Link copied to clipboard
val id: String

消息 ID。

Link copied to clipboard

消息创建者的成员信息。

Link copied to clipboard
@SerialName(value = "mention_everyone")
val mentionEveryone: Boolean

是否是 @ 全员消息。

Link copied to clipboard

消息中 @ 的用户。

Link copied to clipboard
@SerialName(value = "message_reference")
val messageReference: Message.Reference?

引用消息对象。

Link copied to clipboard
@SerialName(value = "seq_in_channel")
val seqInChannel: String

子频道消息序号。

Link copied to clipboard
@SerialName(value = "src_guild_id")
val srcGuildId: String?

私信场景下真实的来源频道 ID。

Link copied to clipboard

消息创建时间。

Functions

Link copied to clipboard
operator fun component1(): String
Link copied to clipboard
operator fun component10(): List<Message.Embed>
Link copied to clipboard
operator fun component11(): List<User>
Link copied to clipboard
operator fun component12(): MessageMember?
Link copied to clipboard
operator fun component13(): Message.Ark?
Link copied to clipboard
operator fun component14(): String
Link copied to clipboard
Link copied to clipboard
operator fun component16(): String?
Link copied to clipboard
operator fun component2(): String
Link copied to clipboard
operator fun component3(): String
Link copied to clipboard
operator fun component4(): String
Link copied to clipboard
operator fun component5(): String
Link copied to clipboard
operator fun component6(): String?
Link copied to clipboard
operator fun component7(): Boolean
Link copied to clipboard
operator fun component8(): User
Link copied to clipboard
Link copied to clipboard
fun copy(id: String = this.id, channelId: String = this.channelId, guildId: String = this.guildId, content: String = this.content, timestamp: String = this.timestamp, editedTimestamp: String? = this.editedTimestamp, mentionEveryone: Boolean = this.mentionEveryone, author: User = this.author, attachments: List<Message.Attachment> = this.attachments, embeds: List<Message.Embed> = this.embeds, mentions: List<User> = this.mentions, member: MessageMember? = this.member, ark: Message.Ark? = this.ark, seqInChannel: String = this.seqInChannel, messageReference: Message.Reference? = this.messageReference, srcGuildId: String? = this.srcGuildId): Message
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String