Forráskód Böngészése

Fix reactions on mention

ghorsington 5 éve
szülő
commit
4721f1d5ea
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      bot/src/commands/react.ts

+ 3 - 3
bot/src/commands/react.ts

@@ -150,16 +150,16 @@ export default {
         let repo = getRepository(KnownUser);
 
         let knownUser = await repo.findOne({ 
-            select: [ "mentionReactionType" ],
+            select: [ "replyReactionType" ],
             where: [{
                 userID: msg.author.id
             }]
         });
 
         if(knownUser){
-            if(knownUser.mentionReactionType == ReactionType.NONE)
+            if(knownUser.replyReactionType == ReactionType.NONE)
                 return false;
-            emoteType = knownUser.mentionReactionType;
+            emoteType = knownUser.replyReactionType;
         }
 
         let emotes = await getRandomEmotes([ emoteType ], 1);