Package top.focess.qq.api.event.chat
Class ChatEvent
- java.lang.Object
-
- top.focess.qq.api.event.Event
-
- top.focess.qq.api.event.bot.BotEvent
-
- top.focess.qq.api.event.chat.ChatEvent
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FriendChatEvent,GroupChatEvent,StrangerChatEvent
public class ChatEvent extends BotEvent
Called when a friend chat with bot or a member chat in a group the bot is in- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChatEvent(Bot bot, Message message, MessageSource source)Constructs a ChatEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessagegetMessage()MessageSourcegetSource()-
Methods inherited from class top.focess.qq.api.event.Event
isPrevent, prevent, setPrevent
-
-
-
-
Constructor Detail
-
ChatEvent
public ChatEvent(Bot bot, Message message, MessageSource source)
Constructs a ChatEvent- Parameters:
bot- the botmessage- the chat messagesource- the source of the message
-
-
Method Detail
-
getMessage
public Message getMessage()
-
getSource
public MessageSource getSource()
-
-