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
534ba00f
Commit
534ba00f
authored
May 25, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove (internal) low level API for responding events
parent
80ece093
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
59 deletions
+0
-59
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/lowLevelApi.kt
...core/src/commonMain/kotlin/net.mamoe.mirai/lowLevelApi.kt
+0
-59
No files found.
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/lowLevelApi.kt
View file @
534ba00f
...
...
@@ -13,9 +13,6 @@ import kotlinx.coroutines.Job
import
net.mamoe.mirai.contact.Friend
import
net.mamoe.mirai.contact.Group
import
net.mamoe.mirai.data.*
import
net.mamoe.mirai.event.events.BotInvitedJoinGroupRequestEvent
import
net.mamoe.mirai.event.events.MemberJoinRequestEvent
import
net.mamoe.mirai.event.events.NewFriendRequestEvent
import
net.mamoe.mirai.utils.MiraiExperimentalAPI
import
net.mamoe.mirai.utils.WeakRef
...
...
@@ -116,60 +113,4 @@ interface LowLevelBotAPIAccessor {
@LowLevelAPI
@MiraiExperimentalAPI
suspend
fun
_lowLevelGetGroupActiveData
(
groupId
:
Long
):
GroupActiveData
/**
* 构造一个账号请求添加机器人为好友的事件
*/
@LowLevelAPI
@MiraiExperimentalAPI
fun
_lowLevelGetNewFriendRequestEvent
(
eventId
:
Long
,
fromId
:
Long
,
groupId
:
Long
)
=
NewFriendRequestEvent
(
bot
=
this
as
Bot
,
eventId
=
eventId
,
message
=
""
,
fromId
=
fromId
,
fromGroupId
=
groupId
,
fromNick
=
""
)
/**
* 构造被邀请加入一个群请求事件
*/
@LowLevelAPI
@MiraiExperimentalAPI
fun
_lowLevelGetBotInvitedJoinGroupRequestEvent
(
eventId
:
Long
,
groupId
:
Long
,
invitorId
:
Long
)
=
BotInvitedJoinGroupRequestEvent
(
bot
=
this
as
Bot
,
eventId
=
eventId
,
invitorId
=
invitorId
,
groupId
=
groupId
,
groupName
=
""
,
invitorNick
=
""
)
/**
* 构造账号请求加入群事件
*/
@LowLevelAPI
@MiraiExperimentalAPI
fun
_lowLevelGetMemberJoinRequestEvent
(
eventId
:
Long
,
groupId
:
Long
,
fromId
:
Long
)
=
MemberJoinRequestEvent
(
bot
=
this
as
Bot
,
eventId
=
eventId
,
fromId
=
fromId
,
groupId
=
groupId
,
groupName
=
""
,
fromNick
=
""
,
message
=
""
)
}
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