diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2021-07-31 16:38:15 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2021-07-31 16:38:15 -0400 |
| commit | 60cd96e366487b9a422ecc685b46a2b300c32be1 (patch) | |
| tree | 6e71adf12473ca438f10d7716a27a3f0ffc44c3d /commands/setprefix.js | |
| parent | 3aa27777a7bd1a9bff798412382db8aad3cbd19a (diff) | |
| download | AleeBot-60cd96e366487b9a422ecc685b46a2b300c32be1.tar.gz AleeBot-60cd96e366487b9a422ecc685b46a2b300c32be1.tar.bz2 AleeBot-60cd96e366487b9a422ecc685b46a2b300c32be1.zip | |
Cleanup; Upgraded to Discord.JS v13; More buttons
Diffstat (limited to 'commands/setprefix.js')
| -rw-r--r-- | commands/setprefix.js | 2 |
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')); |
