类 MiraiGroupAllowAnonymousChatEvent
java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
me.dreamvoid.miraimc.sponge.event.group.setting.AbstractGroupSettingChangeEvent
me.dreamvoid.miraimc.sponge.event.group.setting.MiraiGroupAllowAnonymousChatEvent
- 所有已实现的接口:
Event
(Sponge) 群 - 群设置 - 群设置改变 - 匿名聊天状态改变
-
字段概要
从类继承的字段 org.spongepowered.api.event.impl.AbstractEvent
currentOrder
-
构造器概要
构造器说明MiraiGroupAllowAnonymousChatEvent
(net.mamoe.mirai.event.events.GroupAllowAnonymousChatEvent event, Cause cause) -
方法概要
修饰符和类型方法说明long
获取群号boolean
获取群当前是否允许匿名聊天boolean
获取群之前是否允许匿名聊天从类继承的方法 me.dreamvoid.miraimc.sponge.event.group.setting.AbstractGroupSettingChangeEvent
getBotID, getCause, getGroup, getHashCode, toString
从类继承的方法 org.spongepowered.api.event.impl.AbstractEvent
init
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 org.spongepowered.api.event.Event
getContext, getSource
-
构造器详细资料
-
MiraiGroupAllowAnonymousChatEvent
public MiraiGroupAllowAnonymousChatEvent(net.mamoe.mirai.event.events.GroupAllowAnonymousChatEvent event, Cause cause)
-
-
方法详细资料
-
getGroupID
public long getGroupID()获取群号- 覆盖:
getGroupID
在类中AbstractGroupSettingChangeEvent
- 返回:
- 群号
-
isAllowAnonymousChat
public boolean isAllowAnonymousChat()获取群当前是否允许匿名聊天- 返回:
- 是否允许匿名聊天
-
isAllowAnonymousChatBefore
public boolean isAllowAnonymousChatBefore()获取群之前是否允许匿名聊天- 返回:
- 是否允许匿名聊天
-