Browse Source

Fix reaction regression

ghorsington 5 years ago
parent
commit
43aecc81b6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/commands/react.ts

+ 2 - 2
src/commands/react.ts

@@ -139,8 +139,8 @@ export default {
         if(randomEmotes.length == 0)
             return false;
 
-        for(let emote in randomEmotes)
-            await msg.react(client.emojis.find(e => e.id == emote));
+        for(let emote of randomEmotes)
+            await msg.react(client.emojis.find(e => e.id == emote.reactionId));
 
         return true;
     },