permissions update

This commit is contained in:
2019-04-04 23:22:52 +11:00
parent 284c3cb615
commit 72beef6a14

View File

@@ -125,7 +125,7 @@ function doPMCommand(msg, prefix) {
if (cmds.length > 0) { if (cmds.length > 0) {
console.log("CMD:".green + " ".reset + msg.author.username.bold + "#".reset + msg.author.discriminator.reset + " " + prefix.grey + command.green.bold + " ".reset + msg.suffix + " | PM") console.log("CMD:".green + " ".reset + msg.author.username.bold + "#".reset + msg.author.discriminator.reset + " " + prefix.grey + command.green.bold + " ".reset + msg.suffix + " | PM")
var reqcommand = require('./commands/' + cmds[0].file) var reqcommand = require('./commands/' + cmds[0].file)
if (reqcommand.permissions == ['READ_MESSAGES']) { if (reqcommand.permissions == 'READ_MESSAGES') {
msg.react('✅') msg.react('✅')
try { try {
reqcommand.command(client, msg) reqcommand.command(client, msg)
@@ -135,6 +135,7 @@ function doPMCommand(msg, prefix) {
} }
} else { } else {
msg.react('⛔') msg.react('⛔')
msg.reply(reqcommand.permissions)
} }
} }