fix fetching users with old ids

This commit is contained in:
derpystuff 2022-06-15 22:03:00 +02:00
parent c549cceeec
commit ce127c8782
3 changed files with 7 additions and 7 deletions

View file

@ -33,7 +33,7 @@ module.exports = {
const g = context.guild
// Guild Card
let guildCard = createEmbed("default", context, {
description: `${icon("house")} **${g.name}** ${highlight(`(${g.id})`)}\n\n${icon("calendar")} **Created at: **${timestamp(g.createdAt)}\n\n<:lc_guild_owner:674652779406426122> **Server Owner: **<@${g.owner.id}>`,
description: `${icon("house")} **${g.name}** ${highlight(`(${g.id})`)}\n\n${icon("calendar")} **Created at: **${timestamp(g.createdAt, "f")}\n\n<:lc_guild_owner:674652779406426122> **Server Owner: **<@${g.owner.id}>`,
thumbnail: {
url: g.iconUrl + `?size=4096`
},

View file

@ -40,7 +40,7 @@ module.exports = {
},
fields: [{
name: `${icon("calendar")} Dates`,
value: `**Account Created: **${timestamp(u.createdAt)}`,
value: `**Account Created: **${timestamp(u.createdAt, "f")}`,
inline: false
}]
})
@ -48,7 +48,7 @@ module.exports = {
// Guild Container
if(m){
userCard.fields[0].value = userCard.fields[0].value + `\n**Joined Guild: **${timestamp(m.joinedAt)}`
userCard.fields[0].value = userCard.fields[0].value + `\n**Joined Guild: **${timestamp(m.joinedAt, "f")}`
let guildFields = []
// TODO: make this an icon()