This commit is contained in:
SowinskiBraeden committed 2022-08-06 10:20:28 -07:00
commit eeebd59817
1 file changed
+1 -19
+1 -19
View File
@@ -35,25 +35,7 @@ module.exports = async (client, message) => {
//Executing the codes when we get the command or aliases //Executing the codes when we get the command or aliases
if (cmd) { if (cmd) {
if (
(cmd.permissions &&
cmd.permissions.channel &&
!message.channel
.permissionsFor(client.user)
.has(cmd.permissions.channel)) ||
(cmd.permissions &&
cmd.permissions.member &&
!message.channel
.permissionsFor(message.member)
.has(cmd.permissions.member))
)
return client.sendError(
message.channel,
"Missing Permissions!" + GuildDB.DJ
? " You need the correct role to access this command."
: ""
);
cmd.run(client, message, args, { GuildDB }); cmd.run(client, message, args, { GuildDB });
client.CommandsRan++; client.CommandsRan++;
} else return; } else return;
}; };