mirai
2.11.1
common
mirai-core-api
/
net.mamoe.mirai.event.events
/
UserMessagePreSendEvent
User
Message
Pre
Send
Event
common
sealed
class
UserMessagePreSendEvent
:
MessagePreSendEvent
Content copied to clipboard
在发送好友或群临时会话消息前广播的事件.
Functions
Properties
See also
Inheritors
See also
common
net.
mamoe.
mirai.
event.
events.
Message
Pre
Send
Event
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
拦截这个事件
Properties
bot
Link copied to clipboard
common
override
val
bot
:
Bot
Content copied to clipboard
isCancelled
Link copied to clipboard
common
val
isCancelled
:
Boolean
Content copied to clipboard
isIntercepted
Link copied to clipboard
common
abstract
val
isIntercepted
:
Boolean
Content copied to clipboard
事件是否已被拦截.
message
Link copied to clipboard
common
abstract
var
message
:
Message
Content copied to clipboard
待发送的消息. 修改后将会同时应用于发送.
target
Link copied to clipboard
common
abstract
override
val
target
:
User
Content copied to clipboard
发信目标.
Inheritors
FriendMessagePreSendEvent
Link copied to clipboard
TempMessagePreSendEvent
Link copied to clipboard
StrangerMessagePreSendEvent
Link copied to clipboard