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:
parent
c573ec5d5f
commit
cd55fcd662
1 changed files with 1 additions and 1 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Add table
Reference in a new issue