Class BasicTextChatMessage

    • Constructor Detail

      • BasicTextChatMessage

        public BasicTextChatMessage​(ChatSender sender,
                                    java.lang.String message)
    • Method Detail

      • delete

        public void delete()
                    throws java.lang.UnsupportedOperationException
        Description copied from interface: ChatMessage
        Deletes the message.
        Throws:
        java.lang.UnsupportedOperationException
      • edit

        public ChatMessage edit​(java.util.function.Consumer<ChatMessage.Builder> function)
                         throws java.lang.UnsupportedOperationException
        Description copied from interface: ChatMessage
        Edits the message to match the provided message.
        Parameters:
        function - function to express a new message.
        Returns:
        edited message.
        Throws:
        java.lang.UnsupportedOperationException
      • wasEdited

        public boolean wasEdited()
        Description copied from interface: ChatMessage
        Finds if the message was edited.
        Returns:
        true if the message was edited, false otherwise.
      • getEditedDate

        public java.util.Date getEditedDate()
        Description copied from interface: ChatMessage
        Gets the time at which the message was edited.
        Returns:
        edited date.