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
cdb188cd
Commit
cdb188cd
authored
May 06, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs
parent
07004311
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/MessageChain.kt
...nMain/kotlin/net.mamoe.mirai/message/data/MessageChain.kt
+5
-5
No files found.
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/MessageChain.kt
View file @
cdb188cd
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
@
file
:
JvmMultifileClass
@
file
:
JvmMultifileClass
@
file
:
JvmName
(
"MessageUtils"
)
@
file
:
JvmName
(
"MessageUtils"
)
@
file
:
Suppress
(
"unused"
,
"NOTHING_TO_INLINE"
)
@
file
:
Suppress
(
"unused"
,
"NOTHING_TO_INLINE"
,
"WRONG_MODIFIER_CONTAINING_DECLARATION"
,
"INAPPLICABLE_JVM_NAME"
)
@
file
:
OptIn
(
MiraiInternalAPI
::
class
)
@
file
:
OptIn
(
MiraiInternalAPI
::
class
)
package
net.mamoe.mirai.message.data
package
net.mamoe.mirai.message.data
...
@@ -17,6 +17,7 @@ package net.mamoe.mirai.message.data
...
@@ -17,6 +17,7 @@ package net.mamoe.mirai.message.data
import
net.mamoe.mirai.JavaFriendlyAPI
import
net.mamoe.mirai.JavaFriendlyAPI
import
net.mamoe.mirai.utils.MiraiExperimentalAPI
import
net.mamoe.mirai.utils.MiraiExperimentalAPI
import
net.mamoe.mirai.utils.MiraiInternalAPI
import
net.mamoe.mirai.utils.MiraiInternalAPI
import
net.mamoe.mirai.utils.PlannedRemoval
import
kotlin.js.JsName
import
kotlin.js.JsName
import
kotlin.jvm.JvmMultifileClass
import
kotlin.jvm.JvmMultifileClass
import
kotlin.jvm.JvmName
import
kotlin.jvm.JvmName
...
@@ -51,7 +52,6 @@ interface MessageChain : Message, Iterable<SingleMessage> {
...
@@ -51,7 +52,6 @@ interface MessageChain : Message, Iterable<SingleMessage> {
*
*
* @param key 由各个类型消息的伴生对象持有. 如 [PlainText.Key]
* @param key 由各个类型消息的伴生对象持有. 如 [PlainText.Key]
*/
*/
@Suppress
(
"WRONG_MODIFIER_CONTAINING_DECLARATION"
,
"INAPPLICABLE_JVM_NAME"
)
@JvmName
(
"first"
)
@JvmName
(
"first"
)
final
operator
fun
<
M
:
Message
>
get
(
key
:
Message
.
Key
<
M
>):
M
?
=
firstOrNull
(
key
)
final
operator
fun
<
M
:
Message
>
get
(
key
:
Message
.
Key
<
M
>):
M
?
=
firstOrNull
(
key
)
...
@@ -59,7 +59,7 @@ interface MessageChain : Message, Iterable<SingleMessage> {
...
@@ -59,7 +59,7 @@ interface MessageChain : Message, Iterable<SingleMessage> {
* 遍历每一个有内容的消息, 即 [At], [AtAll], [PlainText], [Image], [Face] 等
* 遍历每一个有内容的消息, 即 [At], [AtAll], [PlainText], [Image], [Face] 等
* 仅供 `Java` 使用
* 仅供 `Java` 使用
*/
*/
@Suppress
(
"
WRONG_MODIFIER_CONTAINING_DECLARATION"
,
"FunctionName"
,
"INAPPLICABLE_JVM_NAME
"
)
@Suppress
(
"
FunctionName
"
)
@JsName
(
"forEachContent"
)
@JsName
(
"forEachContent"
)
@JvmName
(
"forEachContent"
)
@JvmName
(
"forEachContent"
)
@JavaFriendlyAPI
@JavaFriendlyAPI
...
@@ -71,7 +71,7 @@ interface MessageChain : Message, Iterable<SingleMessage> {
...
@@ -71,7 +71,7 @@ interface MessageChain : Message, Iterable<SingleMessage> {
* 遍历每一个消息, 即 [MessageSource] [At], [AtAll], [PlainText], [Image], [QuoteReply] 等
* 遍历每一个消息, 即 [MessageSource] [At], [AtAll], [PlainText], [Image], [QuoteReply] 等
* 仅供 `Java` 使用
* 仅供 `Java` 使用
*/
*/
@Suppress
(
"
WRONG_MODIFIER_CONTAINING_DECLARATION"
,
"FunctionName"
,
"INAPPLICABLE_JVM_NAME
"
)
@Suppress
(
"
FunctionName
"
)
@JsName
(
"forEach"
)
@JsName
(
"forEach"
)
@JvmName
(
"forEach"
)
@JvmName
(
"forEach"
)
@JavaFriendlyAPI
@JavaFriendlyAPI
...
@@ -85,7 +85,7 @@ interface MessageChain : Message, Iterable<SingleMessage> {
...
@@ -85,7 +85,7 @@ interface MessageChain : Message, Iterable<SingleMessage> {
*
*
* @param key 由各个类型消息的伴生对象持有. 如 [PlainText.Key]
* @param key 由各个类型消息的伴生对象持有. 如 [PlainText.Key]
*/
*/
@
Suppress
(
"WRONG_MODIFIER_CONTAINING_DECLARATION"
,
"INAPPLICABLE_JVM_NAME
"
)
@
PlannedRemoval
(
"1.2.0
"
)
@JvmName
(
"firstOrNull"
)
@JvmName
(
"firstOrNull"
)
@Deprecated
(
"use get"
,
ReplaceWith
(
"get(key)"
))
@Deprecated
(
"use get"
,
ReplaceWith
(
"get(key)"
))
final
fun
<
M
:
Message
>
getOrNull
(
key
:
Message
.
Key
<
M
>):
M
?
=
get
(
key
)
final
fun
<
M
:
Message
>
getOrNull
(
key
:
Message
.
Key
<
M
>):
M
?
=
get
(
key
)
...
...
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