diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-04 14:40:16 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-04 14:40:16 -0500 |
commit | 19c0a3709156056fd092c2a43b1b47cf29f3b65f (patch) | |
tree | 8f4d3292a5b78ca0e92c14cab8229b2a37fc8dfb /src/commands/moulberry-bush | |
parent | d5d5fd6f77f2d778ab099d52f1acaad762712822 (diff) | |
download | tanzanite-19c0a3709156056fd092c2a43b1b47cf29f3b65f.tar.gz tanzanite-19c0a3709156056fd092c2a43b1b47cf29f3b65f.tar.bz2 tanzanite-19c0a3709156056fd092c2a43b1b47cf29f3b65f.zip |
remove source-map-support and moment
Diffstat (limited to 'src/commands/moulberry-bush')
-rw-r--r-- | src/commands/moulberry-bush/report.ts | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/commands/moulberry-bush/report.ts b/src/commands/moulberry-bush/report.ts index 7b3e729..becdeeb 100644 --- a/src/commands/moulberry-bush/report.ts +++ b/src/commands/moulberry-bush/report.ts @@ -1,9 +1,5 @@ import { AllowedMentions, BushCommand, type ArgType, type BushMessage } from '#lib'; -import assert from 'assert'; import { ApplicationCommandOptionType, Embed, PermissionFlagsBits } from 'discord.js'; -import moment from 'moment'; - -assert(moment); export default class ReportCommand extends BushCommand { public constructor() { @@ -74,18 +70,21 @@ export default class ReportCommand extends BushCommand { .setDescription(evidence) .addField({ name: 'Reporter', - value: `**Name:**${message.author.tag} <@${message.author.id}>\n**Joined:** ${moment( - message.member!.joinedTimestamp - ).fromNow()}\n**Created:** ${moment(message.author.createdTimestamp).fromNow()}\n**Sent From**: <#${ - message.channel.id - }> [Jump to context](${message.url})`, + value: [ + `**Name:**${message.author.tag} <@${message.author.id}>`, + `**Joined:** $${util.timestampAndDelta(message.member!.joinedAt!)}`, + `**Created:** ${util.timestampAndDelta(message.author.createdAt)}`, + `**Sent From**: <#${message.channel.id}> [Jump to context](${message.url})` + ].join('\n'), inline: true }) .addField({ name: 'Reported User', - value: `**Name:**${member.user.tag} <@${member.user.id}>\n**Joined:** ${moment( - member.joinedTimestamp - ).fromNow()}\n**Created:** ${moment(member.user.createdTimestamp).fromNow()}`, + value: [ + `**Name:**${member.user.tag} <@${member.user.id}>`, + `**Joined:** $${util.timestampAndDelta(member.joinedAt!)}`, + `**Created:** ${util.timestampAndDelta(member.user.createdAt)}` + ].join('\n'), inline: true }); |