Class ServerJoinHandler

java.lang.Object
org.prithvidiamond1.HelperHandlers.ServerJoinHandler
All Implemented Interfaces:
org.javacord.api.listener.GloballyAttachableListener, org.javacord.api.listener.server.ServerJoinListener

@Component public class ServerJoinHandler extends Object implements org.javacord.api.listener.server.ServerJoinListener
This class handles events related to Discord server joins done by the Discord bot
It does this by implementing a listener for it
  • Constructor Details

    • ServerJoinHandler

      public ServerJoinHandler()
  • Method Details

    • onServerJoin

      public void onServerJoin(org.javacord.api.event.server.ServerJoinEvent event)
      Method that dictates what happens when the Discord bot joins a server
      Specified by:
      onServerJoin in interface org.javacord.api.listener.server.ServerJoinListener
      Parameters:
      event - the join event listened by the listener