Package top.focess.qq.api.event.message
Class GroupMessageEvent
- java.lang.Object
-
- top.focess.qq.api.event.Event
-
- top.focess.qq.api.event.bot.BotEvent
-
- top.focess.qq.api.event.message.MessageEvent
-
- top.focess.qq.api.event.message.GroupMessageEvent
-
- All Implemented Interfaces:
Serializable
public class GroupMessageEvent extends MessageEvent
Called when a member who chats in the group the bot is in (this does not execute any commands)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GroupMessageEvent(Bot bot, net.mamoe.mirai.contact.Member member, net.mamoe.mirai.message.data.MessageChain message, net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromGroup source)Constructs a GroupMessageEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.mamoe.mirai.contact.GroupgetGroup()Get the Group Mirai instance of the membernet.mamoe.mirai.contact.MembergetMember()net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromGroupgetSource()-
Methods inherited from class top.focess.qq.api.event.message.MessageEvent
getMessage
-
Methods inherited from class top.focess.qq.api.event.Event
isPrevent, setPrevent
-
-
-
-
Constructor Detail
-
GroupMessageEvent
public GroupMessageEvent(Bot bot, net.mamoe.mirai.contact.Member member, net.mamoe.mirai.message.data.MessageChain message, net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromGroup source)
Constructs a GroupMessageEvent- Parameters:
bot- the botmember- the one who chats in the group the bot is inmessage- the chat messagesource- the source of the message
-
-
Method Detail
-
getMember
public net.mamoe.mirai.contact.Member getMember()
-
getGroup
public net.mamoe.mirai.contact.Group getGroup()
Get the Group Mirai instance of the member- Returns:
- the Group Mirai instance of the member
-
getSource
public net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromGroup getSource()
-
-