Package top.focess.qq.api.event.recall
Class GroupRecallEvent
- java.lang.Object
-
- top.focess.qq.api.event.Event
-
- top.focess.qq.api.event.bot.BotEvent
-
- top.focess.qq.api.event.recall.GroupRecallEvent
-
- All Implemented Interfaces:
Serializable
public class GroupRecallEvent extends BotEvent
Called when a Member recall a message in a Group- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GroupRecallEvent(Bot bot, net.mamoe.mirai.contact.Member member, int[] messageIds, @Nullable net.mamoe.mirai.contact.Member operator)Constructs a GroupRecallEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull net.mamoe.mirai.contact.GroupgetGroup()Get the Group where the member recalls the message@NonNull net.mamoe.mirai.contact.MembergetMember()int[]getMessageIds()@Nullable net.mamoe.mirai.contact.MembergetOperator()-
Methods inherited from class top.focess.qq.api.event.Event
isPrevent, setPrevent
-
-
-
-
Constructor Detail
-
GroupRecallEvent
public GroupRecallEvent(Bot bot, net.mamoe.mirai.contact.Member member, int[] messageIds, @Nullable net.mamoe.mirai.contact.Member operator)
Constructs a GroupRecallEvent- Parameters:
bot- the botmember- the member who send the messagemessageIds- the message idsoperator- the member who recalls the message
-
-
Method Detail
-
getMember
public @NonNull net.mamoe.mirai.contact.Member getMember()
-
getMessageIds
public int[] getMessageIds()
-
getGroup
public @NonNull net.mamoe.mirai.contact.Group getGroup()
Get the Group where the member recalls the message- Returns:
- the Group where the member recalls the message
-
getOperator
public @Nullable net.mamoe.mirai.contact.Member getOperator()
-
-