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, Friend friend, MessageChain message, MessageSource source)Constructs a FriendChatEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FriendgetFriend()MessageSourcegetSource()-
Methods inherited from class top.focess.qq.api.event.chat.ChatEvent
getMessage
-
Methods inherited from class top.focess.qq.api.event.Event
isPrevent, prevent, setPrevent
-
-
-
-
Constructor Detail
-
FriendChatEvent
public FriendChatEvent(Bot bot, Friend friend, MessageChain message, MessageSource source)
Constructs a FriendChatEvent- Parameters:
bot- the botfriend- the friend who chats with botmessage- the chat messagesource- the source of the message
-
-
Method Detail
-
getFriend
public Friend getFriend()
-
getSource
public MessageSource getSource()
-
-