From 06c69ad6cc869b641c7373ed8a9d2c42321439cb Mon Sep 17 00:00:00 2001 From: ryoii Date: Sat, 22 Feb 2020 18:53:42 +0800 Subject: [PATCH] Http api rename `MessageSourceDTO.uid` to `MessageSourceDTO.id` --- mirai-api-http/README_CH.md | 4 ++-- .../kotlin/net/mamoe/mirai/api/http/data/common/MessageDTO.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mirai-api-http/README_CH.md b/mirai-api-http/README_CH.md index a102a1b90..274d7cd84 100644 --- a/mirai-api-http/README_CH.md +++ b/mirai-api-http/README_CH.md @@ -430,13 +430,13 @@ Content-Type:multipart/form-data ```json5 { "type": "Source", - "uid": 123456 + "id": 123456 } ``` | 名字 | 类型 | 说明 | | ---- | ---- | ------------------------------------------------------------ | -| uid | Long | 消息的识别号,用于引用回复(Source类型只在群消息中返回,且永远为chain的第一个元素) | +| id | Long | 消息的识别号,用于引用回复(Source类型只在群消息中返回,且永远为chain的第一个元素) | #### At diff --git a/mirai-api-http/src/main/kotlin/net/mamoe/mirai/api/http/data/common/MessageDTO.kt b/mirai-api-http/src/main/kotlin/net/mamoe/mirai/api/http/data/common/MessageDTO.kt index d87d7c999..a4a30d82f 100644 --- a/mirai-api-http/src/main/kotlin/net/mamoe/mirai/api/http/data/common/MessageDTO.kt +++ b/mirai-api-http/src/main/kotlin/net/mamoe/mirai/api/http/data/common/MessageDTO.kt @@ -36,7 +36,7 @@ data class GroupMessagePacketDTO(val sender: MemberDTO) : MessagePacketDTO() // Message @Serializable @SerialName("Source") -data class MessageSourceDTO(val uid: Long) : MessageDTO() +data class MessageSourceDTO(val id: Long) : MessageDTO() @Serializable @SerialName("At")