This commit is contained in:
Neko-Life 2021-08-04 16:14:34 +07:00
parent d1b9a2c0dd
commit 04014ba394
2 changed files with 4 additions and 4 deletions

View file

@ -108,9 +108,10 @@ module.exports = class mute extends commando.Command {
targetUsers = FR.targetUser; targetUsers = FR.targetUser;
resultMsg = FR.resultMsg; resultMsg = FR.resultMsg;
} else return trySend(this.client, msg, "Args: `<[user_[mention|ID|name]]> -- [reason] -- [duration]`. " + } 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, ` + `${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) { if (targetUsers.length) {
let muted = [], cant = [], already = []; let muted = [], cant = [], already = [];

View file

@ -12,8 +12,7 @@ module.exports = (msg, arg) => {
duration, duration,
role, role,
resultMsg = ""; resultMsg = "";
console.log(args); if (!args?.[1]) setEmb.setDescription(ARGS_TEXT); else {
if (arg && !args[1]) setEmb.setDescription(ARGS_TEXT); else if (args?.[1]) {
for (const ARG of args) { for (const ARG of args) {
if (ARG.startsWith("r ")) { if (ARG.startsWith("r ")) {
const key = cleanMentionID(ARG.slice(2)); const key = cleanMentionID(ARG.slice(2));