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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.mamoe.mirai.message.data.MessageChaingetMessage()-
Methods inherited from class top.focess.qq.api.event.Event
isPrevent, setPrevent
-
-
-
-
Constructor Detail
-
ChatEvent
public ChatEvent(Bot bot, net.mamoe.mirai.message.data.MessageChain message)
Constructs a ChatEvent- Parameters:
bot- the botmessage- the chat message
-
-