Package top.focess.qq.api.event.chat
Class FriendChatEvent
- java.lang.Object
-
- top.focess.qq.api.event.Event
-
- top.focess.qq.api.event.bot.BotEvent
-
- top.focess.qq.api.event.chat.ChatEvent
-
- top.focess.qq.api.event.chat.FriendChatEvent
-
- All Implemented Interfaces:
Serializable
public class FriendChatEvent extends ChatEvent
Called when a friend chat with bot- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.mamoe.mirai.contact.FriendgetFriend()net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromFriendgetSource()-
Methods inherited from class top.focess.qq.api.event.chat.ChatEvent
getMessage
-
Methods inherited from class top.focess.qq.api.event.Event
isPrevent, setPrevent
-
-
-
-
Constructor Detail
-
FriendChatEvent
public 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- Parameters:
bot- the botfriend- the friend who chats with botmessage- the chat messagesource- the source of the message
-
-