3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-14 21:31:50 +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 c573ec5d5f
commit cd55fcd662
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

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}`);