From 41581031b9a66a18caa015ddda92d520d9606dbd Mon Sep 17 00:00:00 2001 From: Felanbird <41973452+Felanbird@users.noreply.github.com> Date: Thu, 6 Oct 2022 14:30:40 -0400 Subject: [PATCH] Add missing 403 handling for /unban (#4050) --- CHANGELOG.md | 2 +- src/providers/twitch/api/Helix.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1516dca46..2576d254a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,7 +50,7 @@ - Minor: Migrated /vip command to Helix API. (#4010) - Minor: Migrated /unvip command to Helix API. (#4025) - Minor: Migrated /untimeout to Helix API. (#4026) -- Minor: Migrated /unban to Helix API. (#4026) +- Minor: Migrated /unban to Helix API. (#4026, #4050) - Minor: Migrated /subscribers to Helix API. (#4040) - Minor: Migrated /subscribersoff to Helix API. (#4040) - Minor: Migrated /slow to Helix API. (#4040) diff --git a/src/providers/twitch/api/Helix.cpp b/src/providers/twitch/api/Helix.cpp index 44fb8d844..959c482f3 100644 --- a/src/providers/twitch/api/Helix.cpp +++ b/src/providers/twitch/api/Helix.cpp @@ -1419,6 +1419,11 @@ void Helix::unbanUser( } break; + case 403: { + failureCallback(Error::UserNotAuthorized, message); + } + break; + case 429: { failureCallback(Error::Ratelimited, message); }