Add QuoteReply

This commit is contained in:
Him188 2020-02-08 16:03:20 +08:00
parent ce3ba66d34
commit 5c5670c66f
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,8 @@
package net.mamoe.mirai.message.data
/**
* 消息源, 用于被引用. 它将由协议模块实现为 `MessageSourceImpl`
*/
interface MessageSource : Message {
companion object : Message.Key<MessageSource>
}

View File

@ -0,0 +1,11 @@
package net.mamoe.mirai.message.data
/**
* 群内的引用回复. 它将由协议模块实现为 `QuoteReplyImpl`
*/
interface QuoteReply : Message {
val source: MessageSource
companion object Key : Message.Key<QuoteReply>
}