aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moulberry-bush
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/moulberry-bush')
-rw-r--r--src/commands/moulberry-bush/report.ts23
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
});