Class MiraiGroupMessageRecallEvent
java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
me.dreamvoid.miraimc.sponge.event.message.recall.MiraiGroupMessageRecallEvent
- All Implemented Interfaces:
org.spongepowered.api.event.Event
public class MiraiGroupMessageRecallEvent
extends org.spongepowered.api.event.impl.AbstractEvent
(Sponge) 消息 - 消息撤回 - 群撤回
-
Field Summary
Fields inherited from class org.spongepowered.api.event.impl.AbstractEvent
currentOrder -
Constructor Summary
ConstructorsConstructorDescriptionMiraiGroupMessageRecallEvent(net.mamoe.mirai.event.events.MessageRecallEvent.GroupRecall event, org.spongepowered.api.event.Cause cause) -
Method Summary
Modifier and TypeMethodDescription@NotNull org.spongepowered.api.event.Causecause()long获取被撤回信息的发送者ID获取被撤回信息的发送者昵称longgetBotID()获取机器人账号getGroup()获取群实例long获取群号int[](?)long获取信息发送时间long获取撤回信息的操作者ID 如果操作者不存在,则返回0获取撤回信息的操作者昵称 如果操作者不存在,则返回nulllongDeprecated.Deprecated.toString()获取原始事件内容
[!]Methods inherited from class org.spongepowered.api.event.impl.AbstractEvent
initMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.spongepowered.api.event.Event
context, source
-
Constructor Details
-
MiraiGroupMessageRecallEvent
public MiraiGroupMessageRecallEvent(net.mamoe.mirai.event.events.MessageRecallEvent.GroupRecall event, org.spongepowered.api.event.Cause cause)
-
-
Method Details
-
getSenderNick
Deprecated.获取被撤回信息的发送者昵称- Returns:
- 发送者昵称
- See Also:
-
getSenderID
Deprecated.获取被撤回信息的发送者ID- Returns:
- 发送者ID
- See Also:
-
getOperatorNick
获取撤回信息的操作者昵称 如果操作者不存在,则返回null- Returns:
- 操作者昵称
-
getOperatorID
public long getOperatorID()获取撤回信息的操作者ID 如果操作者不存在,则返回0- Returns:
- 操作者ID
-
getGroupID
public long getGroupID()获取群号- Returns:
- 群号
-
getGroup
获取群实例- Returns:
- MiraiGroup 实例
-
getBotID
public long getBotID()获取机器人账号- Returns:
- 机器人账号
-
getAuthorNick
获取被撤回信息的发送者昵称- Returns:
- 发送者昵称
-
getAuthorID
public long getAuthorID()获取被撤回信息的发送者ID- Returns:
- 发送者ID
-
getMessageTime
public long getMessageTime()获取信息发送时间- Returns:
- 发送时间
-
getMessageIds
public int[] getMessageIds()(?)获取信息编号- Returns:
- 信息编号
-
toString
获取原始事件内容
[!] 不推荐使用 -
cause
@NotNull public @NotNull org.spongepowered.api.event.Cause cause()
-