feat: add initial experimental Twitch Eventsub support (#5837)

Co-authored-by: nerix <nerixdev@outlook.de>
This commit is contained in:
pajlada
2025-02-02 17:03:24 +01:00
committed by GitHub
parent f9f7d47b43
commit 0f8a29fdb9
130 changed files with 19656 additions and 8 deletions
+16
View File
@@ -918,6 +918,22 @@ MentionElement::MentionElement(const QString &displayName, QString loginName_,
{
}
template <typename>
MentionElement::MentionElement(const QString &displayName, QString loginName_,
MessageColor fallbackColor_, QColor userColor_)
: TextElement(displayName,
{MessageElementFlag::Text, MessageElementFlag::Mention})
, fallbackColor(fallbackColor_)
, userColor(userColor_.isValid() ? userColor_ : fallbackColor_)
, userLoginName(std::move(loginName_))
{
}
template MentionElement::MentionElement(const QString &displayName,
QString loginName_,
MessageColor fallbackColor_,
QColor userColor_);
void MentionElement::addToContainer(MessageLayoutContainer &container,
const MessageLayoutContext &ctx)
{