类 MiraiFriendMessagePostSendEvent
java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
me.dreamvoid.miraimc.sponge.event.message.postsend.AbstractMessagePostSendEvent
me.dreamvoid.miraimc.sponge.event.message.postsend.MiraiFriendMessagePostSendEvent
- 所有已实现的接口:
Event
- 直接已知子类:
MiraiFriendMessagePostSendEvent
(Sponge) 消息 - 主动发送消息后 - 好友消息
-
字段概要
从类继承的字段 org.spongepowered.api.event.impl.AbstractEvent
currentOrder
-
构造器概要
构造器说明MiraiFriendMessagePostSendEvent
(net.mamoe.mirai.event.events.FriendMessagePostSendEvent event, Cause cause) -
方法概要
修饰符和类型方法说明获取好友实例long
返回目标好友的QQ号返回目标好友的昵称返回目标好友的备注名从类继承的方法 me.dreamvoid.miraimc.sponge.event.message.postsend.AbstractMessagePostSendEvent
getBotID, getCause, getMessage, getMessageContent, getMessageToMiraiCode, getMessageToString, getQuoteReplyMessage, getQuoteReplyMessageContent, getQuoteReplyMessageToMiraiCode, getQuoteReplyMessageToString, getQuoteReplySenderID, getTargetID, recall, recall, toString
从类继承的方法 org.spongepowered.api.event.impl.AbstractEvent
init
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 org.spongepowered.api.event.Event
getContext, getSource
-
构造器详细资料
-
MiraiFriendMessagePostSendEvent
public MiraiFriendMessagePostSendEvent(net.mamoe.mirai.event.events.FriendMessagePostSendEvent event, Cause cause)
-
-
方法详细资料
-
getFriendID
public long getFriendID()返回目标好友的QQ号- 返回:
- 好友QQ号
-
getFriendNickName
返回目标好友的昵称- 返回:
- 昵称
-
getFriendRemark
返回目标好友的备注名- 返回:
- 备注名
-
getFriend
获取好友实例- 返回:
- MiraiFriend 实例
-