aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-03-08 20:37:25 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-03-08 20:37:25 -0500
commit293fc2c5f86ea6aaa1ef19e784241b8a6656a166 (patch)
treecaf7a51b0f5c1340321f67626b29e45ce89bb866 /src/commands
parent6bc15403e1f1c3bc7042bb8066172b0f6a312ac5 (diff)
downloadtanzanite-293fc2c5f86ea6aaa1ef19e784241b8a6656a166.tar.gz
tanzanite-293fc2c5f86ea6aaa1ef19e784241b8a6656a166.tar.bz2
tanzanite-293fc2c5f86ea6aaa1ef19e784241b8a6656a166.zip
feat: use short date format in guild and user commands
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/info/guildInfo.ts2
-rw-r--r--src/commands/info/userInfo.ts7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/commands/info/guildInfo.ts b/src/commands/info/guildInfo.ts
index 7f82e92..e026d1c 100644
--- a/src/commands/info/guildInfo.ts
+++ b/src/commands/info/guildInfo.ts
@@ -127,7 +127,7 @@ export default class GuildInfoCommand extends BushCommand {
guildAbout.push(
`**Owner:** ${util.discord.escapeMarkdown(guild.members.cache.get(guild.ownerId)?.user.tag ?? '¯\\_(ツ)_/¯')}`,
- `**Created** ${util.timestamp(guild.createdAt)} (${util.dateDelta(guild.createdAt)})`,
+ `**Created** ${util.timestampAndDelta(guild.createdAt, 'd')}`,
`**Members:** ${guild.memberCount.toLocaleString() ?? 0} (${util.emojis.onlineCircle} ${
guild.approximatePresenceCount?.toLocaleString() ?? 0
}, ${util.emojis.offlineCircle} ${(guild.memberCount - (guild.approximatePresenceCount ?? 0)).toLocaleString() ?? 0})`,
diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts
index 66c0e00..edf2b6d 100644
--- a/src/commands/info/userInfo.ts
+++ b/src/commands/info/userInfo.ts
@@ -124,7 +124,7 @@ export default class UserInfoCommand extends BushCommand {
const generalInfo = [
`**Mention:** <@${user.id}>`,
`**ID:** ${user.id}`,
- `**Created:** ${util.timestampAndDelta(user.createdAt)}`
+ `**Created:** ${util.timestampAndDelta(user.createdAt, 'd')}`
];
if (user.accentColor !== null) generalInfo.push(`**Accent Color:** ${user.hexAccentColor}`);
if (user.banner) generalInfo.push(`**Banner:** [link](${user.bannerURL({ extension: 'png', size: 4096 })})`);
@@ -144,10 +144,11 @@ export default class UserInfoCommand extends BushCommand {
if (member.joinedTimestamp)
serverUserInfo.push(
`**${member.guild!.ownerId == member.user.id ? 'Created Server' : 'Joined'}:** ${util.timestampAndDelta(
- member.joinedAt!
+ member.joinedAt!,
+ 'd'
)}`
);
- if (member.premiumSince) serverUserInfo.push(`**Boosting Since:** ${util.timestampAndDelta(member.premiumSince)}`);
+ if (member.premiumSince) serverUserInfo.push(`**Booster Since:** ${util.timestampAndDelta(member.premiumSince, 'd')}`);
if (member.displayHexColor) serverUserInfo.push(`**Display Color:** ${member.displayHexColor}`);
if (member.user.id == '322862723090219008' && member.guild?.id == client.consts.mappings.guilds.bush)
serverUserInfo.push(`**General Deletions:** 1⅓`);