public class GroupMessageEvent extends MessageEvent
| 构造器和说明 |
|---|
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
|
| 限定符和类型 | 方法和说明 |
|---|---|
net.mamoe.mirai.contact.Group |
getGroup()
Get the Group Mirai instance of the member
|
net.mamoe.mirai.contact.Member |
getMember() |
net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromGroup |
getSource() |
getMessageisPrevent, setPreventpublic 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)
bot - the botmember - the one who chats in the group the bot is inmessage - the chat messagesource - the source of the messagepublic net.mamoe.mirai.contact.Member getMember()
public net.mamoe.mirai.contact.Group getGroup()
public net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromGroup getSource()
Copyright © 2022. All rights reserved.