diff --git a/structure/Client.js b/structure/Client.js index 9a6c83b..a3b6d8d 100644 --- a/structure/Client.js +++ b/structure/Client.js @@ -102,7 +102,7 @@ class ModmailClient extends Client { const roles = member.roles.cache.map((r) => r.id); if (!roles.some((r) => this._options.staffRoles.includes(r)) && !member.hasPermission('ADMINISTRATOR')) return; - const [ rawCommand, ...args ] = content.split(' '); + const [ rawCommand, ...args ] = content.split(/\s+/u); const commandName = rawCommand.substring(prefix.length); const command = this.registry.find(commandName); if (!command) return;