Interface RoleAttachableListenerManager

  • All Known Subinterfaces:
    Role


    @Generated("listener-manager-generation.gradle")
    public interface RoleAttachableListenerManager
    This class can be used to add and retrieve RoleAttachableListeners.
    • Method Detail

      • getServerChannelChangeOverwrittenPermissionsListeners

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

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

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

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

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

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

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

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

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

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

        <T extends RoleAttachableListener & ObjectAttachableListenerCollection<ListenerManager<T>> addRoleAttachableListener​(T listener)
        Adds a listener that implements one or more RoleAttachableListeners. 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.
      • removeRoleAttachableListener

        <T extends RoleAttachableListener & ObjectAttachableListener> void removeRoleAttachableListener​(T listener)
        Removes a listener that implements one or more RoleAttachableListeners.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listener - The listener to remove.
      • getRoleAttachableListeners

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

        <T extends RoleAttachableListener & 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.