Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
354321de
Commit
354321de
authored
Oct 25, 2019
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
3dfaa4ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/contact/Contact.kt
.../src/commonMain/kotlin/net.mamoe.mirai/contact/Contact.kt
+7
-1
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/Message.kt
.../src/commonMain/kotlin/net.mamoe.mirai/message/Message.kt
+0
-7
No files found.
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/contact/Contact.kt
View file @
354321de
...
@@ -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
)
...
...
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/Message.kt
View file @
354321de
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment