fix code format
This commit is contained in:
parent
a067c957c1
commit
9fd2c873ca
5 changed files with 136 additions and 144 deletions
|
@ -106,15 +106,6 @@ module.exports = async (client, message) => {
|
|||
message.flags.push(args.shift().slice(1))
|
||||
}
|
||||
|
||||
let argsPossiblyJoined = args;
|
||||
|
||||
if(cmd.conf.joinArguments) {
|
||||
if(args.length > cmd.conf.joinArguments && args.length > 1)
|
||||
{
|
||||
argsPossiblyJoined[cmd.conf.joinArguments - 1] = args.slice(cmd.conf.joinArguments - 1).join(' ');
|
||||
}
|
||||
};
|
||||
|
||||
client.logger.log(`Command ran: ${cmd.help.name}`)
|
||||
cmd.run(client, message, argsPossiblyJoined, level, data)
|
||||
cmd.run(client, message, args, level, data)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue