From 775b063c42b1f69d71e18c271d64f32beb13908b Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Fri, 22 Oct 2021 10:34:48 +0300 Subject: [PATCH] bugfix --- structure/ChannelHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structure/ChannelHandler.js b/structure/ChannelHandler.js index 546e7db..e076de5 100644 --- a/structure/ChannelHandler.js +++ b/structure/ChannelHandler.js @@ -164,7 +164,7 @@ class ChannelHandler { for (let i = context < len ? context : len; i > 0; i--) { const entry = history[len - i]; if (!entry) continue; - if (entry.readState === 'read') continue; + if ([ 'read', 'unread' ].includes(entry.readState)) continue; const user = await this.client.resolveUser(entry.author).catch(this.client.logger.error.bind(this.client.logger)); const mem = await this.modmail.getMember(user.id).catch(this.client.logger.error.bind(this.client.logger));