Class CustomEvents

java.lang.Object
de.presti.ree6.events.CustomEvents
All Implemented Interfaces:
net.dv8tion.jda.api.hooks.EventListener

public class CustomEvents extends Object implements net.dv8tion.jda.api.hooks.EventListener
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkForNew(Class<? extends net.dv8tion.jda.api.events.GenericEvent> clazz, long guildId)
    Check for new CustomEvents.
    void
    onEvent(@NotNull net.dv8tion.jda.api.events.GenericEvent event)
    Listens for all events.
    void
    runCacheEntry(Class<? extends net.dv8tion.jda.api.events.GenericEvent> clazz, long guildId)
    Run the cache entry for the given event.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CustomEvents

      public CustomEvents()
  • Method Details

    • onEvent

      public void onEvent(@NotNull @NotNull net.dv8tion.jda.api.events.GenericEvent event)
      Listens for all events.
      Specified by:
      onEvent in interface net.dv8tion.jda.api.hooks.EventListener
      Parameters:
      event - The event.
    • runCacheEntry

      public void runCacheEntry(Class<? extends net.dv8tion.jda.api.events.GenericEvent> clazz, long guildId)
      Run the cache entry for the given event.
      Parameters:
      clazz - The event class.
      guildId - The guild id.
    • checkForNew

      public void checkForNew(Class<? extends net.dv8tion.jda.api.events.GenericEvent> clazz, long guildId)
      Check for new CustomEvents.
      Parameters:
      clazz - The event class.
      guildId - The guild id.