Migrate Remaining Chat Settings Commands to Helix API (#4040)
This commit is contained in:
@@ -1650,7 +1650,17 @@ void Helix::updateChatSettings(
|
||||
|
||||
switch (result.status())
|
||||
{
|
||||
case 400:
|
||||
case 400: {
|
||||
if (message.contains("must be in the range"))
|
||||
{
|
||||
failureCallback(Error::OutOfRange, message);
|
||||
}
|
||||
else
|
||||
{
|
||||
failureCallback(Error::Forwarded, message);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 409:
|
||||
case 422:
|
||||
case 425: {
|
||||
|
||||
@@ -460,6 +460,8 @@ enum class HelixUpdateChatSettingsError { // update chat settings
|
||||
UserNotAuthorized,
|
||||
Ratelimited,
|
||||
Forbidden,
|
||||
OutOfRange,
|
||||
|
||||
// The error message is forwarded directly from the Twitch API
|
||||
Forwarded,
|
||||
}; // update chat settings
|
||||
|
||||
Reference in New Issue
Block a user