feat: show warning before blocking followed channel (#5615)
This commit is contained in:
@@ -3138,7 +3138,7 @@ void Helix::getUserEmotes(
|
||||
}
|
||||
|
||||
void Helix::getFollowedChannel(
|
||||
QString userID, QString broadcasterID,
|
||||
QString userID, QString broadcasterID, const QObject *caller,
|
||||
ResultCallback<std::optional<HelixFollowedChannel>> successCallback,
|
||||
FailureCallback<QString> failureCallback)
|
||||
{
|
||||
@@ -3147,6 +3147,7 @@ void Helix::getFollowedChannel(
|
||||
{u"user_id"_s, userID},
|
||||
{u"broadcaster_id"_s, broadcasterID},
|
||||
})
|
||||
.caller(caller)
|
||||
.onSuccess([successCallback](auto result) {
|
||||
if (result.status() != 200)
|
||||
{
|
||||
|
||||
@@ -1143,7 +1143,7 @@ public:
|
||||
/// https://dev.twitch.tv/docs/api/reference/#get-followed-channels
|
||||
/// (non paginated)
|
||||
virtual void getFollowedChannel(
|
||||
QString userID, QString broadcasterID,
|
||||
QString userID, QString broadcasterID, const QObject *caller,
|
||||
ResultCallback<std::optional<HelixFollowedChannel>> successCallback,
|
||||
FailureCallback<QString> failureCallback) = 0;
|
||||
|
||||
@@ -1486,7 +1486,7 @@ public:
|
||||
/// https://dev.twitch.tv/docs/api/reference/#get-followed-channels
|
||||
/// (non paginated)
|
||||
void getFollowedChannel(
|
||||
QString userID, QString broadcasterID,
|
||||
QString userID, QString broadcasterID, const QObject *caller,
|
||||
ResultCallback<std::optional<HelixFollowedChannel>> successCallback,
|
||||
FailureCallback<QString> failureCallback) final;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user