类 MiraiFriendMessageEvent
java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
me.dreamvoid.miraimc.sponge.event.message.passive.AbstractMessageEvent
me.dreamvoid.miraimc.sponge.event.message.passive.MiraiFriendMessageEvent
- 所有已实现的接口:
Event
- 直接已知子类:
MiraiFriendMessageEvent
(Sponge) 消息 - 被动收到消息 - 好友消息
-
字段概要
从类继承的字段 org.spongepowered.api.event.impl.AbstractEvent
currentOrder
-
构造器概要
构造器说明MiraiFriendMessageEvent
(long BotAccount, FetchMessage.Data data, Cause cause) MiraiFriendMessageEvent
(net.mamoe.mirai.event.events.FriendMessageEvent event, Cause cause) -
方法概要
修饰符和类型方法说明获取好友实例返回发送这条信息的发送者昵称void
sendMessage
(String message) 向发送来源发送消息(HTTPAPI下支持 Mirai Code)void
sendMessageMirai
(String message) 向发送来源发送消息(支持 Mirai Code)从类继承的方法 me.dreamvoid.miraimc.sponge.event.message.passive.AbstractMessageEvent
getBotID, getCause, getMessage, getMessageContent, getMessageToMiraiCode, getMessageToString, getQuoteReplyMessage, getQuoteReplyMessageContent, getQuoteReplyMessageToMiraiCode, getQuoteReplyMessageToString, getQuoteReplySenderID, getSenderID, getSenderNick, getTime, getType, reply, replyMirai, 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
-
构造器详细资料
-
MiraiFriendMessageEvent
-
MiraiFriendMessageEvent
-
-
方法详细资料
-
getSenderName
返回发送这条信息的发送者昵称- 覆盖:
getSenderName
在类中AbstractMessageEvent
- 返回:
- 发送者昵称
-
sendMessage
向发送来源发送消息(HTTPAPI下支持 Mirai Code)- 覆盖:
sendMessage
在类中AbstractMessageEvent
- 参数:
message
- 消息内容
-
sendMessageMirai
向发送来源发送消息(支持 Mirai Code)- 覆盖:
sendMessageMirai
在类中AbstractMessageEvent
- 参数:
message
- 消息内容
-
getFriend
获取好友实例- 返回:
- MiraiFriend 实例
-