GroupMessagePreSendEvent.class,与GroupMessagePostSendEvent.class的疑问,看了几遍api没看懂怎么用,求大佬们指点一下
-
Listener listenerTest = GlobalEventChannel.INSTANCE.subscribeAlways(GroupMessagePreSendEvent.class, (GroupMessagePreSendEvent e)->{ e.getTarget().sendMessage("test"); }); Listener listenerTest1 = GlobalEventChannel.INSTANCE.subscribeAlways(GroupMessagePostSendEvent.class, (GroupMessagePostSendEvent e)->{ e.getTarget().sendMessage("test"); });
-
这是bot主动发消息时出发的事件