DisconnectEvent
, ExceptionEvent
, GenericCallEvent
, GenericCategoryEvent
, GenericEmoteEvent
, GenericGroupEvent
, GenericGuildEvent
, GenericMessageEvent
, GenericPrivateMessageEvent
, GenericRelationshipEvent
, GenericRoleEvent
, GenericSelfUpdateEvent
, GenericTextChannelEvent
, GenericUserEvent
, GenericVoiceChannelEvent
, HttpRequestEvent
, MessageBulkDeleteEvent
, PrivateChannelCreateEvent
, PrivateChannelDeleteEvent
, ReadyEvent
, ReconnectedEvent
, ResumedEvent
, ShutdownEvent
, StatusChangeEvent
, UnavailableGuildJoinedEvent
public abstract class Event
extends java.lang.Object
Can be used to check if an Object is a JDA event in EventListener
implementations to distinguish what event is being fired.
Adapter implementation: ListenerAdapter
Constructor | Description |
---|---|
Event(JDA api) |
Creates a new Event from the given JDA instance
Uses the current JDA.getResponseTotal() as sequence |
Event(JDA api,
long responseNumber) |
Creates a new Event from the given JDA instance
|
Modifier and Type | Method | Description |
---|---|---|
JDA |
getJDA() |
The current JDA instance corresponding to this Event
|
long |
getResponseNumber() |
The current sequence for this event.
|
public Event(JDA api, long responseNumber)
api
- Current JDA instanceresponseNumber
- The sequence number for this eventEvent(net.dv8tion.jda.core.JDA)
public Event(JDA api)
JDA.getResponseTotal()
as sequenceapi
- Current JDA instancepublic JDA getJDA()
public long getResponseNumber()