public class FriendChatEvent extends ChatEvent
| 构造器和说明 |
|---|
FriendChatEvent(Bot bot,
net.mamoe.mirai.contact.Friend friend,
net.mamoe.mirai.message.data.MessageChain message,
net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromFriend source)
Constructs a FriendChatEvent
|
| 限定符和类型 | 方法和说明 |
|---|---|
net.mamoe.mirai.contact.Friend |
getFriend() |
net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromFriend |
getSource() |
getMessageisPrevent, setPreventpublic FriendChatEvent(Bot bot, net.mamoe.mirai.contact.Friend friend, net.mamoe.mirai.message.data.MessageChain message, net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromFriend source)
bot - the botfriend - the friend who chats with botmessage - the chat messagesource - the source of the messageCopyright © 2022. All rights reserved.