Package top.focess.qq.api.event.message
Class MessageEvent
- java.lang.Object
-
- top.focess.qq.api.event.Event
-
- top.focess.qq.api.event.bot.BotEvent
-
- top.focess.qq.api.event.message.MessageEvent
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FriendMessageEvent,GroupMessageEvent,StrangerMessageEvent
public class MessageEvent extends BotEvent
Called when a friend chat with bot or a member chat in a group the bot is in (this does not execute any commands)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MessageEvent(Bot bot, net.mamoe.mirai.message.data.MessageChain message)Constructs a MessageEvent
-
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
-
MessageEvent
public MessageEvent(Bot bot, net.mamoe.mirai.message.data.MessageChain message)
Constructs a MessageEvent- Parameters:
bot- the botmessage- the chat message
-
-