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:
parent
feeb048855
commit
6e681e5667
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue