#pragma once #include "messages/message.hpp" #include #include namespace chatterino { namespace messages { class MessageBuilder { public: MessageBuilder(); SharedMessage build(); void appendWord(const Word &word); void appendTimestamp(); void appendTimestamp(std::time_t time); void setHighlight(const bool &value); QString matchLink(const QString &string); QRegularExpression linkRegex; QString originalMessage; private: std::vector _words; bool highlight = false; std::chrono::time_point _parseTime; }; } // namespace messages } // namespace chatterino