no history response

This commit is contained in:
Erik 2021-06-19 23:21:29 +03:00
parent ffd77d787a
commit b0ba34b1ac
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16

View File

@ -26,6 +26,7 @@ class Logs extends Command {
const { member, channel } = message; const { member, channel } = message;
const history = await this.client.modmail.loadHistory(user.id); 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 page = this.paginate([...history].filter((e) => !e.markread).reverse(), pageNr, 10);
const embed = { const embed = {