Package top.focess.qq.api.event.chat
Class StrangerChatEvent
- 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.StrangerChatEvent
-
- All Implemented Interfaces:
Serializable
public class StrangerChatEvent extends ChatEvent
Called when a stranger chat with bot- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StrangerChatEvent(Bot bot, Stranger stranger, MessageChain message, MessageSource source)Constructs a ChatEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StrangergetStranger()-
Methods inherited from class top.focess.qq.api.event.chat.ChatEvent
getMessage, getSource
-
Methods inherited from class top.focess.qq.api.event.Event
isPrevent, prevent, setPrevent
-
-
-
-
Constructor Detail
-
StrangerChatEvent
public StrangerChatEvent(Bot bot, Stranger stranger, MessageChain message, MessageSource source)
Constructs a ChatEvent- Parameters:
bot- the botstranger- the stranger who chats with botmessage- the chat messagesource- the source of the message
-
-
Method Detail
-
getStranger
public Stranger getStranger()
-
-