Commit 354321de authored by Him188's avatar Him188

cleanup

parent 3dfaa4ee
...@@ -33,9 +33,12 @@ sealed class Contact(val bot: Bot, val id: UInt) { ...@@ -33,9 +33,12 @@ sealed class Contact(val bot: Bot, val id: UInt) {
/** /**
* 一般的用户可见的 ID. * 一般的用户可见的 ID.
* 在 TIM/QQ 客户端中所看到的的号码均是这个 ID * 在 TIM/QQ 客户端中所看到的的号码均是这个 ID.
*
* 注: 在引用群 ID 时, 应使用 [GroupId] 或 [GroupInternalId] 类型, 而不是 [UInt]
* *
* @see GroupInternalId.toId 由 [GroupInternalId] 转换为 [GroupId] * @see GroupInternalId.toId 由 [GroupInternalId] 转换为 [GroupId]
* @see GroupId.toInternalId 由 [GroupId] 转换为 [GroupInternalId]
*/ */
inline class GroupId(val value: UInt) inline class GroupId(val value: UInt)
...@@ -44,7 +47,10 @@ fun UInt.groupId(): GroupId = GroupId(this) ...@@ -44,7 +47,10 @@ fun UInt.groupId(): GroupId = GroupId(this)
/** /**
* 一些群 API 使用的 ID. 在使用时会特别注明 * 一些群 API 使用的 ID. 在使用时会特别注明
* *
* 注: 在引用群 ID 时, 应使用 [GroupId] 或 [GroupInternalId] 类型, 而不是 [UInt]
*
* @see GroupInternalId.toId 由 [GroupInternalId] 转换为 [GroupId] * @see GroupInternalId.toId 由 [GroupInternalId] 转换为 [GroupId]
* @see GroupId.toInternalId 由 [GroupId] 转换为 [GroupInternalId]
*/ */
inline class GroupInternalId(val value: UInt) inline class GroupInternalId(val value: UInt)
......
...@@ -279,13 +279,6 @@ internal inline class MessageChainImpl constructor( ...@@ -279,13 +279,6 @@ internal inline class MessageChainImpl constructor(
} }
// endregion // endregion
override operator fun plusAssign(message: Message) {
this.concat(message)
}
override operator fun plusAssign(plain: String) {
this.concat(plain.toMessage())
}
// region MutableList override // region MutableList override
override fun containsAll(elements: Collection<Message>): Boolean = delegate.containsAll(elements) override fun containsAll(elements: Collection<Message>): Boolean = delegate.containsAll(elements)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment