Browse Source

Remove unixtime to millisecond conversion

master
Abheek Dhawan 4 years ago
parent
commit
29191880b6
  1. 4
      index.js

4
index.js

@ -143,8 +143,8 @@ async function userInfo(message) {
.setAuthor(member.user.tag, member.user.avatarURL())
.addField("Roles", member.roles.cache.map(r => `${r}`).join(' • '))
.addField("Permissions", member.permissions.toArray().map(p => `\`${p}\``.toLowerCase()).join(' • '))
.addField("Joined at", `${new Date(member.joinedTimestamp * 1000).toLocaleString("en-US", {timeZoneName: "short"})}`, true)
.addField("Account created", `${new Date(member.user.createdTimestamp * 1000).toLocaleString("en-US", {timeZoneName: "short"})}`, true)
.addField("Joined at", `${new Date(member.joinedTimestamp).toLocaleString("en-US", {timeZoneName: "short"})}`, true)
.addField("Account created", `${new Date(member.user.createdTimestamp).toLocaleString("en-US", {timeZoneName: "short"})}`, true)
.setColor("00c5ff")
.setFooter(`User ID: ${member.user.id}`)
.setTimestamp();

Loading…
Cancel
Save