Package top.focess.qq.api.event.message
Class FriendMessageEvent
- java.lang.Object
-
- top.focess.qq.api.event.Event
-
- top.focess.qq.api.event.bot.BotEvent
-
- top.focess.qq.api.event.message.MessageEvent
-
- top.focess.qq.api.event.message.FriendMessageEvent
-
- All Implemented Interfaces:
Serializable
public class FriendMessageEvent extends MessageEvent
Called when a friend chat with bot (this does not execute any commands)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FriendMessageEvent(Bot bot, Friend friend, MessageChain message, MessageSource source)Constructs a FriendMessageEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FriendgetFriend()-
Methods inherited from class top.focess.qq.api.event.message.MessageEvent
getMessage, getSource
-
Methods inherited from class top.focess.qq.api.event.Event
isPrevent, prevent, setPrevent
-
-
-
-
Constructor Detail
-
FriendMessageEvent
public FriendMessageEvent(Bot bot, Friend friend, MessageChain message, MessageSource source)
Constructs a FriendMessageEvent- Parameters:
bot- the botmessage- the chat messagefriend- the friend who chats with botsource- the source of the message
-
-
Method Detail
-
getFriend
public Friend getFriend()
-
-