This regression appeared when I removed custom command support
This commit is contained in:
parent
6b45bc6799
commit
30c7fd171f
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ module.exports = function(client, owners, message, globalPrefix){
|
|||
|
||||
const commandName = args.shift().toLowerCase();
|
||||
const command = client.commands.get(commandName);
|
||||
if(!command) return;
|
||||
if(command.needsWhitelist){
|
||||
let isWhitelisted = client.whitelist.get(message.guild.id)?.includes(command.name);
|
||||
if(!isWhitelisted){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue