Explorar o código

Fix message id search

ghorsington %!s(int64=5) %!d(string=hai) anos
pai
achega
ae48d46539
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      commands/rss_checker.js

+ 1 - 1
commands/rss_checker.js

@@ -86,7 +86,7 @@ async function checkFeeds() {
 function initPendingReactors() {
     let verifyChannel = client.channels.get(verifyChannelID);
     db.get("newsCache").forOwn(async i => {
-        let m = await tryFetchMessage(verifyChannel, i.verifyChannelID);
+        let m = await tryFetchMessage(verifyChannel, i.verifyMessageId);
         let collector = m.createReactionCollector(isVerifyReaction, { maxEmojis: 1 });
         collector.on("collect", collectReaction)
         reactionCollectors[m.id] = collector;