Update docs and references

This commit is contained in:
Him188 2020-02-24 11:54:53 +08:00
parent 227a0a5e1e
commit 583c99392d
2 changed files with 6 additions and 3 deletions

View File

@ -48,7 +48,7 @@ open class MessageReceipt<C : Contact>(
/**
* 撤回这条消息. [recall] [recallIn] 只能被调用一次.
*
* @see Group.recall
* @see Bot.recall
* @throws IllegalStateException 当此消息已经被撤回或正计划撤回时
*/
@UseExperimental(MiraiExperimentalAPI::class)

View File

@ -12,15 +12,18 @@
package net.mamoe.mirai.message.data
import net.mamoe.mirai.Bot
import kotlin.jvm.JvmMultifileClass
import kotlin.jvm.JvmName
/**
* 消息源, 用于被引用. 它将由协议模块实现.
* 消息源只用于 [QuoteReply]
* 消息源, 它存在于 [MessageChain] , 用于表示这个消息的来源.
*
* 消息源只用于 [引用回复][QuoteReply] [撤回][Bot.recall].
*
* `mirai-core-qqandroid`: `net.mamoe.mirai.qqandroid.message.MessageSourceFromMsg`
*
* @see Bot.recall 撤回一条消息
* @see MessageSource.quote 引用这条消息, 创建 [MessageChain]
*/
interface MessageSource : Message, MessageMetadata {