Interface TextChannelAttachableListenerManager

    • Method Detail

      • getUserStartTypingListeners

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

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

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

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

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

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

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

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

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

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

        <T extends TextChannelAttachableListener & ObjectAttachableListenerCollection<ListenerManager<? extends TextChannelAttachableListener>> addTextChannelAttachableListener​(T listener)
        Adds a listener that implements one or more TextChannelAttachableListeners. 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.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listener - The listener to add.
        Returns:
        The managers for the added listener.
      • removeTextChannelAttachableListener

        <T extends TextChannelAttachableListener & ObjectAttachableListener> void removeTextChannelAttachableListener​(T listener)
        Removes a listener that implements one or more TextChannelAttachableListeners.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listener - The listener to remove.
      • getTextChannelAttachableListeners

        <T extends TextChannelAttachableListener & ObjectAttachableListenerMap<T,List<Class<T>>> getTextChannelAttachableListeners​()
        Gets a map with all registered listeners that implement one or more TextChannelAttachableListeners 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 TextChannelAttachableListeners and their assigned listener classes they listen to.
      • removeListener

        <T extends TextChannelAttachableListener & ObjectAttachableListener> void removeListener​(Class<T> listenerClass,
                                                                                                 T listener)
        Removes a listener from this object.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listenerClass - The listener class.
        listener - The listener to remove.