Browse Source

Fix incorrect parameter being passed to internal command handling

master
benji7425 4 years ago
parent
commit
dc889096a5
  1. 2
      discord-bot-core/HandleMessage.js

2
discord-bot-core/HandleMessage.js

@ -13,7 +13,7 @@ function handleMessage(client, message, commands, guildData) {
command = commands[Object.keys(commands).find(x => commands[x].name.toLowerCase() === (split[1] || "").toLowerCase())];
if (!command)
handleInternalCommand(message, params);
handleInternalCommand(message, split);
else if (params.length < command.expectedParamCount)
message.reply(`Incorrect syntax!\n**Expected:** *${botName} ${command.syntax}*\n**Need help?** *${botName} help*`);
else if(isMemberAdmin || !command.admin)

Loading…
Cancel
Save