feat: Send messages using Helix API (#5200)

This commit is contained in:
nerix
2024-02-25 14:45:55 +01:00
committed by GitHub
parent 1e2c943ae9
commit 0cfd25ce8e
8 changed files with 306 additions and 20 deletions
+6 -5
View File
@@ -101,12 +101,13 @@ protected:
bool hasSeparateWriteConnection() const override;
private:
void onMessageSendRequested(TwitchChannel *channel, const QString &message,
bool &sent);
void onReplySendRequested(TwitchChannel *channel, const QString &message,
const QString &replyId, bool &sent);
void onMessageSendRequested(const std::shared_ptr<TwitchChannel> &channel,
const QString &message, bool &sent);
void onReplySendRequested(const std::shared_ptr<TwitchChannel> &channel,
const QString &message, const QString &replyId,
bool &sent);
bool prepareToSend(TwitchChannel *channel);
bool prepareToSend(const std::shared_ptr<TwitchChannel> &channel);
std::mutex lastMessageMutex_;
std::queue<std::chrono::steady_clock::time_point> lastMessagePleb_;