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
b2f07d71
Commit
b2f07d71
authored
Feb 29, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `@Deprecated` annotation onto `senderId`
parent
067a9496
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/MessageSource.kt
...Main/kotlin/net.mamoe.mirai/message/data/MessageSource.kt
+5
-4
No files found.
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/MessageSource.kt
View file @
b2f07d71
...
@@ -45,20 +45,21 @@ interface MessageSource : Message, MessageMetadata {
...
@@ -45,20 +45,21 @@ interface MessageSource : Message, MessageMetadata {
suspend
fun
ensureSequenceIdAvailable
()
suspend
fun
ensureSequenceIdAvailable
()
/**
/**
* 发送时间, 单位为秒
* 发送时间, 单位为秒
. 撤回好友消息时可能需要
*/
*/
val
time
:
Long
val
time
:
Long
/**
/**
* 与这个消息相关的 [QQ] 的 [QQ.id]
* 与这个消息相关的 [QQ] 的 [QQ.id]
*
*
* 群消息时为发送人的 id
. 好友消息时为消息发送目标好友的 id
* 群消息时为发送人的 id
(可能为 bot 自己). 好友消息时为消息发送目标好友的 id (不可能为 bot 自己)
*/
*/
val
qqId
:
Long
val
qqId
:
Long
@Suppress
(
"unused"
)
// TODO: 2020/2/29 0.25: 删除 `MessageSource.senderId`
@Suppress
(
"unused"
)
@Deprecated
(
"使用 qqId. 此 API 将在
0.25 删除"
,
level
=
DeprecationLevel
.
HIDDEN
,
replaceWith
=
ReplaceWith
(
"this.qqId"
))
@Deprecated
(
"使用 qqId. 此 API 将在
不久后删除"
,
level
=
DeprecationLevel
.
ERROR
,
replaceWith
=
ReplaceWith
(
"this.qqId"
))
val
senderId
:
Long
val
senderId
:
Long
get
()
=
qqId
/**
/**
* 群号码, 为 0 时则来自好友消息
* 群号码, 为 0 时则来自好友消息
...
...
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