Pass cleaned message content to commands, could break things but idk

This commit is contained in:
TheEssem 2021-03-05 21:59:13 -06:00
parent 4419d73d97
commit 4fac887e22
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ module.exports = async (message) => {
if (message.content.startsWith(prefix) === false) return;
// separate commands and args
const content = message.content.substring(prefix.length).trim();
const content = message.cleanContent.substring(prefix.length).trim();
const args = content.split(/ +/g);
const command = args.shift().toLowerCase();