mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +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 targetMessage.addReaction(emoji);
|
||||||
await sleep(1250); // Make sure we don't hit rate limits
|
await sleep(1250); // Make sure we don't hit rate limits
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (isDiscordRESTError(e) && e.code === 10014) {
|
if (isDiscordRESTError(e)) {
|
||||||
if (e.code === 10014) {
|
if (e.code === 10014) {
|
||||||
pluginData.state.reactionRoles.removeFromMessage(messageId, rr.emoji);
|
pluginData.state.reactionRoles.removeFromMessage(messageId, rr.emoji);
|
||||||
errors.push(`Unknown emoji: ${emoji}`);
|
errors.push(`Unknown emoji: ${emoji}`);
|
||||||
|
|
Loading…
Add table
Reference in a new issue