aboutsummaryrefslogtreecommitdiff
path: root/commands/setprefix.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/setprefix.js')
-rw-r--r--commands/setprefix.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/setprefix.js b/commands/setprefix.js
index 2bea4bc..6800eea 100644
--- a/commands/setprefix.js
+++ b/commands/setprefix.js
@@ -23,7 +23,7 @@ module.exports.run = async (client, message, args) => {
console.log(`[${moment().format('YYYY-MM-DD HH:mm:ss')}] ${message}`);
};
const fs = require('fs');
- if (!message.member.hasPermission('ADMINISTRATOR')) return message.reply('Sorry you need admin to set my prefix');
+ if (!message.member.permissions.has('ADMINISTRATOR')) return message.reply('Sorry you need admin to set my prefix');
if (!args[0] || args[0 == 'help']) return message.reply('Usage: <your prefix>setprefix <prefix>');
const prefixes = JSON.parse(fs.readFileSync('./storage/prefixes.json', 'utf8'));