Class ServerLeaveHandler
java.lang.Object
org.prithvidiamond1.HelperHandlers.ServerLeaveHandler
- All Implemented Interfaces:
org.javacord.api.listener.GloballyAttachableListener
,org.javacord.api.listener.ObjectAttachableListener
,org.javacord.api.listener.server.ServerAttachableListener
,org.javacord.api.listener.server.ServerLeaveListener
@Component
public class ServerLeaveHandler
extends Object
implements org.javacord.api.listener.server.ServerLeaveListener
This class handles events related to Discord server leave(s) done by the Discord bot
It does this by implementing a listener for it
It does this by implementing a listener for it
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onServerLeave
(org.javacord.api.event.server.ServerLeaveEvent event) Method that dictates what happens when the Discord bot leaves a server
-
Constructor Details
-
ServerLeaveHandler
public ServerLeaveHandler()
-
-
Method Details
-
onServerLeave
public void onServerLeave(org.javacord.api.event.server.ServerLeaveEvent event) Method that dictates what happens when the Discord bot leaves a server- Specified by:
onServerLeave
in interfaceorg.javacord.api.listener.server.ServerLeaveListener
- Parameters:
event
- the leave event listened by the listener
-