mirai
2.16.0
common
mirai-core-api
/
net.mamoe.mirai.event.events
/
SignEvent
Sign
Event
class
SignEvent
@
MiraiInternalApi
constructor
(
val
user
:
UserOrBot
,
val
sign
:
String
,
val
hasRank
:
Boolean
,
val
rank
:
Int
?
)
:
AbstractEvent
,
BotEvent
,
Packet
打卡事件
Since
2.14
Members
Constructors
Sign
Event
Link copied to clipboard
@
MiraiInternalApi
constructor
(
user
:
UserOrBot
,
sign
:
String
,
hasRank
:
Boolean
,
rank
:
Int
?
)
Functions
cancel
Link copied to clipboard
fun
cancel
(
)
intercept
Link copied to clipboard
open
override
fun
intercept
(
)
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
Properties
_intercepted
Link copied to clipboard
@
MiraiInternalApi
@
JvmField
@
Volatile
var
_intercepted
:
Boolean
bot
Link copied to clipboard
open
override
val
bot
:
Bot
broad
Cast
Lock
Link copied to clipboard
@
MiraiInternalApi
@
JvmField
val
broadCastLock
:
Mutex
限制一个事件实例不能并行广播. (适用于 object 广播的情况)
has
Rank
Link copied to clipboard
@get:
JvmName
(
name
=
"hasRank"
)
val
hasRank
:
Boolean
有排名的打卡,通常是前三名
is
Cancelled
Link copied to clipboard
val
isCancelled
:
Boolean
is
Intercepted
Link copied to clipboard
open
override
val
isIntercepted
:
Boolean
rank
Link copied to clipboard
val
rank
:
Int
?
打卡排名,没有排名或识别失败时为 null
sign
Link copied to clipboard
val
sign
:
String
打卡标记
user
Link copied to clipboard
val
user
:
UserOrBot
打卡发起人