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

Fix logic error in reaction role error handling

This commit is contained in:
Dragory 2020-09-13 21:41:43 +03:00
parent f9d907a02c
commit 85480f45ac

View file

@ -73,7 +73,7 @@ export async function applyReactionRoleReactionsToMessage(
await targetMessage.addReaction(emoji);
await sleep(1250); // Make sure we don't hit rate limits
} catch (e) {
if (isDiscordRESTError(e) && e.code === 10014) {
if (isDiscordRESTError(e)) {
if (e.code === 10014) {
pluginData.state.reactionRoles.removeFromMessage(messageId, rr.emoji);
errors.push(`Unknown emoji: ${emoji}`);