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 = {