mirai
2.13.4
common
mirai-core-api
/
net.mamoe.mirai.event.events
/
MemberLeaveEvent
/
Kick
Kick
common
data
class
Kick
(
val
member
:
NormalMember
,
val
operator
:
NormalMember
?
)
:
MemberLeaveEvent
,
Packet
,
GroupOperableEvent
Content copied to clipboard
成员被踢出群. 成员不可能是机器人自己.
Constructors
Functions
Properties
Constructors
Kick
Link copied to clipboard
common
fun
Kick
(
member
:
NormalMember
,
operator
:
NormalMember
?
)
Content copied to clipboard
Functions
cancel
Link copied to clipboard
common
fun
cancel
(
)
Content copied to clipboard
intercept
Link copied to clipboard
common
abstract
fun
intercept
(
)
Content copied to clipboard
拦截这个事件
to
String
Link copied to clipboard
common
open
override
fun
toString
(
)
:
String
Content copied to clipboard
Properties
_intercepted
Link copied to clipboard
common
@
MiraiInternalApi
@
JvmField
@
Volatile
var
_intercepted
:
Boolean
=
false
Content copied to clipboard
bot
Link copied to clipboard
common
open
override
val
bot
:
Bot
Content copied to clipboard
broad
Cast
Lock
Link copied to clipboard
common
@
MiraiInternalApi
@
JvmField
val
broadCastLock
:
Mutex
Content copied to clipboard
限制一个事件实例不能并行广播. (适用于 object 广播的情况)
group
Link copied to clipboard
common
open
override
val
group
:
Group
Content copied to clipboard
group
Id
Link copied to clipboard
common
open
override
val
groupId
:
Long
Content copied to clipboard
is
Cancelled
Link copied to clipboard
common
val
isCancelled
:
Boolean
Content copied to clipboard
is
Intercepted
Link copied to clipboard
common
abstract
val
isIntercepted
:
Boolean
Content copied to clipboard
事件是否已被拦截.
member
Link copied to clipboard
common
open
override
val
member
:
NormalMember
Content copied to clipboard
operator
Link copied to clipboard
common
open
override
val
operator
:
NormalMember
?
Content copied to clipboard
操作人. 为 null 则是机器人操作.
user
Link copied to clipboard
common
open
override
val
user
:
Member
Content copied to clipboard