mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-10 12:10:10 +08:00
Add QuoteReply
This commit is contained in:
parent
ce3ba66d34
commit
5c5670c66f
@ -0,0 +1,8 @@
|
||||
package net.mamoe.mirai.message.data
|
||||
|
||||
/**
|
||||
* 消息源, 用于被引用. 它将由协议模块实现为 `MessageSourceImpl`
|
||||
*/
|
||||
interface MessageSource : Message {
|
||||
companion object : Message.Key<MessageSource>
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package net.mamoe.mirai.message.data
|
||||
|
||||
|
||||
/**
|
||||
* 群内的引用回复. 它将由协议模块实现为 `QuoteReplyImpl`
|
||||
*/
|
||||
interface QuoteReply : Message {
|
||||
val source: MessageSource
|
||||
|
||||
companion object Key : Message.Key<QuoteReply>
|
||||
}
|
Loading…
Reference in New Issue
Block a user