Migrate /delete command to Helix API (#3999)

This commit is contained in:
Aiden
2022-09-19 23:26:48 +01:00
committed by GitHub
parent 6e7b4d8ec7
commit 838e156a04
3 changed files with 47 additions and 39 deletions
+7
View File
@@ -887,6 +887,13 @@ void Helix::deleteChatMessages(
}
break;
case 400: {
// These errors are generally well formatted, so we just forward them.
// This is currently undocumented behaviour, see: https://github.com/twitchdev/issues/issues/660
failureCallback(Error::Forwarded, message);
}
break;
case 403: {
// 403 endpoint means the user does not have permission to perform this action in that channel
// Most likely to missing moderator permissions