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)
消息对象的完整定义。
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
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
Properties
Link copied to clipboard
Ark 消息对象。
Link copied to clipboard
附件。
Link copied to clipboard
子频道 ID。
Link copied to clipboard
消息编辑时间。
Link copied to clipboard
Embed 对象数组。
Link copied to clipboard
频道 ID。
Link copied to clipboard
消息创建者的成员信息。
Link copied to clipboard
是否是 @ 全员消息。
Link copied to clipboard
引用消息对象。
Link copied to clipboard
子频道消息序号。
Link copied to clipboard
私信场景下真实的来源频道 ID。
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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