Package de.presti.ree6.events
Class CustomEvents
java.lang.Object
de.presti.ree6.events.CustomEvents
- All Implemented Interfaces:
net.dv8tion.jda.api.hooks.EventListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
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 interfacenet.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.
-