From d38d27765e921dd8a75f46e3906c0325e6e69963 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Mon, 5 Feb 2024 06:00:59 +1100 Subject: [PATCH] Display creation date differently --- src/commands/whois.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/whois.ts b/src/commands/whois.ts index 7513ebb..e05bd2c 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -21,7 +21,7 @@ export default class Whois { .setThumbnail(user.avatarURL({size:2048}) || user.defaultAvatarURL) .setTitle(`${user.bot ? 'Bot' : 'User'} Info: ${user.username}`) .setDescription(`<@${user.id}>\n\`${user.id}\``) - .addFields({name: '🔹 Account Creation Date', value: `\n`}) + .addFields({name: `🔹 ${user.bot ? 'Application' : 'Account'} Creation Date`, value: `\n`}) ]}) } else { await member.user.fetch(); @@ -39,7 +39,7 @@ export default class Whois { .setTitle(`${title} Info: ${member.user.username}`) .setDescription(`<@${member.user.id}>\n\`${member.user.id}\``) .addFields( - {name: '🔹 Account Creation Date', value: `\n`}, + {name: `🔹 ${member.user.bot ? 'Application' : 'Account'} Creation Date`, value: `\n`}, {name: '🔹 Server Join Date', value: `\n`}, {name: `🔹 Roles: ${member.roles.cache.size - 1}`, value: member.roles.cache.size > 1 ? member.roles.cache.filter(x=>x.id !== interaction.guild.roles.everyone.id).sort((a,b)=>b.position - a.position).map(x=>x).join(member.roles.cache.size > 4 ? ' ' : '\n').slice(0,1024) : 'No roles'} )