Skip to content

Commit

Permalink
fix: make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
hendraaagil committed Jan 13, 2024
1 parent 9ef93cf commit 9827b2d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions commands/helper-list.command.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 9827b2d

Please sign in to comment.