Interface UncachedMessageAttachableListenerManager

    • Method Detail

      • addReactionRemoveAllListener

        ListenerManager<ReactionRemoveAllListener> addReactionRemoveAllListener​(long messageId,
                                                                                ReactionRemoveAllListener listener)
        Adds a ReactionRemoveAllListener.
        Parameters:
        listener - The listener to add.
        messageId - The id of the message which should be listened to.
        Returns:
        The manager of the listener.
      • getReactionRemoveAllListeners

        List<ReactionRemoveAllListener> getReactionRemoveAllListeners​(long messageId)
        Gets a list with all registered ReactionRemoveAllListeners.
        Parameters:
        messageId - The id of the message.
        Returns:
        A list with all registered ReactionRemoveAllListeners.
      • getReactionRemoveAllListeners

        List<ReactionRemoveAllListener> getReactionRemoveAllListeners​(String messageId)
        Gets a list with all registered ReactionRemoveAllListeners.
        Parameters:
        messageId - The id of the message.
        Returns:
        A list with all registered ReactionRemoveAllListeners.
      • addReactionAddListener

        ListenerManager<ReactionAddListener> addReactionAddListener​(long messageId,
                                                                    ReactionAddListener listener)
        Adds a ReactionAddListener.
        Parameters:
        listener - The listener to add.
        messageId - The id of the message which should be listened to.
        Returns:
        The manager of the listener.
      • getReactionAddListeners

        List<ReactionAddListener> getReactionAddListeners​(long messageId)
        Gets a list with all registered ReactionAddListeners.
        Parameters:
        messageId - The id of the message.
        Returns:
        A list with all registered ReactionAddListeners.
      • getReactionAddListeners

        List<ReactionAddListener> getReactionAddListeners​(String messageId)
        Gets a list with all registered ReactionAddListeners.
        Parameters:
        messageId - The id of the message.
        Returns:
        A list with all registered ReactionAddListeners.
      • addReactionRemoveListener

        ListenerManager<ReactionRemoveListener> addReactionRemoveListener​(long messageId,
                                                                          ReactionRemoveListener listener)
        Adds a ReactionRemoveListener.
        Parameters:
        listener - The listener to add.
        messageId - The id of the message which should be listened to.
        Returns:
        The manager of the listener.
      • getReactionRemoveListeners

        List<ReactionRemoveListener> getReactionRemoveListeners​(long messageId)
        Gets a list with all registered ReactionRemoveListeners.
        Parameters:
        messageId - The id of the message.
        Returns:
        A list with all registered ReactionRemoveListeners.
      • getReactionRemoveListeners

        List<ReactionRemoveListener> getReactionRemoveListeners​(String messageId)
        Gets a list with all registered ReactionRemoveListeners.
        Parameters:
        messageId - The id of the message.
        Returns:
        A list with all registered ReactionRemoveListeners.
      • addMessageEditListener

        ListenerManager<MessageEditListener> addMessageEditListener​(long messageId,
                                                                    MessageEditListener listener)
        Adds a MessageEditListener.
        Parameters:
        listener - The listener to add.
        messageId - The id of the message which should be listened to.
        Returns:
        The manager of the listener.
      • getMessageEditListeners

        List<MessageEditListener> getMessageEditListeners​(long messageId)
        Gets a list with all registered MessageEditListeners.
        Parameters:
        messageId - The id of the message.
        Returns:
        A list with all registered MessageEditListeners.
      • getMessageEditListeners

        List<MessageEditListener> getMessageEditListeners​(String messageId)
        Gets a list with all registered MessageEditListeners.
        Parameters:
        messageId - The id of the message.
        Returns:
        A list with all registered MessageEditListeners.
      • addMessageDeleteListener

        ListenerManager<MessageDeleteListener> addMessageDeleteListener​(long messageId,
                                                                        MessageDeleteListener listener)
        Adds a MessageDeleteListener.
        Parameters:
        listener - The listener to add.
        messageId - The id of the message which should be listened to.
        Returns:
        The manager of the listener.
      • getMessageDeleteListeners

        List<MessageDeleteListener> getMessageDeleteListeners​(long messageId)
        Gets a list with all registered MessageDeleteListeners.
        Parameters:
        messageId - The id of the message.
        Returns:
        A list with all registered MessageDeleteListeners.
      • getMessageDeleteListeners

        List<MessageDeleteListener> getMessageDeleteListeners​(String messageId)
        Gets a list with all registered MessageDeleteListeners.
        Parameters:
        messageId - The id of the message.
        Returns:
        A list with all registered MessageDeleteListeners.
      • addMessageAttachableListener

        <T extends MessageAttachableListener & ObjectAttachableListenerCollection<ListenerManager<T>> addMessageAttachableListener​(long messageId,
                                                                                                                                     T listener)
        Adds a listener that implements one or more MessageAttachableListeners to the message with the given id. 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:
        messageId - The id of the message which should be listened to.
        listener - The listener to add.
        Returns:
        The managers for the added listener.
      • addMessageAttachableListener

        <T extends MessageAttachableListener & ObjectAttachableListenerCollection<ListenerManager<T>> addMessageAttachableListener​(String messageId,
                                                                                                                                     T listener)
        Adds a listener that implements one or more MessageAttachableListeners to the message with the given id. 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:
        messageId - The id of the message which should be listened to.
        listener - The listener to add.
        Returns:
        The managers for the added listener.
      • removeMessageAttachableListener

        <T extends MessageAttachableListener & ObjectAttachableListener> void removeMessageAttachableListener​(long messageId,
                                                                                                              T listener)
        Removes a listener that implements one or more MessageAttachableListeners from the message with the given id.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        messageId - The id of the message.
        listener - The listener to remove.
      • removeMessageAttachableListener

        <T extends MessageAttachableListener & ObjectAttachableListener> void removeMessageAttachableListener​(String messageId,
                                                                                                              T listener)
        Removes a listener that implements one or more MessageAttachableListeners from the message with the given id.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        messageId - The id of the message.
        listener - The listener to remove.
      • getMessageAttachableListeners

        <T extends MessageAttachableListener & ObjectAttachableListenerMap<T,List<Class<T>>> getMessageAttachableListeners​(long messageId)
        Gets a map with all registered listeners that implement one or more MessageAttachableListeners and their assigned listener classes they listen to.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        messageId - The id of the message.
        Returns:
        A map with all registered listeners that implement one or more MessageAttachableListeners and their assigned listener classes they listen to.
      • getMessageAttachableListeners

        <T extends MessageAttachableListener & ObjectAttachableListenerMap<T,List<Class<T>>> getMessageAttachableListeners​(String messageId)
        Gets a map with all registered listeners that implement one or more MessageAttachableListeners and their assigned listener classes they listen to.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        messageId - The id of the message.
        Returns:
        A map with all registered listeners that implement one or more MessageAttachableListeners and their assigned listener classes they listen to.
      • removeListener

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

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