Package top.mrxiaom.overflow.event
Class MessageReactionEvent
-
- All Implemented Interfaces:
-
net.mamoe.mirai.event.Event,net.mamoe.mirai.event.events.BotEvent
public final class MessageReactionEvent extends AbstractEvent implements BotEvent
-
-
Field Summary
Fields Modifier and Type Field Description private final Botbotprivate final Groupgroupprivate final NormalMemberoperatorprivate final IntegermessageIdprivate final Stringreactionprivate final Integercountprivate final Booleanoperationprivate final BooleanisInterceptedpublic Boolean_interceptedpublic final MutexbroadCastLockprivate final BooleanisCancelled
-
Constructor Summary
Constructors Constructor Description MessageReactionEvent(Bot bot, Group group, NormalMember operator, Integer messageId, String reaction, Integer count, Boolean operation)
-
Method Summary
Modifier and Type Method Description BotgetBot()机器人 final GroupgetGroup()群聊 final NormalMembergetOperator()操作人,null 时为机器人 final IntegergetMessageId()被操作的消息ID final StringgetReaction()表情ID,详见 Overflow 开发文档 final IntegergetCount()进行此操作后的表情总数 final BooleangetOperation()表情被添加还是移除 true为添加,false为移除-
Methods inherited from class net.mamoe.mirai.event.Event
intercept, isIntercepted -
Methods inherited from class net.mamoe.mirai.event.AbstractEvent
cancel, isCancelled -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getBot
Bot getBot()
机器人
-
getGroup
final Group getGroup()
群聊
-
getOperator
final NormalMember getOperator()
操作人,null 时为机器人
-
getMessageId
final Integer getMessageId()
被操作的消息ID
-
getReaction
final String getReaction()
表情ID,详见 Overflow 开发文档
-
getOperation
final Boolean getOperation()
表情被添加还是移除
true为添加,false为移除
-
-
-
-