mirai
2.16.0
common
mirai-core-api
/
net.mamoe.mirai.data
/
RequestEventData
Request
Event
Data
@
Serializable
sealed
class
RequestEventData
Inheritors
NewFriendRequest
BotInvitedJoinGroupRequest
MemberJoinRequest
Members
Types
Bot
Invited
Join
Group
Request
Link copied to clipboard
@
Serializable
class
BotInvitedJoinGroupRequest
@
MiraiExperimentalApi
constructor
(
val
eventId
:
Long
,
val
invitor
:
Long
,
val
invitorNick
:
String
,
val
groupId
:
Long
,
val
groupName
:
String
)
:
RequestEventData
Factory
Link copied to clipboard
object
Factory
Member
Join
Request
Link copied to clipboard
@
Serializable
class
MemberJoinRequest
@
MiraiExperimentalApi
constructor
(
val
eventId
:
Long
,
val
requester
:
Long
,
val
requesterNick
:
String
,
val
groupId
:
Long
,
val
groupName
:
String
,
val
invitor
:
Long
=
0
,
val
message
:
String
)
:
RequestEventData
New
Friend
Request
Link copied to clipboard
@
Serializable
class
NewFriendRequest
@
MiraiExperimentalApi
constructor
(
val
eventId
:
Long
,
val
requester
:
Long
,
val
requesterNick
:
String
,
val
fromGroupId
:
Long
,
val
message
:
String
)
:
RequestEventData
Functions
accept
Link copied to clipboard
abstract
suspend
fun
accept
(
bot
:
Bot
)
reject
Link copied to clipboard
abstract
suspend
fun
reject
(
bot
:
Bot
)
Properties
event
Id
Link copied to clipboard
abstract
val
eventId
:
Long