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