diff options
Diffstat (limited to 'src/commands/moderation')
-rw-r--r-- | src/commands/moderation/evidence.ts | 2 | ||||
-rw-r--r-- | src/commands/moderation/hideCase.ts | 2 | ||||
-rw-r--r-- | src/commands/moderation/removeReactionEmoji.ts | 8 | ||||
-rw-r--r-- | src/commands/moderation/slowmode.ts | 4 |
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**' + }.` ); } } |