Interface UserAttachableListenerManager

  • All Known Subinterfaces:
    User


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

      • getUserChangeSelfMutedListeners

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        List<ServerVoiceChannelMemberJoinListener> getServerVoiceChannelMemberJoinListeners​()
        Gets a list with all registered ServerVoiceChannelMemberJoinListeners.
        Returns:
        A list with all registered ServerVoiceChannelMemberJoinListeners.
      • 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.
      • getMessageCreateListeners

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

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

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

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

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

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

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

        <T extends UserAttachableListener & ObjectAttachableListenerCollection<ListenerManager<T>> addUserAttachableListener​(T listener)
        Adds a listener that implements one or more UserAttachableListeners. 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.
      • removeUserAttachableListener

        <T extends UserAttachableListener & ObjectAttachableListener> void removeUserAttachableListener​(T listener)
        Removes a listener that implements one or more UserAttachableListeners.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listener - The listener to remove.
      • getUserAttachableListeners

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

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