Package top.focess.qq.api.event.chat
Class GroupChatEvent
- 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.GroupChatEvent
-
- All Implemented Interfaces:
Serializable
public class GroupChatEvent extends ChatEvent
Called when a member who chats in the group the bot is in- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GroupChatEvent(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 GroupChatEvent
-
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.chat.ChatEvent
getMessage
-
Methods inherited from class top.focess.qq.api.event.Event
isPrevent, setPrevent
-
-
-
-
Constructor Detail
-
GroupChatEvent
public GroupChatEvent(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 GroupChatEvent- 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()
-
-