From 9827b2d7ee126e9718a1ac43c8c6c3b6927f661a Mon Sep 17 00:00:00 2001 From: hendraaagil Date: Sat, 13 Jan 2024 23:01:42 +0700 Subject: [PATCH] fix: make linter happy --- commands/helper-list.command.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/commands/helper-list.command.js b/commands/helper-list.command.js index 8af8439..acb8dd6 100644 --- a/commands/helper-list.command.js +++ b/commands/helper-list.command.js @@ -95,16 +95,16 @@ exports.execute = async (interaction) => { const listMembers = members.length ? members - .sort((a, b) => a.joinedDate - b.joinedDate) - .map((member) => { - const joinedDate = member.joinedDate ? new Date(member.joinedDate).toLocaleString() : 'No data'; - const lastMessageDate = member.lastMessageDate - ? new Date(member.lastMessageDate).toLocaleString() - : 'No message'; - - return `${joinedDate} - <@${member.id}> - ${lastMessageDate} - ${member.lastMessageCountIn30Days} messages`; - }) - .join('\n') + .sort((a, b) => a.joinedDate - b.joinedDate) + .map((member) => { + const joinedDate = member.joinedDate ? new Date(member.joinedDate).toLocaleString() : 'No data'; + const lastMessageDate = member.lastMessageDate + ? new Date(member.lastMessageDate).toLocaleString() + : 'No message'; + + return `${joinedDate} - <@${member.id}> - ${lastMessageDate} - ${member.lastMessageCountIn30Days} messages`; + }) + .join('\n') : 'No one here :('; const embed = new MessageEmbed().setColor('#992d22').setDescription(`**<@&${role.id}>**`).addFields( { name: 'Total Members', value: roleMemberIds.length.toString(), inline: true },