aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moulberry-bush
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-28 12:43:42 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-28 12:43:42 -0400
commit31d339b46b9fc11e50a0cdbf53e937e575531efd (patch)
tree05148c87a0be4992ad41b1829f17ffb6b75f7a3c /src/commands/moulberry-bush
parente37904bdf74b2c21d97d4ceb89a2a38a74b08919 (diff)
downloadtanzanite-31d339b46b9fc11e50a0cdbf53e937e575531efd.tar.gz
tanzanite-31d339b46b9fc11e50a0cdbf53e937e575531efd.tar.bz2
tanzanite-31d339b46b9fc11e50a0cdbf53e937e575531efd.zip
feat: custom stripIndent
Diffstat (limited to 'src/commands/moulberry-bush')
-rw-r--r--src/commands/moulberry-bush/report.ts21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/commands/moulberry-bush/report.ts b/src/commands/moulberry-bush/report.ts
index f8f6371..0561e13 100644
--- a/src/commands/moulberry-bush/report.ts
+++ b/src/commands/moulberry-bush/report.ts
@@ -1,4 +1,5 @@
import { AllowedMentions, BushCommand, type ArgType, type BushMessage } from '#lib';
+import { stripIndent } from '#tags';
import assert from 'assert';
import { ApplicationCommandOptionType, EmbedBuilder, PermissionFlagsBits } from 'discord.js';
@@ -74,21 +75,19 @@ export default class ReportCommand extends BushCommand {
.addFields([
{
name: 'Reporter',
- 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'),
+ value: stripIndent`
+ **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})`,
inline: true
},
{
name: 'Reported User',
- value: [
- `**Name:**${member.user.tag} <@${member.user.id}>`,
- `**Joined:** $${util.timestampAndDelta(member.joinedAt!)}`,
- `**Created:** ${util.timestampAndDelta(member.user.createdAt)}`
- ].join('\n'),
+ value: stripIndent`
+ **Name:**${member.user.tag} <@${member.user.id}>
+ **Joined:** $${util.timestampAndDelta(member.joinedAt!)}
+ **Created:** ${util.timestampAndDelta(member.user.createdAt)}`,
inline: true
}
]);