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, net.mamoe.mirai.message.data.MessageChain message, net.mamoe.mirai.contact.Stranger stranger, net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromStranger source)Constructs a ChatEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromStrangergetSource()net.mamoe.mirai.contact.StrangergetStranger()-
Methods inherited from class top.focess.qq.api.event.chat.ChatEvent
getMessage
-
Methods inherited from class top.focess.qq.api.event.Event
isPrevent, setPrevent
-
-
-
-
Constructor Detail
-
StrangerChatEvent
public StrangerChatEvent(Bot bot, net.mamoe.mirai.message.data.MessageChain message, net.mamoe.mirai.contact.Stranger stranger, net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromStranger source)
Constructs a ChatEvent- Parameters:
bot- the botmessage- the chat messagestranger- the stranger who chats with botsource- the source of the message
-
-