Package net.dv8tion.jda.api.hooks
Class ListenerAdapter
java.lang.Object
net.dv8tion.jda.api.hooks.ListenerAdapter
- All Implemented Interfaces:
EventListener
An abstract implementation of
EventListener
which divides Events
for you. You should override the methods provided by this class for your event listener implementation.
Example:
public class MyReadyListener extends ListenerAdapter
{
@Override
public void onReady(ReadyEvent event)
{
System.out.println("I am ready to go!");
}
@Override
public void onMessageReceived(MessageReceivedEvent event)
{
System.out.printf("[%s]: %s\n", event.getAuthor().getName(), event.getMessage().getContentDisplay());
}
}
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
onEmojiAdded
(EmojiAddedEvent event) void
onEmojiRemoved
(EmojiRemovedEvent event) void
void
void
void
void
void
final void
onEvent
(GenericEvent event) Handles anyGenericEvent
.void
onException
(ExceptionEvent event) void
onForumTagAdd
(ForumTagAddEvent event) void
void
void
void
void
onGatewayPing
(GatewayPingEvent event) void
void
void
void
void
void
void
void
onGenericEmoji
(GenericEmojiEvent event) void
void
void
onGenericEvent
(GenericEvent event) void
void
void
onGenericGuild
(GenericGuildEvent event) void
void
void
void
void
void
void
void
void
void
void
void
void
void
onGenericRole
(GenericRoleEvent event) void
void
void
void
void
void
void
void
void
void
void
void
onGenericUpdate
(UpdateEvent<?, ?> event) void
onGenericUser
(GenericUserEvent event) void
void
void
void
void
onGuildBan
(GuildBanEvent event) void
void
void
onGuildJoin
(GuildJoinEvent event) void
onGuildLeave
(GuildLeaveEvent event) void
void
void
void
void
void
void
void
void
void
void
void
onGuildReady
(GuildReadyEvent event) void
void
void
void
void
void
void
onGuildTimeout
(GuildTimeoutEvent event) void
void
onGuildUnban
(GuildUnbanEvent event) void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
onHttpRequest
(HttpRequestEvent event) void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
onRawGateway
(RawGatewayEvent event) void
onReady
(ReadyEvent event) void
onRoleCreate
(RoleCreateEvent event) void
onRoleDelete
(RoleDeleteEvent event) void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
onShutdown
(ShutdownEvent event) void
void
void
void
void
void
onStatusChange
(StatusChangeEvent event) void
void
onThreadHidden
(ThreadHiddenEvent event) void
void
void
void
void
void
void
void
void
onUserTyping
(UserTypingEvent event) void
void
void
void
void
void
void
void
-
Constructor Details
-
ListenerAdapter
public ListenerAdapter()
-
-
Method Details
-
onGenericEvent
-
onGenericUpdate
-
onRawGateway
-
onGatewayPing
-
onReady
-
onSessionInvalidate
-
onSessionDisconnect
-
onSessionResume
-
onSessionRecreate
-
onShutdown
-
onStatusChange
-
onException
-
onSlashCommandInteraction
-
onUserContextInteraction
-
onMessageContextInteraction
-
onButtonInteraction
-
onCommandAutoCompleteInteraction
-
onModalInteraction
-
onStringSelectInteraction
-
onEntitySelectInteraction
-
onUserUpdateName
-
onUserUpdateGlobalName
-
onUserUpdateDiscriminator
-
onUserUpdateAvatar
-
onUserUpdateOnlineStatus
-
onUserUpdateActivityOrder
-
onUserUpdateFlags
-
onUserTyping
-
onUserActivityStart
-
onUserActivityEnd
-
onUserUpdateActivities
-
onSelfUpdateAvatar
-
onSelfUpdateMFA
-
onSelfUpdateName
-
onSelfUpdateDiscriminator
-
onSelfUpdateGlobalName
-
onSelfUpdateVerified
-
onMessageReceived
-
onMessageUpdate
-
onMessageDelete
-
onMessageBulkDelete
-
onMessageReactionAdd
-
onMessageReactionRemove
-
onMessageReactionRemoveAll
-
onMessageReactionRemoveEmoji
-
onMessagePollVoteAdd
-
onMessagePollVoteRemove
-
onPermissionOverrideDelete
-
onPermissionOverrideUpdate
-
onPermissionOverrideCreate
-
onStageInstanceDelete
-
onStageInstanceUpdateTopic
-
onStageInstanceUpdatePrivacyLevel
-
onStageInstanceCreate
-
onChannelCreate
-
onChannelDelete
-
onChannelUpdateBitrate
-
onChannelUpdateName
-
onChannelUpdateFlags
-
onChannelUpdateNSFW
-
onChannelUpdateParent
-
onChannelUpdatePosition
-
onChannelUpdateRegion
-
onChannelUpdateSlowmode
-
onChannelUpdateDefaultThreadSlowmode
public void onChannelUpdateDefaultThreadSlowmode(@Nonnull ChannelUpdateDefaultThreadSlowmodeEvent event) -
onChannelUpdateDefaultReaction
-
onChannelUpdateDefaultSortOrder
-
onChannelUpdateDefaultLayout
-
onChannelUpdateTopic
-
onChannelUpdateVoiceStatus
-
onChannelUpdateType
-
onChannelUpdateUserLimit
-
onChannelUpdateArchived
-
onChannelUpdateArchiveTimestamp
-
onChannelUpdateAutoArchiveDuration
public void onChannelUpdateAutoArchiveDuration(@Nonnull ChannelUpdateAutoArchiveDurationEvent event) -
onChannelUpdateLocked
-
onChannelUpdateInvitable
-
onChannelUpdateAppliedTags
-
onForumTagAdd
-
onForumTagRemove
-
onForumTagUpdateName
-
onForumTagUpdateEmoji
-
onForumTagUpdateModerated
-
onThreadRevealed
-
onThreadHidden
-
onThreadMemberJoin
-
onThreadMemberLeave
-
onGuildReady
-
onGuildTimeout
-
onGuildJoin
-
onGuildLeave
-
onGuildAvailable
-
onGuildBan
-
onGuildUnban
-
onGuildAuditLogEntryCreate
-
onGuildMemberRemove
-
onGuildUpdateAfkChannel
-
onGuildUpdateSystemChannel
-
onGuildUpdateRulesChannel
-
onGuildUpdateCommunityUpdatesChannel
public void onGuildUpdateCommunityUpdatesChannel(@Nonnull GuildUpdateCommunityUpdatesChannelEvent event) -
onGuildUpdateSafetyAlertsChannel
-
onGuildUpdateAfkTimeout
-
onGuildUpdateExplicitContentLevel
-
onGuildUpdateIcon
-
onGuildUpdateMFALevel
-
onGuildUpdateName
-
onGuildUpdateNotificationLevel
-
onGuildUpdateOwner
-
onGuildUpdateSplash
-
onGuildUpdateVerificationLevel
-
onGuildUpdateLocale
-
onGuildUpdateFeatures
-
onGuildUpdateVanityCode
-
onGuildUpdateBanner
-
onGuildUpdateDescription
-
onGuildUpdateBoostTier
-
onGuildUpdateBoostCount
-
onGuildUpdateMaxMembers
-
onGuildUpdateMaxPresences
-
onGuildUpdateNSFWLevel
-
onScheduledEventUpdateDescription
-
onScheduledEventUpdateEndTime
-
onScheduledEventUpdateLocation
-
onScheduledEventUpdateName
-
onScheduledEventUpdateStartTime
-
onScheduledEventUpdateStatus
-
onScheduledEventUpdateImage
-
onScheduledEventCreate
-
onScheduledEventDelete
-
onScheduledEventUserAdd
-
onScheduledEventUserRemove
-
onGuildInviteCreate
-
onGuildInviteDelete
-
onGuildMemberJoin
-
onGuildMemberRoleAdd
-
onGuildMemberRoleRemove
-
onGuildMemberUpdate
-
onGuildMemberUpdateNickname
-
onGuildMemberUpdateAvatar
-
onGuildMemberUpdateBoostTime
-
onGuildMemberUpdatePending
-
onGuildMemberUpdateFlags
-
onGuildMemberUpdateTimeOut
-
onGuildVoiceUpdate
-
onGuildVoiceMute
-
onGuildVoiceDeafen
-
onGuildVoiceGuildMute
-
onGuildVoiceGuildDeafen
-
onGuildVoiceSelfMute
-
onGuildVoiceSelfDeafen
-
onGuildVoiceSuppress
-
onGuildVoiceStream
-
onGuildVoiceVideo
-
onGuildVoiceRequestToSpeak
-
onAutoModExecution
-
onAutoModRuleCreate
-
onAutoModRuleUpdate
-
onAutoModRuleDelete
-
onRoleCreate
-
onRoleDelete
-
onRoleUpdateColor
-
onRoleUpdateHoisted
-
onRoleUpdateIcon
-
onRoleUpdateMentionable
-
onRoleUpdateName
-
onRoleUpdatePermissions
-
onRoleUpdatePosition
-
onEmojiAdded
-
onEmojiRemoved
-
onEmojiUpdateName
-
onEmojiUpdateRoles
-
onGenericPrivilegeUpdate
-
onApplicationCommandUpdatePrivileges
public void onApplicationCommandUpdatePrivileges(@Nonnull ApplicationCommandUpdatePrivilegesEvent event) -
onApplicationUpdatePrivileges
-
onGuildStickerAdded
-
onGuildStickerRemoved
-
onGuildStickerUpdateName
-
onGuildStickerUpdateTags
-
onGuildStickerUpdateDescription
-
onGuildStickerUpdateAvailable
-
onEntitlementCreate
-
onEntitlementUpdate
-
onEntitlementDelete
-
onHttpRequest
-
onGenericSession
-
onGenericInteractionCreate
-
onGenericAutoCompleteInteraction
-
onGenericComponentInteractionCreate
public void onGenericComponentInteractionCreate(@Nonnull GenericComponentInteractionCreateEvent event) -
onGenericCommandInteraction
-
onGenericContextInteraction
-
onGenericSelectMenuInteraction
-
onGenericMessage
-
onGenericMessageReaction
-
onGenericMessagePollVote
-
onGenericUser
-
onGenericUserPresence
-
onGenericUserUpdate
-
onGenericSelfUpdate
-
onGenericStageInstance
-
onGenericStageInstanceUpdate
-
onGenericChannel
-
onGenericChannelUpdate
-
onGenericThread
-
onGenericThreadMember
-
onGenericGuild
-
onGenericGuildUpdate
-
onGenericGuildInvite
-
onGenericGuildMember
-
onGenericGuildMemberUpdate
-
onGenericGuildVoice
-
onGenericAutoModRule
-
onGenericRole
-
onGenericRoleUpdate
-
onGenericEmoji
-
onGenericEmojiUpdate
-
onGenericGuildSticker
-
onGenericGuildStickerUpdate
-
onGenericEntitlement
-
onGenericPermissionOverride
-
onGenericScheduledEventUpdate
-
onGenericScheduledEventGateway
-
onGenericScheduledEventUser
-
onGenericForumTag
-
onGenericForumTagUpdate
-
onEvent
Description copied from interface:EventListener
Handles anyGenericEvent
.To get specific events with Methods like
onMessageReceived(MessageReceivedEvent event)
take a look at:ListenerAdapter
- Specified by:
onEvent
in interfaceEventListener
- Parameters:
event
- The Event to handle.
-