From 8639d71feac041c26e8c828143eca1384c14f27a Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 3 Apr 2021 11:56:17 -0500 Subject: [PATCH] Change date format for guild creation date --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ccf2939..953c5a5 100644 --- a/index.js +++ b/index.js @@ -380,7 +380,7 @@ async function aboutServer(message) { .addField("Channels", `Total: ${message.guild.channels.cache.size} ‖ Text: ${textChannelCount} • Voice: ${voiceChannelCount} • Categories: ${categoryChannelCount}`) .addField("Members", `Total: ${numHumans + numBots} ‖ Human: ${numHumans} • Bot: ${numBots}`) .addField("Roles", numRoles) - .addField("Created", message.guild.createdAt) + .addField("Created", ${new Date(member.guild.createdTimestamp).toLocaleString("en-US", {timeZoneName: "short"})}) .addField("User Statuses", `🟦 • ${numOnline} online\n\n🟧 • ${numAway} away\n\n⬛ • ${numOffline} offline\n\n🟥 • ${numDND} DND`) .setThumbnail(message.guild.iconURL()) .setFooter(`Server ID: ${message.guild.id}`)