Package net.dv8tion.jda.api.events
Interface GenericEvent
- All Known Subinterfaces:
GenericUserPresenceEvent
,UpdateEvent<E,
T>
- All Known Implementing Classes:
ApplicationCommandUpdatePrivilegesEvent
,ApplicationUpdatePrivilegesEvent
,AutoModExecutionEvent
,AutoModRuleCreateEvent
,AutoModRuleDeleteEvent
,AutoModRuleUpdateEvent
,ButtonInteractionEvent
,ChannelCreateEvent
,ChannelDeleteEvent
,ChannelUpdateAppliedTagsEvent
,ChannelUpdateArchivedEvent
,ChannelUpdateArchiveTimestampEvent
,ChannelUpdateAutoArchiveDurationEvent
,ChannelUpdateBitrateEvent
,ChannelUpdateDefaultLayoutEvent
,ChannelUpdateDefaultReactionEvent
,ChannelUpdateDefaultSortOrderEvent
,ChannelUpdateDefaultThreadSlowmodeEvent
,ChannelUpdateFlagsEvent
,ChannelUpdateInvitableEvent
,ChannelUpdateLockedEvent
,ChannelUpdateNameEvent
,ChannelUpdateNSFWEvent
,ChannelUpdateParentEvent
,ChannelUpdatePositionEvent
,ChannelUpdateRegionEvent
,ChannelUpdateSlowmodeEvent
,ChannelUpdateTopicEvent
,ChannelUpdateTypeEvent
,ChannelUpdateUserLimitEvent
,ChannelUpdateVoiceStatusEvent
,CommandAutoCompleteInteractionEvent
,EmojiAddedEvent
,EmojiRemovedEvent
,EmojiUpdateNameEvent
,EmojiUpdateRolesEvent
,EntitlementCreateEvent
,EntitlementDeleteEvent
,EntitlementUpdateEvent
,EntitySelectInteractionEvent
,Event
,ExceptionEvent
,ForumTagAddEvent
,ForumTagRemoveEvent
,ForumTagUpdateEmojiEvent
,ForumTagUpdateModeratedEvent
,ForumTagUpdateNameEvent
,GatewayPingEvent
,GenericAutoCompleteInteractionEvent
,GenericAutoModRuleEvent
,GenericChannelEvent
,GenericChannelUpdateEvent
,GenericCommandInteractionEvent
,GenericComponentInteractionCreateEvent
,GenericContextInteractionEvent
,GenericEmojiEvent
,GenericEmojiUpdateEvent
,GenericEntitlementEvent
,GenericForumTagEvent
,GenericForumTagUpdateEvent
,GenericGuildEvent
,GenericGuildInviteEvent
,GenericGuildMemberEvent
,GenericGuildMemberUpdateEvent
,GenericGuildStickerEvent
,GenericGuildStickerUpdateEvent
,GenericGuildUpdateEvent
,GenericGuildVoiceEvent
,GenericInteractionCreateEvent
,GenericMessageEvent
,GenericMessagePollVoteEvent
,GenericMessageReactionEvent
,GenericPermissionOverrideEvent
,GenericPrivilegeUpdateEvent
,GenericRoleEvent
,GenericRoleUpdateEvent
,GenericScheduledEventGatewayEvent
,GenericScheduledEventUpdateEvent
,GenericScheduledEventUserEvent
,GenericSelectMenuInteractionEvent
,GenericSelfUpdateEvent
,GenericSessionEvent
,GenericStageInstanceEvent
,GenericStageInstanceUpdateEvent
,GenericThreadEvent
,GenericThreadMemberEvent
,GenericUserEvent
,GenericUserUpdateEvent
,GuildAuditLogEntryCreateEvent
,GuildAvailableEvent
,GuildBanEvent
,GuildInviteCreateEvent
,GuildInviteDeleteEvent
,GuildJoinEvent
,GuildLeaveEvent
,GuildMemberJoinEvent
,GuildMemberRemoveEvent
,GuildMemberRoleAddEvent
,GuildMemberRoleRemoveEvent
,GuildMemberUpdateAvatarEvent
,GuildMemberUpdateBoostTimeEvent
,GuildMemberUpdateEvent
,GuildMemberUpdateFlagsEvent
,GuildMemberUpdateNicknameEvent
,GuildMemberUpdatePendingEvent
,GuildMemberUpdateTimeOutEvent
,GuildReadyEvent
,GuildStickerAddedEvent
,GuildStickerRemovedEvent
,GuildStickerUpdateAvailableEvent
,GuildStickerUpdateDescriptionEvent
,GuildStickerUpdateNameEvent
,GuildStickerUpdateTagsEvent
,GuildTimeoutEvent
,GuildUnavailableEvent
,GuildUnbanEvent
,GuildUpdateAfkChannelEvent
,GuildUpdateAfkTimeoutEvent
,GuildUpdateBannerEvent
,GuildUpdateBoostCountEvent
,GuildUpdateBoostTierEvent
,GuildUpdateCommunityUpdatesChannelEvent
,GuildUpdateDescriptionEvent
,GuildUpdateExplicitContentLevelEvent
,GuildUpdateFeaturesEvent
,GuildUpdateIconEvent
,GuildUpdateLocaleEvent
,GuildUpdateMaxMembersEvent
,GuildUpdateMaxPresencesEvent
,GuildUpdateMFALevelEvent
,GuildUpdateNameEvent
,GuildUpdateNotificationLevelEvent
,GuildUpdateNSFWLevelEvent
,GuildUpdateOwnerEvent
,GuildUpdateRulesChannelEvent
,GuildUpdateSplashEvent
,GuildUpdateSystemChannelEvent
,GuildUpdateVanityCodeEvent
,GuildUpdateVerificationLevelEvent
,GuildVoiceDeafenEvent
,GuildVoiceGuildDeafenEvent
,GuildVoiceGuildMuteEvent
,GuildVoiceMuteEvent
,GuildVoiceRequestToSpeakEvent
,GuildVoiceSelfDeafenEvent
,GuildVoiceSelfMuteEvent
,GuildVoiceStreamEvent
,GuildVoiceSuppressEvent
,GuildVoiceUpdateEvent
,GuildVoiceVideoEvent
,HttpRequestEvent
,MessageBulkDeleteEvent
,MessageContextInteractionEvent
,MessageDeleteEvent
,MessagePollVoteAddEvent
,MessagePollVoteRemoveEvent
,MessageReactionAddEvent
,MessageReactionRemoveAllEvent
,MessageReactionRemoveEmojiEvent
,MessageReactionRemoveEvent
,MessageReceivedEvent
,MessageUpdateEvent
,ModalInteractionEvent
,PermissionOverrideCreateEvent
,PermissionOverrideDeleteEvent
,PermissionOverrideUpdateEvent
,RawGatewayEvent
,ReadyEvent
,RoleCreateEvent
,RoleDeleteEvent
,RoleUpdateColorEvent
,RoleUpdateHoistedEvent
,RoleUpdateIconEvent
,RoleUpdateMentionableEvent
,RoleUpdateNameEvent
,RoleUpdatePermissionsEvent
,RoleUpdatePositionEvent
,ScheduledEventCreateEvent
,ScheduledEventDeleteEvent
,ScheduledEventUpdateDescriptionEvent
,ScheduledEventUpdateEndTimeEvent
,ScheduledEventUpdateImageEvent
,ScheduledEventUpdateLocationEvent
,ScheduledEventUpdateNameEvent
,ScheduledEventUpdateStartTimeEvent
,ScheduledEventUpdateStatusEvent
,ScheduledEventUserAddEvent
,ScheduledEventUserRemoveEvent
,SelfUpdateAvatarEvent
,SelfUpdateDiscriminatorEvent
,SelfUpdateGlobalNameEvent
,SelfUpdateMFAEvent
,SelfUpdateNameEvent
,SelfUpdateVerifiedEvent
,SessionDisconnectEvent
,SessionInvalidateEvent
,SessionRecreateEvent
,SessionResumeEvent
,ShutdownEvent
,SlashCommandInteractionEvent
,StageInstanceCreateEvent
,StageInstanceDeleteEvent
,StageInstanceUpdatePrivacyLevelEvent
,StageInstanceUpdateTopicEvent
,StatusChangeEvent
,StringSelectInteractionEvent
,ThreadHiddenEvent
,ThreadMemberJoinEvent
,ThreadMemberLeaveEvent
,ThreadRevealedEvent
,UnavailableGuildJoinedEvent
,UnavailableGuildLeaveEvent
,UserActivityEndEvent
,UserActivityStartEvent
,UserContextInteractionEvent
,UserTypingEvent
,UserUpdateActivitiesEvent
,UserUpdateActivityOrderEvent
,UserUpdateAvatarEvent
,UserUpdateDiscriminatorEvent
,UserUpdateFlagsEvent
,UserUpdateGlobalNameEvent
,UserUpdateNameEvent
,UserUpdateOnlineStatusEvent
public interface GenericEvent
Interface for events supported by
EventManagers
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetJDA()
The current JDA instance corresponding to this EventThe passthrough data that this event was serialized from.long
The current sequence for this event.
-
Method Details
-
getJDA
The current JDA instance corresponding to this Event- Returns:
- The corresponding JDA instance
-
getResponseNumber
long getResponseNumber()The current sequence for this event.
This can be used to keep events in order when making sequencing system.- Returns:
- The current sequence number for this event
-
getRawData
The passthrough data that this event was serialized from. This data might be null in rare situations, for example, if the event came from a rest action.
This provides the full gateway message payload, including sequence, event name and dispatch type. For details, read the official Discord Documentation.- Returns:
- The corresponding
DataObject
- Throws:
IllegalStateException
- If event passthrough was not enabled, seeJDABuilder#setEventPassthrough(boolean)
-