Update docs

This commit is contained in:
Him188 2021-01-08 09:12:36 +08:00
parent cae9775c52
commit b4f60582fd
2 changed files with 6 additions and 4 deletions

View File

@ -22,8 +22,10 @@ import net.mamoe.mirai.utils.BotConfiguration.MiraiProtocol
*
* 仅在手机 QQ 8.4.0 左右版本才受支持. 其他客户端会忽略这些消息.
*
* @see User.nudge 创建 [Nudge] 对象
* @see Bot.nudge 创建 [Nudge] 对象
* 示例要机器人戳一个群员并发送到群里使用 `member.nudge().sendTo(group)`.
* 要机器人戳一个好友并发送给该好友使用 `friend.nudge().sendTo(friend)`.
*
* @see UserOrBot.nudge 创建 [Nudge] 对象
*/
public sealed class Nudge {
/**
@ -32,7 +34,7 @@ public sealed class Nudge {
public abstract val target: UserOrBot
/**
* 发送戳一戳该成员的消息.
* 发送戳一戳该成员的消息[receiver].
*
* 需要 [使用协议][BotConfiguration.protocol] [MiraiProtocol.ANDROID_PHONE].
*

View File

@ -115,7 +115,7 @@ public open class BotConfiguration { // open for Java
* @see fileBasedDeviceInfo 使用指定文件存储设备信息
* @see randomDeviceInfo 使用随机设备信息
*/
public var deviceInfo: ((Bot) -> DeviceInfo)? = deviceInfoStub
public var deviceInfo: ((Bot) -> DeviceInfo)? = deviceInfoStub // allows user to set `null` manually.
/**
* Json 序列化器, 使用 'kotlinx.serialization'