mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
Display creation date differently
This commit is contained in:
parent
903d2057e7
commit
65a3f86c38
@ -21,7 +21,7 @@ export default class Whois {
|
|||||||
.setThumbnail(user.avatarURL({size:2048}) || user.defaultAvatarURL)
|
.setThumbnail(user.avatarURL({size:2048}) || user.defaultAvatarURL)
|
||||||
.setTitle(`${user.bot ? 'Bot' : 'User'} Info: ${user.username}`)
|
.setTitle(`${user.bot ? 'Bot' : 'User'} Info: ${user.username}`)
|
||||||
.setDescription(`<@${user.id}>\n\`${user.id}\``)
|
.setDescription(`<@${user.id}>\n\`${user.id}\``)
|
||||||
.addFields({name: '🔹 Account Creation Date', value: `<t:${Math.round(user.createdTimestamp/1000)}>\n<t:${Math.round(user.createdTimestamp/1000)}:R>`})
|
.addFields({name: `🔹 ${user.bot ? 'Application' : 'Account'} Creation Date`, value: `<t:${Math.round(user.createdTimestamp/1000)}>\n<t:${Math.round(user.createdTimestamp/1000)}:R>`})
|
||||||
]})
|
]})
|
||||||
} else {
|
} else {
|
||||||
await member.user.fetch();
|
await member.user.fetch();
|
||||||
@ -39,7 +39,7 @@ export default class Whois {
|
|||||||
.setTitle(`${title} Info: ${member.user.username}`)
|
.setTitle(`${title} Info: ${member.user.username}`)
|
||||||
.setDescription(`<@${member.user.id}>\n\`${member.user.id}\``)
|
.setDescription(`<@${member.user.id}>\n\`${member.user.id}\``)
|
||||||
.addFields(
|
.addFields(
|
||||||
{name: '🔹 Account Creation Date', value: `<t:${Math.round(member.user.createdTimestamp/1000)}>\n<t:${Math.round(member.user.createdTimestamp/1000)}:R>`},
|
{name: `🔹 ${member.user.bot ? 'Application' : 'Account'} Creation Date`, value: `<t:${Math.round(member.user.createdTimestamp/1000)}>\n<t:${Math.round(member.user.createdTimestamp/1000)}:R>`},
|
||||||
{name: '🔹 Server Join Date', value: `<t:${Math.round((member.joinedTimestamp as number)/1000)}>\n<t:${Math.round((member.joinedTimestamp as number)/1000)}:R>`},
|
{name: '🔹 Server Join Date', value: `<t:${Math.round((member.joinedTimestamp as number)/1000)}>\n<t:${Math.round((member.joinedTimestamp as number)/1000)}:R>`},
|
||||||
{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'}
|
{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'}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user