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;
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 = [];

View file

@ -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));