From 642a1f6fe6cc542104207d6859c27e503abee5dc Mon Sep 17 00:00:00 2001 From: Neko-Life Date: Sat, 31 Jul 2021 21:32:37 +0700 Subject: [PATCH] cleanUps --- cmds/moderation/mute.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmds/moderation/mute.js b/cmds/moderation/mute.js index 783f553..152370a 100644 --- a/cmds/moderation/mute.js +++ b/cmds/moderation/mute.js @@ -110,8 +110,8 @@ module.exports = class mute extends commando.Command { } else return trySend(this.client, msg, "Args: `<[user_[mention|ID|name]]> -- [reason] -- [duration]`. Use `,` to provide multiple user. `--s` to view settings.\nExample:```js\n" + `${msg.guild.commandPrefix + this.name} 580703409934696449, @Shasha#1234, ur mom,#6969,^yuck\\s(ur)?\\s.{5}#\\d+69$--69y69mo69w420d420h420m420s -- Saying "joe"\`\`\``); if (targetUsers.length > 0) { - let muted = [], cant = [], already = [], - infractionToDoc = createInfraction(msg, targetUsers, "mute", reason); + let muted = [], cant = [], already = []; + const infractionToDoc = createInfraction(msg, targetUsers, "mute", reason); for (const EXEC of targetUsers) { try { @@ -154,7 +154,5 @@ module.exports = class mute extends commando.Command { return trySend(msg.client, msg, { content: resultMsg, embed: emb }); } return trySend(msg.client, msg, resultMsg); - resultMsg += `Result:\`\`\`js\nUsers: ${targetUsers.map(r => r?.tag).join(", ")}\nReason: ${reason}\nAt: ${duration.invoked.toFormat("DDD',' cccc',' tt")}\nFor: ${duration.duration?.strings?.join(" ")}\nUntil: ${duration.until?.toFormat("DDD',' cccc',' tt")}\`\`\``; - return trySend(this.client, msg, { content: resultMsg + "```js\n" + JSON.stringify(infractionToDoc, null, 2) + "```", split: { maxLength: 2000, append: ",```", prepend: "```js\n", char: "," } }); } }; \ No newline at end of file