From b0ba34b1ac41978f4d4692111ce904ef8ed7e87a Mon Sep 17 00:00:00 2001 From: Navy Date: Sat, 19 Jun 2021 23:21:29 +0300 Subject: [PATCH] no history response --- structure/commands/Logs.js | 1 + 1 file changed, 1 insertion(+) diff --git a/structure/commands/Logs.js b/structure/commands/Logs.js index d4e55c4..00765d7 100644 --- a/structure/commands/Logs.js +++ b/structure/commands/Logs.js @@ -26,6 +26,7 @@ class Logs extends Command { const { member, channel } = message; const history = await this.client.modmail.loadHistory(user.id); + if (!history.length) return 'Not found in modmail DB'; const page = this.paginate([...history].filter((e) => !e.markread).reverse(), pageNr, 10); const embed = {