Interface ServerTextChannelAttachableListenerManager

    • Method Detail

      • getWebhooksUpdateListeners

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

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

        java.util.List<ServerTextChannelChangeTopicListener> getServerTextChannelChangeTopicListeners()
        Gets a list with all registered ServerTextChannelChangeTopicListeners.
        Returns:
        A list with all registered ServerTextChannelChangeTopicListeners.
      • getServerTextChannelChangeDefaultAutoArchiveDurationListeners

        java.util.List<ServerTextChannelChangeDefaultAutoArchiveDurationListener> getServerTextChannelChangeDefaultAutoArchiveDurationListeners()
        Gets a list with all registered ServerTextChannelChangeDefaultAutoArchiveDurationListeners.
        Returns:
        A list with all registered ServerTextChannelChangeDefaultAutoArchiveDurationListeners.
      • getServerChannelChangeNsfwFlagListeners

        java.util.List<ServerChannelChangeNsfwFlagListener> getServerChannelChangeNsfwFlagListeners()
        Gets a list with all registered ServerChannelChangeNsfwFlagListeners.
        Returns:
        A list with all registered ServerChannelChangeNsfwFlagListeners.
      • addServerTextChannelAttachableListener

        <T extends ServerTextChannelAttachableListener & ObjectAttachableListener> java.util.Collection<ListenerManager<? extends ServerTextChannelAttachableListener>> addServerTextChannelAttachableListener​(T listener)
        Adds a listener that implements one or more ServerTextChannelAttachableListeners. 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.
      • removeServerTextChannelAttachableListener

        <T extends ServerTextChannelAttachableListener & ObjectAttachableListener> void removeServerTextChannelAttachableListener​(T listener)
        Removes a listener that implements one or more ServerTextChannelAttachableListeners.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listener - The listener to remove.
      • getServerTextChannelAttachableListeners

        <T extends ServerTextChannelAttachableListener & ObjectAttachableListener> java.util.Map<T,​java.util.List<java.lang.Class<T>>> getServerTextChannelAttachableListeners()
        Gets a map with all registered listeners that implement one or more ServerTextChannelAttachableListeners 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 ServerTextChannelAttachableListeners and their assigned listener classes they listen to.
      • removeListener

        <T extends ServerTextChannelAttachableListener & ObjectAttachableListener> void removeListener​(java.lang.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.