mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Catch Too Many Reactions error (#326)
Catches Maximum number of reactions reached (20) error by checking for error code 30010 Co-authored-by: Almeida <github@almeidx.dev>
This commit is contained in:
parent
1cb8431a02
commit
d51461ee3a
1 changed files with 6 additions and 0 deletions
|
@ -86,6 +86,12 @@ export async function applyReactionRoleReactionsToMessage(
|
|||
body: `Error ${e.code} while applying reaction role reactions to ${channelId}/${messageId}: ${e.message}`,
|
||||
});
|
||||
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
Reference in a new issue