diff --git a/cmds/moderation/mute.js b/cmds/moderation/mute.js index 49654c8..183e3db 100644 --- a/cmds/moderation/mute.js +++ b/cmds/moderation/mute.js @@ -108,9 +108,10 @@ module.exports = class mute extends commando.Command { targetUsers = FR.targetUser; resultMsg = FR.resultMsg; } else return trySend(this.client, msg, "Args: `<[user_[mention|ID|name]]> -- [reason] -- [duration]`. " + - "Separate `user` with `,`. `--s` to view settings.\nExample:```js\n" + + "Separate `user` with `,`. `--s` to view settings.Example:```js\n" + `${msg.guild.commandPrefix + this.name} 580703409934696449, @Shasha#1234, ` + - `ur mom,#6969,^yuck\\s(ur)?\\s.{5}#\\d+69$ -- 69y69mo69w420d420h420m420s -- Saying "joe"\`\`\``); + `ur mom,#6969,^yuck\\s(ur)?\\s.{5}#\\d+69$ -- 69y69mo69w420d420h420m420s -- Saying "joe"\n` + + `${msg.guild.commandPrefix + this.name} --s\`\`\``); if (targetUsers.length) { let muted = [], cant = [], already = []; diff --git a/cmds/moderation/src/muteSetting.js b/cmds/moderation/src/muteSetting.js index f16e214..04d789d 100644 --- a/cmds/moderation/src/muteSetting.js +++ b/cmds/moderation/src/muteSetting.js @@ -12,8 +12,7 @@ module.exports = (msg, arg) => { duration, role, resultMsg = ""; - console.log(args); - if (arg && !args[1]) setEmb.setDescription(ARGS_TEXT); else if (args?.[1]) { + if (!args?.[1]) setEmb.setDescription(ARGS_TEXT); else { for (const ARG of args) { if (ARG.startsWith("r ")) { const key = cleanMentionID(ARG.slice(2));