Interface GloballyAttachableListenerManager

    • Method Detail

      • getUserChangeSelfMutedListeners

        default List<UserChangeSelfMutedListener> getUserChangeSelfMutedListeners​()
        Gets a list with all registered UserChangeSelfMutedListeners.
        Returns:
        A list with all registered UserChangeSelfMutedListeners.
      • getUserChangeSelfDeafenedListeners

        default List<UserChangeSelfDeafenedListener> getUserChangeSelfDeafenedListeners​()
        Gets a list with all registered UserChangeSelfDeafenedListeners.
        Returns:
        A list with all registered UserChangeSelfDeafenedListeners.
      • getUserChangeDiscriminatorListeners

        default List<UserChangeDiscriminatorListener> getUserChangeDiscriminatorListeners​()
        Gets a list with all registered UserChangeDiscriminatorListeners.
        Returns:
        A list with all registered UserChangeDiscriminatorListeners.
      • getUserChangeActivityListeners

        default List<UserChangeActivityListener> getUserChangeActivityListeners​()
        Gets a list with all registered UserChangeActivityListeners.
        Returns:
        A list with all registered UserChangeActivityListeners.
      • getUserChangeMutedListeners

        default List<UserChangeMutedListener> getUserChangeMutedListeners​()
        Gets a list with all registered UserChangeMutedListeners.
        Returns:
        A list with all registered UserChangeMutedListeners.
      • getUserChangeDeafenedListeners

        default List<UserChangeDeafenedListener> getUserChangeDeafenedListeners​()
        Gets a list with all registered UserChangeDeafenedListeners.
        Returns:
        A list with all registered UserChangeDeafenedListeners.
      • getUserStartTypingListeners

        default List<UserStartTypingListener> getUserStartTypingListeners​()
        Gets a list with all registered UserStartTypingListeners.
        Returns:
        A list with all registered UserStartTypingListeners.
      • getUserChangeNicknameListeners

        default List<UserChangeNicknameListener> getUserChangeNicknameListeners​()
        Gets a list with all registered UserChangeNicknameListeners.
        Returns:
        A list with all registered UserChangeNicknameListeners.
      • getUserChangeAvatarListeners

        default List<UserChangeAvatarListener> getUserChangeAvatarListeners​()
        Gets a list with all registered UserChangeAvatarListeners.
        Returns:
        A list with all registered UserChangeAvatarListeners.
      • getUserChangeStatusListeners

        default List<UserChangeStatusListener> getUserChangeStatusListeners​()
        Gets a list with all registered UserChangeStatusListeners.
        Returns:
        A list with all registered UserChangeStatusListeners.
      • getUserChangeNameListeners

        default List<UserChangeNameListener> getUserChangeNameListeners​()
        Gets a list with all registered UserChangeNameListeners.
        Returns:
        A list with all registered UserChangeNameListeners.
      • getResumeListeners

        default List<ResumeListener> getResumeListeners​()
        Gets a list with all registered ResumeListeners.
        Returns:
        A list with all registered ResumeListeners.
      • getLostConnectionListeners

        default List<LostConnectionListener> getLostConnectionListeners​()
        Gets a list with all registered LostConnectionListeners.
        Returns:
        A list with all registered LostConnectionListeners.
      • getReconnectListeners

        default List<ReconnectListener> getReconnectListeners​()
        Gets a list with all registered ReconnectListeners.
        Returns:
        A list with all registered ReconnectListeners.
      • getGroupChannelCreateListeners

        default List<GroupChannelCreateListener> getGroupChannelCreateListeners​()
        Gets a list with all registered GroupChannelCreateListeners.
        Returns:
        A list with all registered GroupChannelCreateListeners.
      • getGroupChannelChangeNameListeners

        default List<GroupChannelChangeNameListener> getGroupChannelChangeNameListeners​()
        Gets a list with all registered GroupChannelChangeNameListeners.
        Returns:
        A list with all registered GroupChannelChangeNameListeners.
      • getGroupChannelDeleteListeners

        default List<GroupChannelDeleteListener> getGroupChannelDeleteListeners​()
        Gets a list with all registered GroupChannelDeleteListeners.
        Returns:
        A list with all registered GroupChannelDeleteListeners.
      • getPrivateChannelCreateListeners

        default List<PrivateChannelCreateListener> getPrivateChannelCreateListeners​()
        Gets a list with all registered PrivateChannelCreateListeners.
        Returns:
        A list with all registered PrivateChannelCreateListeners.
      • getPrivateChannelDeleteListeners

        default List<PrivateChannelDeleteListener> getPrivateChannelDeleteListeners​()
        Gets a list with all registered PrivateChannelDeleteListeners.
        Returns:
        A list with all registered PrivateChannelDeleteListeners.
      • getServerChannelChangePositionListeners

        default List<ServerChannelChangePositionListener> getServerChannelChangePositionListeners​()
        Gets a list with all registered ServerChannelChangePositionListeners.
        Returns:
        A list with all registered ServerChannelChangePositionListeners.
      • getServerChannelChangeOverwrittenPermissionsListeners

        default List<ServerChannelChangeOverwrittenPermissionsListener> getServerChannelChangeOverwrittenPermissionsListeners​()
        Gets a list with all registered ServerChannelChangeOverwrittenPermissionsListeners.
        Returns:
        A list with all registered ServerChannelChangeOverwrittenPermissionsListeners.
      • getServerChannelDeleteListeners

        default List<ServerChannelDeleteListener> getServerChannelDeleteListeners​()
        Gets a list with all registered ServerChannelDeleteListeners.
        Returns:
        A list with all registered ServerChannelDeleteListeners.
      • getServerChannelCreateListeners

        default List<ServerChannelCreateListener> getServerChannelCreateListeners​()
        Gets a list with all registered ServerChannelCreateListeners.
        Returns:
        A list with all registered ServerChannelCreateListeners.
      • getWebhooksUpdateListeners

        default List<WebhooksUpdateListener> getWebhooksUpdateListeners​()
        Gets a list with all registered WebhooksUpdateListeners.
        Returns:
        A list with all registered WebhooksUpdateListeners.
      • getServerTextChannelChangeSlowmodeListeners

        default List<ServerTextChannelChangeSlowmodeListener> getServerTextChannelChangeSlowmodeListeners​()
        Gets a list with all registered ServerTextChannelChangeSlowmodeListeners.
        Returns:
        A list with all registered ServerTextChannelChangeSlowmodeListeners.
      • getServerTextChannelChangeTopicListeners

        default List<ServerTextChannelChangeTopicListener> getServerTextChannelChangeTopicListeners​()
        Gets a list with all registered ServerTextChannelChangeTopicListeners.
        Returns:
        A list with all registered ServerTextChannelChangeTopicListeners.
      • getServerChannelChangeNsfwFlagListeners

        default List<ServerChannelChangeNsfwFlagListener> getServerChannelChangeNsfwFlagListeners​()
        Gets a list with all registered ServerChannelChangeNsfwFlagListeners.
        Returns:
        A list with all registered ServerChannelChangeNsfwFlagListeners.
      • getServerVoiceChannelMemberLeaveListeners

        default List<ServerVoiceChannelMemberLeaveListener> getServerVoiceChannelMemberLeaveListeners​()
        Gets a list with all registered ServerVoiceChannelMemberLeaveListeners.
        Returns:
        A list with all registered ServerVoiceChannelMemberLeaveListeners.
      • getServerVoiceChannelChangeUserLimitListeners

        default List<ServerVoiceChannelChangeUserLimitListener> getServerVoiceChannelChangeUserLimitListeners​()
        Gets a list with all registered ServerVoiceChannelChangeUserLimitListeners.
        Returns:
        A list with all registered ServerVoiceChannelChangeUserLimitListeners.
      • getServerVoiceChannelChangeBitrateListeners

        default List<ServerVoiceChannelChangeBitrateListener> getServerVoiceChannelChangeBitrateListeners​()
        Gets a list with all registered ServerVoiceChannelChangeBitrateListeners.
        Returns:
        A list with all registered ServerVoiceChannelChangeBitrateListeners.
      • getServerVoiceChannelMemberJoinListeners

        default List<ServerVoiceChannelMemberJoinListener> getServerVoiceChannelMemberJoinListeners​()
        Gets a list with all registered ServerVoiceChannelMemberJoinListeners.
        Returns:
        A list with all registered ServerVoiceChannelMemberJoinListeners.
      • getServerChannelChangeNameListeners

        default List<ServerChannelChangeNameListener> getServerChannelChangeNameListeners​()
        Gets a list with all registered ServerChannelChangeNameListeners.
        Returns:
        A list with all registered ServerChannelChangeNameListeners.
      • getReactionRemoveAllListeners

        default List<ReactionRemoveAllListener> getReactionRemoveAllListeners​()
        Gets a list with all registered ReactionRemoveAllListeners.
        Returns:
        A list with all registered ReactionRemoveAllListeners.
      • getReactionAddListeners

        default List<ReactionAddListener> getReactionAddListeners​()
        Gets a list with all registered ReactionAddListeners.
        Returns:
        A list with all registered ReactionAddListeners.
      • getReactionRemoveListeners

        default List<ReactionRemoveListener> getReactionRemoveListeners​()
        Gets a list with all registered ReactionRemoveListeners.
        Returns:
        A list with all registered ReactionRemoveListeners.
      • getMessageEditListeners

        default List<MessageEditListener> getMessageEditListeners​()
        Gets a list with all registered MessageEditListeners.
        Returns:
        A list with all registered MessageEditListeners.
      • getCachedMessageUnpinListeners

        default List<CachedMessageUnpinListener> getCachedMessageUnpinListeners​()
        Gets a list with all registered CachedMessageUnpinListeners.
        Returns:
        A list with all registered CachedMessageUnpinListeners.
      • getChannelPinsUpdateListeners

        default List<ChannelPinsUpdateListener> getChannelPinsUpdateListeners​()
        Gets a list with all registered ChannelPinsUpdateListeners.
        Returns:
        A list with all registered ChannelPinsUpdateListeners.
      • getMessageCreateListeners

        default List<MessageCreateListener> getMessageCreateListeners​()
        Gets a list with all registered MessageCreateListeners.
        Returns:
        A list with all registered MessageCreateListeners.
      • getMessageDeleteListeners

        default List<MessageDeleteListener> getMessageDeleteListeners​()
        Gets a list with all registered MessageDeleteListeners.
        Returns:
        A list with all registered MessageDeleteListeners.
      • getCachedMessagePinListeners

        default List<CachedMessagePinListener> getCachedMessagePinListeners​()
        Gets a list with all registered CachedMessagePinListeners.
        Returns:
        A list with all registered CachedMessagePinListeners.
      • getServerChangeDefaultMessageNotificationLevelListeners

        default List<ServerChangeDefaultMessageNotificationLevelListener> getServerChangeDefaultMessageNotificationLevelListeners​()
        Gets a list with all registered ServerChangeDefaultMessageNotificationLevelListeners.
        Returns:
        A list with all registered ServerChangeDefaultMessageNotificationLevelListeners.
      • getServerChangeSystemChannelListeners

        default List<ServerChangeSystemChannelListener> getServerChangeSystemChannelListeners​()
        Gets a list with all registered ServerChangeSystemChannelListeners.
        Returns:
        A list with all registered ServerChangeSystemChannelListeners.
      • getServerChangeRegionListeners

        default List<ServerChangeRegionListener> getServerChangeRegionListeners​()
        Gets a list with all registered ServerChangeRegionListeners.
        Returns:
        A list with all registered ServerChangeRegionListeners.
      • getServerChangeVerificationLevelListeners

        default List<ServerChangeVerificationLevelListener> getServerChangeVerificationLevelListeners​()
        Gets a list with all registered ServerChangeVerificationLevelListeners.
        Returns:
        A list with all registered ServerChangeVerificationLevelListeners.
      • getRoleChangePositionListeners

        default List<RoleChangePositionListener> getRoleChangePositionListeners​()
        Gets a list with all registered RoleChangePositionListeners.
        Returns:
        A list with all registered RoleChangePositionListeners.
      • getUserRoleAddListeners

        default List<UserRoleAddListener> getUserRoleAddListeners​()
        Gets a list with all registered UserRoleAddListeners.
        Returns:
        A list with all registered UserRoleAddListeners.
      • getRoleChangeMentionableListeners

        default List<RoleChangeMentionableListener> getRoleChangeMentionableListeners​()
        Gets a list with all registered RoleChangeMentionableListeners.
        Returns:
        A list with all registered RoleChangeMentionableListeners.
      • getRoleChangeNameListeners

        default List<RoleChangeNameListener> getRoleChangeNameListeners​()
        Gets a list with all registered RoleChangeNameListeners.
        Returns:
        A list with all registered RoleChangeNameListeners.
      • getRoleChangePermissionsListeners

        default List<RoleChangePermissionsListener> getRoleChangePermissionsListeners​()
        Gets a list with all registered RoleChangePermissionsListeners.
        Returns:
        A list with all registered RoleChangePermissionsListeners.
      • getRoleDeleteListeners

        default List<RoleDeleteListener> getRoleDeleteListeners​()
        Gets a list with all registered RoleDeleteListeners.
        Returns:
        A list with all registered RoleDeleteListeners.
      • getRoleChangeColorListeners

        default List<RoleChangeColorListener> getRoleChangeColorListeners​()
        Gets a list with all registered RoleChangeColorListeners.
        Returns:
        A list with all registered RoleChangeColorListeners.
      • getUserRoleRemoveListeners

        default List<UserRoleRemoveListener> getUserRoleRemoveListeners​()
        Gets a list with all registered UserRoleRemoveListeners.
        Returns:
        A list with all registered UserRoleRemoveListeners.
      • getRoleCreateListeners

        default List<RoleCreateListener> getRoleCreateListeners​()
        Gets a list with all registered RoleCreateListeners.
        Returns:
        A list with all registered RoleCreateListeners.
      • getRoleChangeHoistListeners

        default List<RoleChangeHoistListener> getRoleChangeHoistListeners​()
        Gets a list with all registered RoleChangeHoistListeners.
        Returns:
        A list with all registered RoleChangeHoistListeners.
      • getServerChangeIconListeners

        default List<ServerChangeIconListener> getServerChangeIconListeners​()
        Gets a list with all registered ServerChangeIconListeners.
        Returns:
        A list with all registered ServerChangeIconListeners.
      • getKnownCustomEmojiChangeNameListeners

        default List<KnownCustomEmojiChangeNameListener> getKnownCustomEmojiChangeNameListeners​()
        Gets a list with all registered KnownCustomEmojiChangeNameListeners.
        Returns:
        A list with all registered KnownCustomEmojiChangeNameListeners.
      • getKnownCustomEmojiCreateListeners

        default List<KnownCustomEmojiCreateListener> getKnownCustomEmojiCreateListeners​()
        Gets a list with all registered KnownCustomEmojiCreateListeners.
        Returns:
        A list with all registered KnownCustomEmojiCreateListeners.
      • getKnownCustomEmojiDeleteListeners

        default List<KnownCustomEmojiDeleteListener> getKnownCustomEmojiDeleteListeners​()
        Gets a list with all registered KnownCustomEmojiDeleteListeners.
        Returns:
        A list with all registered KnownCustomEmojiDeleteListeners.
      • getKnownCustomEmojiChangeWhitelistedRolesListeners

        default List<KnownCustomEmojiChangeWhitelistedRolesListener> getKnownCustomEmojiChangeWhitelistedRolesListeners​()
        Gets a list with all registered KnownCustomEmojiChangeWhitelistedRolesListeners.
        Returns:
        A list with all registered KnownCustomEmojiChangeWhitelistedRolesListeners.
      • getServerJoinListeners

        default List<ServerJoinListener> getServerJoinListeners​()
        Gets a list with all registered ServerJoinListeners.
        Returns:
        A list with all registered ServerJoinListeners.
      • getServerChangeNameListeners

        default List<ServerChangeNameListener> getServerChangeNameListeners​()
        Gets a list with all registered ServerChangeNameListeners.
        Returns:
        A list with all registered ServerChangeNameListeners.
      • getServerMemberLeaveListeners

        default List<ServerMemberLeaveListener> getServerMemberLeaveListeners​()
        Gets a list with all registered ServerMemberLeaveListeners.
        Returns:
        A list with all registered ServerMemberLeaveListeners.
      • getServerMemberBanListeners

        default List<ServerMemberBanListener> getServerMemberBanListeners​()
        Gets a list with all registered ServerMemberBanListeners.
        Returns:
        A list with all registered ServerMemberBanListeners.
      • getServerMemberUnbanListeners

        default List<ServerMemberUnbanListener> getServerMemberUnbanListeners​()
        Gets a list with all registered ServerMemberUnbanListeners.
        Returns:
        A list with all registered ServerMemberUnbanListeners.
      • getServerMemberJoinListeners

        default List<ServerMemberJoinListener> getServerMemberJoinListeners​()
        Gets a list with all registered ServerMemberJoinListeners.
        Returns:
        A list with all registered ServerMemberJoinListeners.
      • getServerChangeAfkTimeoutListeners

        default List<ServerChangeAfkTimeoutListener> getServerChangeAfkTimeoutListeners​()
        Gets a list with all registered ServerChangeAfkTimeoutListeners.
        Returns:
        A list with all registered ServerChangeAfkTimeoutListeners.
      • getServerChangeExplicitContentFilterLevelListeners

        default List<ServerChangeExplicitContentFilterLevelListener> getServerChangeExplicitContentFilterLevelListeners​()
        Gets a list with all registered ServerChangeExplicitContentFilterLevelListeners.
        Returns:
        A list with all registered ServerChangeExplicitContentFilterLevelListeners.
      • getServerChangeSplashListeners

        default List<ServerChangeSplashListener> getServerChangeSplashListeners​()
        Gets a list with all registered ServerChangeSplashListeners.
        Returns:
        A list with all registered ServerChangeSplashListeners.
      • getServerChangeMultiFactorAuthenticationLevelListeners

        default List<ServerChangeMultiFactorAuthenticationLevelListener> getServerChangeMultiFactorAuthenticationLevelListeners​()
        Gets a list with all registered ServerChangeMultiFactorAuthenticationLevelListeners.
        Returns:
        A list with all registered ServerChangeMultiFactorAuthenticationLevelListeners.
      • getServerChangeAfkChannelListeners

        default List<ServerChangeAfkChannelListener> getServerChangeAfkChannelListeners​()
        Gets a list with all registered ServerChangeAfkChannelListeners.
        Returns:
        A list with all registered ServerChangeAfkChannelListeners.
      • getServerBecomesUnavailableListeners

        default List<ServerBecomesUnavailableListener> getServerBecomesUnavailableListeners​()
        Gets a list with all registered ServerBecomesUnavailableListeners.
        Returns:
        A list with all registered ServerBecomesUnavailableListeners.
      • getServerChangeOwnerListeners

        default List<ServerChangeOwnerListener> getServerChangeOwnerListeners​()
        Gets a list with all registered ServerChangeOwnerListeners.
        Returns:
        A list with all registered ServerChangeOwnerListeners.
      • getServerBecomesAvailableListeners

        default List<ServerBecomesAvailableListener> getServerBecomesAvailableListeners​()
        Gets a list with all registered ServerBecomesAvailableListeners.
        Returns:
        A list with all registered ServerBecomesAvailableListeners.
      • getServerLeaveListeners

        default List<ServerLeaveListener> getServerLeaveListeners​()
        Gets a list with all registered ServerLeaveListeners.
        Returns:
        A list with all registered ServerLeaveListeners.
      • addListener

        <T extends GloballyAttachableListenerListenerManager<T> addListener​(Class<T> listenerClass,
                                                                              T listener)
        Adds a GloballyAttachableListener. Adding a listener multiple times will only add it once and return the same listener manager on each invocation. The order of invocation is according to first addition.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listenerClass - The listener class.
        listener - The listener to add.
        Returns:
        The manager for the added listener.
      • addListener

        Collection<ListenerManager<? extends GloballyAttachableListener>> addListener​(GloballyAttachableListener listener)
        Adds a listener that implements one or more GloballyAttachableListeners. Adding a listener multiple times will only add it once and return the same listener managers on each invocation. The order of invocation is according to first addition.
        Parameters:
        listener - The listener to add.
        Returns:
        The managers for the added listener.
      • removeListener

        void removeListener​(GloballyAttachableListener listener)
        Removes a listener that implements one or more GloballyAttachableListeners.
        Parameters:
        listener - The listener to remove.
      • removeListener

        <T extends GloballyAttachableListener> void removeListener​(Class<T> listenerClass,
                                                                   T listener)
        Removes a GloballyAttachableListener.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listenerClass - The listener class.
        listener - The listener to remove.
      • getListeners

        <T extends GloballyAttachableListenerMap<T,List<Class<T>>> getListeners​()
        Gets a map with all registered listeners that implement one or more GloballyAttachableListeners and their assigned listener classes they listen to.
        Type Parameters:
        T - The type of the listeners.
        Returns:
        A map with all registered listeners that implement one or more GloballyAttachableListeners and their assigned listener classes they listen to.
      • getListeners

        <T extends GloballyAttachableListenerList<T> getListeners​(Class<T> listenerClass)
        Gets all globally attachable listeners of the given class.
        Type Parameters:
        T - The class of the listener.
        Parameters:
        listenerClass - The class of the listener.
        Returns:
        A list with all listeners of the given type.