diff --git a/src/data/Thread.js b/src/data/Thread.js index 4d91564..5f4263b 100644 --- a/src/data/Thread.js +++ b/src/data/Thread.js @@ -325,7 +325,7 @@ class Thread { } if (config.reactOnSeen) { - await msg.addReaction(config.reactOnSeenEmoji); + await msg.addReaction(config.reactOnSeenEmoji).catch(utils.noop); } // Interrupt scheduled closing, if in progress diff --git a/src/utils.js b/src/utils.js index 791ca67..8c993b2 100644 --- a/src/utils.js +++ b/src/utils.js @@ -310,13 +310,12 @@ function disableCodeBlocks(str) { return str.replace(/`/g, "`\u200b"); } -/** - * - */ function readMultilineConfigValue(str) { return Array.isArray(str) ? str.join("\n") : str; } +function noop() {} + module.exports = { BotError, @@ -355,4 +354,6 @@ module.exports = { disableCodeBlocks, readMultilineConfigValue, + + noop, };