From ff647b742d18cb73184dc57643188dee20979819 Mon Sep 17 00:00:00 2001 From: Sugden Date: Thu, 21 Nov 2019 20:51:46 +0000 Subject: [PATCH] fix: await reacts inside try/catch (#13) --- src/listeners/messageInvalid.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/listeners/messageInvalid.js b/src/listeners/messageInvalid.js index 7ea342c..7fd8349 100644 --- a/src/listeners/messageInvalid.js +++ b/src/listeners/messageInvalid.js @@ -35,13 +35,13 @@ class MessageInvalidListener extends Listener { if (!message.guild || message.channel.permissionsFor(this.client.user).has('ADD_REACTIONS')) { try { if (reaction) { - reaction.users.remove(); + await reaction.users.remove(); } if (ok) { - message.react('✔'); + await message.react('✔'); } else { - message.react('✖'); + await message.react('✖'); } } catch (e) { // Ignore.