Pass cleaned message content to commands, could break things but idk
This commit is contained in:
parent
4419d73d97
commit
4fac887e22
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ module.exports = async (message) => {
|
||||||
if (message.content.startsWith(prefix) === false) return;
|
if (message.content.startsWith(prefix) === false) return;
|
||||||
|
|
||||||
// separate commands and args
|
// 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 args = content.split(/ +/g);
|
||||||
const command = args.shift().toLowerCase();
|
const command = args.shift().toLowerCase();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue