mirai
2.16.0
common
mirai-core-api
/
net.mamoe.mirai.event.events
/
StrangerMessagePreSendEvent
Stranger
Message
Pre
Send
Event
data
class
StrangerMessagePreSendEvent
@
MiraiInternalApi
constructor
(
val
target
:
Stranger
,
var
message
:
Message
)
:
UserMessagePreSendEvent
在发送陌生人消息前广播的事件.
See also
Message
Pre
Send
Event
Members
Constructors
Stranger
Message
Pre
Send
Event
Link copied to clipboard
@
MiraiInternalApi
constructor
(
target
:
Stranger
,
message
:
Message
)
Functions
cancel
Link copied to clipboard
fun
cancel
(
)
intercept
Link copied to clipboard
abstract
fun
intercept
(
)
拦截这个事件
Properties
_intercepted
Link copied to clipboard
@
MiraiInternalApi
@
JvmField
@
Volatile
var
_intercepted
:
Boolean
bot
Link copied to clipboard
override
val
bot
:
Bot
broad
Cast
Lock
Link copied to clipboard
@
MiraiInternalApi
@
JvmField
val
broadCastLock
:
Mutex
限制一个事件实例不能并行广播. (适用于 object 广播的情况)
is
Cancelled
Link copied to clipboard
val
isCancelled
:
Boolean
is
Intercepted
Link copied to clipboard
abstract
val
isIntercepted
:
Boolean
事件是否已被拦截.
message
Link copied to clipboard
open
override
var
message
:
Message
待发送的消息. 修改后将会同时应用于发送.
target
Link copied to clipboard
open
override
val
target
:
Stranger
发信目标.