aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-23 22:00:23 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-23 22:00:23 -0500
commitb95f4e00566dc4b99527f6771d56a5e557779e66 (patch)
tree2de597a67c49cc5788ccedd7917075e083643860 /src/commands/moderation
parent084a815f3799764d2dd697e8c693c7f80e0c7ab7 (diff)
downloadtanzanite-b95f4e00566dc4b99527f6771d56a5e557779e66.tar.gz
tanzanite-b95f4e00566dc4b99527f6771d56a5e557779e66.tar.bz2
tanzanite-b95f4e00566dc4b99527f6771d56a5e557779e66.zip
feat: prefer bold over inline codeblocks
Diffstat (limited to 'src/commands/moderation')
-rw-r--r--src/commands/moderation/evidence.ts2
-rw-r--r--src/commands/moderation/hideCase.ts2
-rw-r--r--src/commands/moderation/removeReactionEmoji.ts8
-rw-r--r--src/commands/moderation/slowmode.ts4
4 files changed, 10 insertions, 6 deletions
diff --git a/src/commands/moderation/evidence.ts b/src/commands/moderation/evidence.ts
index d189e89..362f471 100644
--- a/src/commands/moderation/evidence.ts
+++ b/src/commands/moderation/evidence.ts
@@ -85,6 +85,6 @@ export default class EvidenceCommand extends BushCommand {
client.emit('bushUpdateModlog', message.member!, entry.id, 'evidence', oldEntry, entry.evidence);
- return message.util.reply(`${util.emojis.success} Successfully updated the evidence for case \`${caseID}\`.`);
+ return message.util.reply(`${util.emojis.success} Successfully updated the evidence for case ${util.format.input(caseID)}.`);
}
}
diff --git a/src/commands/moderation/hideCase.ts b/src/commands/moderation/hideCase.ts
index d603953..8cec66e 100644
--- a/src/commands/moderation/hideCase.ts
+++ b/src/commands/moderation/hideCase.ts
@@ -40,6 +40,6 @@ export default class HideCaseCommand extends BushCommand {
client.emit('bushUpdateModlog', message.member!, entry.id, 'hidden', oldEntry, entry.hidden);
- return await message.util.reply(`${util.emojis.success} CaseID \`${caseID}\` is ${action}.`);
+ return await message.util.reply(`${util.emojis.success} CaseID ${util.format.input(caseID)} is ${action}.`);
}
}
diff --git a/src/commands/moderation/removeReactionEmoji.ts b/src/commands/moderation/removeReactionEmoji.ts
index f511007..b059bff 100644
--- a/src/commands/moderation/removeReactionEmoji.ts
+++ b/src/commands/moderation/removeReactionEmoji.ts
@@ -53,11 +53,15 @@ export default class RemoveReactionEmojiCommand extends BushCommand {
if (success) {
return await message.util.reply(
- `${util.emojis.success} Removed all reactions of \`${emojiID}\` from the message with the id of \`${resolvedMessage.id}\`.`
+ `${util.emojis.success} Removed all reactions of ${util.format.input(
+ emojiID!
+ )} from the message with the id of ${util.format.input(resolvedMessage.id)}.`
);
} else {
return await message.util.reply(
- `${util.emojis.error} There was an error removing all reactions of \`${emojiID}\` from the message with the id of \`${resolvedMessage.id}\`.`
+ `${util.emojis.error} There was an error removing all reactions of ${util.format.input(
+ emojiID!
+ )} from the message with the id of ${util.format.input(resolvedMessage.id)}.`
);
}
}
diff --git a/src/commands/moderation/slowmode.ts b/src/commands/moderation/slowmode.ts
index c0511f3..6d93ede 100644
--- a/src/commands/moderation/slowmode.ts
+++ b/src/commands/moderation/slowmode.ts
@@ -70,8 +70,8 @@ export default class SlowmodeCommand extends BushCommand {
else
return await message.util.reply(
`${util.emojis.success} Successfully changed the slowmode of <#${args.channel.id}> ${
- length2 ? `to \`${util.humanizeDuration(length2)}` : '`off'
- }\`.`
+ length2 ? `to ${util.format.input(util.humanizeDuration(length2))}` : '**off**'
+ }.`
);
}
}