Package top.focess.qq.api.event.bot
Class BotPreSendMessageEvent
- java.lang.Object
-
- top.focess.qq.api.event.Event
-
- top.focess.qq.api.event.bot.BotEvent
-
- top.focess.qq.api.event.bot.BotPreSendMessageEvent
-
- All Implemented Interfaces:
Serializable
public class BotPreSendMessageEvent extends BotEvent
Called when bot pre-send message- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BotPreSendMessageEvent(Bot b, net.mamoe.mirai.message.data.Message message, net.mamoe.mirai.contact.Contact target, net.mamoe.mirai.event.events.MessagePreSendEvent event)Constructs a BotPreSendMessageEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.mamoe.mirai.message.data.MessagegetMessage()net.mamoe.mirai.contact.ContactgetTarget()voidsetMessage(net.mamoe.mirai.message.data.Message message)-
Methods inherited from class top.focess.qq.api.event.Event
isPrevent, setPrevent
-
-
-
-
Constructor Detail
-
BotPreSendMessageEvent
public BotPreSendMessageEvent(Bot b, net.mamoe.mirai.message.data.Message message, net.mamoe.mirai.contact.Contact target, net.mamoe.mirai.event.events.MessagePreSendEvent event)
Constructs a BotPreSendMessageEvent- Parameters:
b- the botmessage- the messagetarget- the target contactevent- the raw event
-
-