瀏覽代碼

Fix reaction regression

ghorsington 5 年之前
父節點
當前提交
43aecc81b6
共有 1 個文件被更改,包括 2 次插入2 次删除
  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;
     },