Browse Source

Fix reactions on mention

ghorsington 5 năm trước cách đây
mục cha
commit
4721f1d5ea
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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);