3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 02:25:01 +00:00

Catches too many reactions error

Catches Maximum number of reactions reached (20) error by checking for error code 30010
This commit is contained in:
hawkeye7662 2022-03-18 23:53:59 +05:30 committed by GitHub
parent feeb048855
commit 6e681e5667
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,6 +87,12 @@ export async function applyReactionRoleReactionsToMessage(
body: `Error ${e.code} while applying reaction role reactions to ${channelId}/${messageId}: ${e.message}`, body: `Error ${e.code} while applying reaction role reactions to ${channelId}/${messageId}: ${e.message}`,
}); });
break; break;
} else if (e.code === 30010) {
errors.push(`Maximum number of reactions reached (20)`);
logs.logBotAlert({
body: `Error ${e.code} while applying reaction role reactions to ${channelId}/${messageId}: ${e.message}`,
});
break;
} }
} }