Merge branch 'master' of https://github.com/SowinskiBraeden/police-cad-bot
This commit is contained in:
1 file changed
+1
-19
+1
-19
@@ -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;
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user